Memory corruption
Uncursing the ncurses: Memory corruption vulnerabilities found in library
Microsoft found several memory corruption flaws in the ncurses library, including a stack information leak, a type confusion, an off-by-one, a heap overflow and a null-pointer dereference. By poisoning the TERMINFO environment variable, an attacker could chain these to leak memory and corrupt the heap, potentially elevating privileges in set-UID programs such as macOS top.
ncurses