Vulnerability · Published Jun 16, 2025 · Assigned by VulDB
CVE-2025-6141GNU ncurses parse_entry.c postprocess_termcap stack-based overflow
Low 3.3
In plain English
A low-severity stack buffer overflow in ncurses from GNU. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ncurses | no fix listed | DEBIAN-CVE-2025-6141 |
| Debian:13 | ncurses | no fix listed | DEBIAN-CVE-2025-6141 |
| Debian:14 | ncurses | 6.5+20251115-2 | DEBIAN-CVE-2025-6141 |
| Ubuntu:22.04:LTS | ncurses | 6.3-2ubuntu0.3 | USN-8709-1 |
| Ubuntu:22.04:LTS | ncurses | 6.3-2ubuntu0.3 | UBUNTU-CVE-2025-6141 |
| Ubuntu:24.04:LTS | ncurses | 6.4+20240113-1ubuntu2.2 | UBUNTU-CVE-2025-6141 |
| Ubuntu:24.04:LTS | ncurses | 6.4+20240113-1ubuntu2.2 | USN-8709-1 |
| Ubuntu:25.10 | ncurses | no fix listed | UBUNTU-CVE-2025-6141 |
Affected products (as reported)
Weakness: CWE-121, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C
References
- VDB-312610 | GNU ncurses parse_entry.c postprocess_termcap stack-based overflow vdb-entry, technical-description
- VDB-312610 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #593000 | GNU ncurses ncurses-6.5-20250322 Stack-based Buffer Overflow third-party-advisory
- https://lists.gnu.org/archive/html/bug-ncurses/2025-03/msg00107.html related
- https://lists.gnu.org/archive/html/bug-ncurses/2025-03/msg00109.html related
- https://lists.gnu.org/archive/html/bug-ncurses/2025-03/msg00114.html patch
- https://invisible-island.net/ncurses/NEWS.html#index-t20250329 related
- https://www.gnu.org/ product
- https://cert-portal.siemens.com/productcert/html/ssa-089022.html
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html