cve.bz

CVE-2025-6141 gnu ncurses: Stack-based Buffer Overflow

4.8 mediumEPSS 0.2%

Medium (4.8) in gnu ncurses. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

4.8 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

3.3 low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-06-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-6141 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-6141?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-6141?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-6141 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU ncurses6.5-20250322

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13ncursesno fix listedDEBIAN-CVE-2025-6141
Debian14ncurses6.5+20251115-2DEBIAN-CVE-2025-6141
Ubuntu22.04:LTSncurses6.3-2ubuntu0.3UBUNTU-CVE-2025-6141 USN-8709-1
Ubuntu24.04:LTSncurses6.4+20240113-1ubuntu2.2UBUNTU-CVE-2025-6141 USN-8709-1
Ubuntu25.10ncursesno fix listedUBUNTU-CVE-2025-6141
UbuntuPro:14.04:LTSncurses5.9+20140118-1ubuntu1+esm7UBUNTU-CVE-2025-6141 USN-8709-1
UbuntuPro:16.04:LTSncurses6.0+20160213-1ubuntu1+esm7UBUNTU-CVE-2025-6141 USN-8709-1
UbuntuPro:18.04:LTSncurses6.1-1ubuntu1.18.04.1+esm4UBUNTU-CVE-2025-6141 USN-8709-1
UbuntuPro:20.04:LTSncurses6.2-0ubuntu2.1+esm2UBUNTU-CVE-2025-6141 USN-8709-1
Azure Linux3ncurses6.4-3AZL-64139
Alpaquita23ncurses6.3_p20221119-r2BELL-CVE-2025-6141
Alpaquitastreamncurses6.5_p20250405-r0BELL-CVE-2025-6141
BellSoft Hardened Containers23ncurses6.3_p20221119-r2BELL-CVE-2025-6141
BellSoft Hardened Containersstreamncurses6.5_p20250405-r0BELL-CVE-2025-6141

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ncursesNot affected
Red Hat Enterprise Linux 6ncursesNot affected
Red Hat Enterprise Linux 7ncursesNot affected
Red Hat Enterprise Linux 8ncursesNot affected
Red Hat Enterprise Linux 9ncursesNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-6141.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-188-05Siemens SINEC OS2026-06-02Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesRUGGEDCOM RST2428P (6GK6242-6PA00)none listed
ICSA-26-043-06Siemens SINEC OS2026-01-28Energy, Critical Manufacturing, Transportation Systems, Water and WastewaterRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCH328 (6GK5328-4TS01-2EC2) and 13 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON