CVE-2025-6141 GNU ncurses parse_entry.c postprocess_termcap stack-based overflow
A local attacker can exploit a stack-based buffer overflow in GNU ncurses to potentially execute arbitrary code or cause a denial of service.
- 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-2025-6141?
CVE-2025-6141 is a medium-severity memory corruption vulnerability in GNU ncurses, published on 16 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability has been found in GNU ncurses up to 6.5-20250322 and classified as problematic. This vulnerability affects the function postprocess_termcap of the file tinfo/parse_entry.c. The manipulation leads to stack-based buffer overflow. The attack needs to be approached locally. Upgrading to version 6.5-20250329 is able to address this issue. It is recommended to upgrade the affected component.
Which versions are affected by CVE-2025-6141?
How do I fix CVE-2025-6141?
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-2025-6141 being exploited?
There is no known exploitation of CVE-2025-6141 in the wild and no public exploit code.
Sources
Also known as AZL-64139, BELL-CVE-2025-6141, DEBIAN-CVE-2025-6141, ECHO-d3c9-c3e9-90e8, GHSA-wfwf-ggr2-rpjf, JLSEC-2026-454 and 6 more.