Multiple memory corruption vulnerabilities have been discovered in the widely used programming library “ncurses.” These vulnerabilities, collectively tracked as CVE-2023-29491   , allow threat actors to gain escalated privileges and run malicious code by exploiting the parsing of “terminfo” files, which contain information about terminal capabilities .
Threat actors with local privileges can trigger memory corruption by using malformed data in the terminfo database file or environment variables . This vulnerability is associated with several internal issues , including heap out-of-bounds  , parameterized string type confusion   , stack information leak   , and denial of service   . Microsoft researchers discovered these flaws and disclosed them to the ncurses maintainer and Apple. Apple has released an update specifically addressing the ncurses vulnerabilities for macOS Monterey. As of April 2023   , the vulnerabilities have been addressed, and the library maintainer has issued a patch to fix them. Red Hat has assessed these vulnerabilities as a medium severity threat , particularly for setuid applications .
To mitigate these risks, it is crucial for developers to ensure that their libraries are up-to-date . The vulnerabilities in ncurses have been addressed , and Apple has released an update for macOS Monterey . However, it is important for users to install the patch and keep their systems updated to protect against potential exploits. Developers should also regularly check for security updates and apply them promptly to prevent any future vulnerabilities.