High severity · published Nov 22, 2017
CVE-2017-16879
Stack-based buffer overflow in the _nc_write_entry function in tinfo/write_entry.c in ncurses 6.0 allows attackers to cause a denial of service (application crash) or possibly…
7.8
CVSS
2.4%
EPSS
No
On KEV
Description
Stack-based buffer overflow in the _nc_write_entry function in tinfo/write_entry.c in ncurses 6.0 allows attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted terminfo file, as demonstrated by tic.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.4% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NC
Ncurses · Invisible-island
6.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-16879
CVE.org
https://www.cve.org/CVERecord?id=CVE-2017-16879
Vendor Advisory
http://invisible-island.net/ncurses/NEWS.html#t20171125
Third Party Advisory
http://packetstormsecurity.com/files/145045/GNU-ncurses-6.0-tic-Denial-Of-Service.html
lists.apache.org
https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
lists.apache.org
https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
Third Party Advisory
https://security.gentoo.org/glsa/201804-13
Permissions Required
https://tools.cisco.com/security/center/viewAlert.x?alertId=57695
More from Ncurses
9.8
CVE-2017-10685
In ncurses 6.0, there is a format string vulnerability in the fmt_entry function
9.8
CVE-2017-10684
In ncurses 6.0, there is a stack-based buffer overflow in the fmt_entry function
8.8
CVE-2021-39537
An issue was discovered in ncurses through v6.2-1
7.8
CVE-2025-69720
The infocmp command-line tool in ncurses before 6.5-20251213 has a stack-based buffer overflow in analyze_string in progs/infocmp.c
7.8
CVE-2023-29491
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…
