CVEfocus › CVE database › CVE-2025-6141

CVE-2025-6141GNU ncurses parse_entry.c postprocess_termcap stack-based overflow

CVSS 3.3 LowEPSS 0.3% (higher than 18% of CVEs)Published 2025-06-16Updated 2026-06-02Assigner: VulDB

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.

CWE-119CWE-121

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
6Fix pending
1Will not fix
32Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ncursesNot affected
vulnerable_code_not_present
Ubuntu 25.10ncursesWill not fix
This is in the code that parses terminfo database files. terminfo files are normally trusted, and since the fix for CVE-2023-29491, we no longer parse…
UBUNTU-CVE-2025-6141
Ubuntu 24.04ncursesFixed6.4+20240113-1ubuntu2.2UBUNTU-CVE-2025-6141
Ubuntu 22.04ncursesFixed6.3-2ubuntu0.3UBUNTU-CVE-2025-6141
Ubuntu 20.04ncursesFix pending6.2-0ubuntu2.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-6141
Ubuntu 18.04ncursesFix pending6.1-1ubuntu1.18.04.1+esm4 (Ubuntu Pro)UBUNTU-CVE-2025-6141
Ubuntu 16.04ncursesFix pending6.0+20160213-1ubuntu1+esm7 (Ubuntu Pro)UBUNTU-CVE-2025-6141
Ubuntu 14.04ncursesFix pending5.9+20140118-1ubuntu1+esm7 (Ubuntu Pro)UBUNTU-CVE-2025-6141
Debian 14ncursesFixed6.5+20251115-2DEBIAN-CVE-2025-6141
Debian 13ncursesFix pendingDEBIAN-CVE-2025-6141
Debian 12ncursesFix pendingDEBIAN-CVE-2025-6141
Red Hat Enterprise Linux 10ncursesNot affected
Red Hat Enterprise Linux 10ncurses-baseNot affected
Red Hat Enterprise Linux 10ncurses-c++-libsNot affected
Red Hat Enterprise Linux 10ncurses-develNot affected
Red Hat Enterprise Linux 10ncurses-libsNot affected
Red Hat Enterprise Linux 10ncurses-termNot affected
Red Hat Enterprise Linux 9ncursesNot affected
Red Hat Enterprise Linux 9ncurses-baseNot affected
Red Hat Enterprise Linux 9ncurses-c++-libsNot affected
Red Hat Enterprise Linux 9ncurses-develNot affected
Red Hat Enterprise Linux 9ncurses-libsNot affected
Red Hat Enterprise Linux 9ncurses-termNot affected
Red Hat Enterprise Linux 8ncursesNot affected
Red Hat Enterprise Linux 8ncurses-baseNot affected
Red Hat Enterprise Linux 8ncurses-c++-libsNot affected
Red Hat Enterprise Linux 8ncurses-compat-libsNot affected
Red Hat Enterprise Linux 8ncurses-develNot affected
Red Hat Enterprise Linux 8ncurses-libsNot affected
Red Hat Enterprise Linux 8ncurses-termNot affected
Red Hat Enterprise Linux 7ncursesNot affected
Red Hat Enterprise Linux 7ncurses-baseNot affected
Red Hat Enterprise Linux 7ncurses-develNot affected
Red Hat Enterprise Linux 7ncurses-libsNot affected
Red Hat Enterprise Linux 7ncurses-staticNot affected
Red Hat Enterprise Linux 7ncurses-termNot affected
Red Hat Enterprise Linux 6ncursesNot affected
Red Hat Enterprise Linux 6ncurses-baseNot affected
Red Hat Enterprise Linux 6ncurses-develNot affected
Red Hat Enterprise Linux 6ncurses-libsNot affected
Red Hat Enterprise Linux 6ncurses-staticNot affected
Red Hat Enterprise Linux 6ncurses-termNot affected

What the vendor says

As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.