CVE-2023-29491 Memory corruption in n/a
Local attackers can trigger memory corruption in setuid applications using ncurses via malformed terminfo data, potentially leading to privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-29491?
CVE-2023-29491 is a high-severity memory corruption vulnerability in n/a, published on 14 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
ncurses before 6.4 20230408, when used by a setuid application, allows local users to trigger security-relevant memory corruption via malformed data in a terminfo database file that is found in $HOME/.terminfo or reached via the TERMINFO or TERM environment variable.
Weakness: CWE-787
Which versions are affected by CVE-2023-29491?
It affects 1 product.
Linux distribution packages (40)
ncurses AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses-base AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses-c++-libs AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses-compat-libs AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses-devel AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses-libs AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses-term AlmaLinux:8 | All versions | 6.1-9.20180224.el8_8.1 |
ncurses AlmaLinux:9 | All versions | 6.2-10.20210508.el9 |
ncurses-base AlmaLinux:9 | All versions | 6.2-10.20210508.el9 |
ncurses-c++-libs AlmaLinux:9 | All versions | 6.2-10.20210508.el9 |
ncurses-devel AlmaLinux:9 | All versions | 6.2-10.20210508.el9 |
ncurses-libs AlmaLinux:9 | All versions | 6.2-10.20210508.el9 |
ncurses-term AlmaLinux:9 | All versions | 6.2-10.20210508.el9 |
ncurses Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-base Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-c++-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-c++-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-compat-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-compat-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-term Red Hat:enterprise_linux:8::baseos | All versions | 0:6.1-9.20180224.el8_8.1 |
ncurses-c++-libs Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-c++-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-compat-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses-term Red Hat:enterprise_linux:9::appstream | All versions | 0:6.2-10.20210508.el9 |
ncurses Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
ncurses-base Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
ncurses-c++-libs-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
ncurses-compat-libs-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
ncurses-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
ncurses-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
ncurses-libs Red Hat:enterprise_linux:9::baseos | All versions | 0:6.2-10.20210508.el9 |
Products include Invisible-Island Ncurses.
How do I fix CVE-2023-29491?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-29491 being exploited?
There is no known exploitation of CVE-2023-29491 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as ALPINE-CVE-2023-29491, ALSA-2023:5249, ALSA-2023:6698, AZL-26241, CLEANSTART-2026-JO18362, CLSA-2025-1739387560 and 12 more.