CVE-2021-39537
published 2021-09-20CVE-2021-39537: An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
PriorityP347high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
3.23%
86.9th percentile
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
Affected
21 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | mac_os_x | — | — |
| apple | macos | — | — |
| apple | macos | — | — |
| apple | macos_big_sur | — | — |
| apple | macos_monterey | — | — |
| apple | macos_ventura | — | — |
| debian | ncurses | < ncurses 6.2+20200912-1 (bookworm) | ncurses 6.2+20200912-1 (bookworm) |
| gnu | ncurses | <= 6.2.1 | — |
| gnu | ncurses | >= 0 < 6.2+20200912-1 | 6.2+20200912-1 |
| gnu | ncurses | >= 0 < 6.2+20200912-1 | 6.2+20200912-1 |
| gnu | ncurses | >= 0 < 6.2+20200912-1 | 6.2+20200912-1 |
| gnu | ncurses | >= 0 < 6.2+20200912-1 | 6.2+20200912-1 |
| gnu | ncurses | >= 0 < 6.1-1ubuntu1.18.04.1 | 6.1-1ubuntu1.18.04.1 |
| gnu | ncurses | >= 0 < 6.2-0ubuntu2.1 | 6.2-0ubuntu2.1 |
| gnu | ncurses | >= 0 < 6.3-2ubuntu0.1 | 6.3-2ubuntu0.1 |
| gnu | ncurses | >= 0 < 5.9+20140118-1ubuntu1+esm3 | 5.9+20140118-1ubuntu1+esm3 |
| gnu | ncurses | >= 0 < 5.9+20140118-1ubuntu1+esm2 | 5.9+20140118-1ubuntu1+esm2 |
| gnu | ncurses | >= 0 < 6.0+20160213-1ubuntu1+esm3 | 6.0+20160213-1ubuntu1+esm3 |
| gnu | ncurses | >= 0 < 6.0+20160213-1ubuntu1+esm2 | 6.0+20160213-1ubuntu1+esm2 |
| msrc | cbl2_ncurses_6.2-6_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_ncurses_6.2-5_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8LOW
vendor_msrc8.8HIGH
vendor_redhat8.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
ncurses vulnerabilities
osv·2023-05-23·CVSS 5.3
CVE-2019-17594 [MEDIUM] ncurses vulnerabilities
ncurses vulnerabilities
It was discovered that ncurses was incorrectly performing bounds
checks when processing invalid hashcodes. An attacker could possibly
use this issue to cause a denial of service or to expose sensitive
information. This issue only affected Ubuntu 18.04 LTS.
(CVE-2019-17594)
It was discovered that ncurses was incorrectly handling
end-of-string characters when processing terminfo and termcap files.
An attacker could possibly use this issue to cause a denial of
service or to expose sensitive information. This issue only affected
Ubuntu 18.04 LTS. (CVE-2019-17595)
It was discovered that ncurses was incorrectly handling
end-of-string characters when converting between termcap and
terminfo formats. An attacker could possibly use this issue to cause
a denial of service o
OSV
ncurses vulnerabilities
osv·2022-06-14·CVSS 7.8
CVE-2017-16879 [HIGH] ncurses vulnerabilities
ncurses vulnerabilities
Hosein Askari discovered that ncurses was incorrectly performing
memory management operations when dealing with long filenames while
writing structures into the file system. An attacker could possibly
use this issue to cause a denial of service or execute arbitrary
code. (CVE-2017-16879)
Chung-Yi Lin discovered that ncurses was incorrectly handling access
to invalid memory areas when parsing terminfo or termcap entries where
the use-name had invalid syntax. An attacker could possibly use this
issue to cause a denial of service. (CVE-2018-19211)
It was discovered that ncurses was incorrectly performing bounds
checks when processing invalid hashcodes. An attacker could possibly
use this issue to cause a denial of service or to expose sensitive
information. (CVE-201
GHSA
GHSA-v5gv-3mwr-6223: An issue was discovered in ncurses through v6
ghsa_unreviewed·2022-05-24
CVE-2021-39537 [HIGH] CWE-787 GHSA-v5gv-3mwr-6223: An issue was discovered in ncurses through v6
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
OSV
CVE-2021-39537: An issue was discovered in ncurses through v6
osv·2021-09-20·CVSS 8.8
CVE-2021-39537 [HIGH] CVE-2021-39537: An issue was discovered in ncurses through v6
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
Ubuntu
ncurses vulnerabilities
vendor_ubuntu·2023-05-23·CVSS 5.3
CVE-2021-39537 [MEDIUM] ncurses vulnerabilities
Title: ncurses vulnerabilities
Summary: Several security issues were fixed in ncurses.
It was discovered that ncurses was incorrectly performing bounds
checks when processing invalid hashcodes. An attacker could possibly
use this issue to cause a denial of service or to expose sensitive
information. This issue only affected Ubuntu 18.04 LTS.
(CVE-2019-17594)
It was discovered that ncurses was incorrectly handling
end-of-string characters when processing terminfo and termcap files.
An attacker could possibly use this issue to cause a denial of
service or to expose sensitive information. This issue only affected
Ubuntu 18.04 LTS. (CVE-2019-17595)
It was discovered that ncurses was incorrectly handling
end-of-string characters when converting between termcap and
terminfo formats. An attac
Apple
CVE-2021-39537: macOS Ventura 13
vendor_apple·2022-10-24·CVSS 8.8
CVE-2021-39537 [HIGH] CVE-2021-39537: macOS Ventura 13
Apple Security Update: About the security content of macOS Ventura 13
Product: macOS Ventura
Version: 13
CVE: CVE-2021-39537
Component: CVE-2021-39537
Impact: Processing a maliciously crafted file may lead to a denial-of-service or potentially disclose memory contents
Description: A denial-of-service issue was addressed with improved validation.
Apple
CVE-2021-39537: macOS Monterey 12.6
vendor_apple·2022-09-12·CVSS 8.8
CVE-2021-39537 [HIGH] CVE-2021-39537: macOS Monterey 12.6
Apple Security Update: About the security content of macOS Monterey 12.6
Product: macOS Monterey
Version: 12.6
CVE: CVE-2021-39537
Component: CVE-2021-39537
Apple
CVE-2021-39537: macOS Big Sur 11.7
vendor_apple·2022-09-12·CVSS 8.8
CVE-2021-39537 [HIGH] CVE-2021-39537: macOS Big Sur 11.7
Apple Security Update: About the security content of macOS Big Sur 11.7
Product: macOS Big Sur
Version: 11.7
CVE: CVE-2021-39537
Component: CVE-2021-39537
Ubuntu
ncurses vulnerabilities
vendor_ubuntu·2022-06-14·CVSS 7.8
CVE-2017-16879 [HIGH] ncurses vulnerabilities
Title: ncurses vulnerabilities
Summary: Several security issues were fixed in ncurses.
Hosein Askari discovered that ncurses was incorrectly performing
memory management operations when dealing with long filenames while
writing structures into the file system. An attacker could possibly
use this issue to cause a denial of service or execute arbitrary
code. (CVE-2017-16879)
Chung-Yi Lin discovered that ncurses was incorrectly handling access
to invalid memory areas when parsing terminfo or termcap entries where
the use-name had invalid syntax. An attacker could possibly use this
issue to cause a denial of service. (CVE-2018-19211)
It was discovered that ncurses was incorrectly performing bounds
checks when processing invalid hashcodes. An attacker could possibly
use this issue to cause
Microsoft
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
vendor_msrc·2021-09-14·CVSS 8.8
CVE-2021-39537 [HIGH] CWE-787 An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Customer Action Required: Yes
R
Debian
CVE-2021-39537: ncurses - An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c ...
vendor_debian·2021·CVSS 8.8
CVE-2021-39537 [HIGH] CVE-2021-39537: ncurses - An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c ...
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
Scope: local
bookworm: resolved (fixed in 6.2+20200912-1)
bullseye: resolved (fixed in 6.2+20200912-1)
forky: resolved (fixed in 6.2+20200912-1)
sid: resolved (fixed in 6.2+20200912-1)
trixie: resolved (fixed in 6.2+20200912-1)
Red Hat
ncurses: heap-based buffer overflow in _nc_captoinfo() in captoinfo.c
vendor_redhat·2020-08-04·CVSS 8.8
CVE-2021-39537 [HIGH] CWE-119 ncurses: heap-based buffer overflow in _nc_captoinfo() in captoinfo.c
ncurses: heap-based buffer overflow in _nc_captoinfo() in captoinfo.c
An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.
A heap overflow vulnerability has been identified in the ncurses package, particularly in the "tic". This flaw results from a lack of proper bounds checking during input processing. By exploiting this boundary error, an attacker can create a malicious file, deceive the victim into opening it using the affected software, and initiate an out-of-bounds write, potentially impacting system availability.
Statement: Red Hat Product Security has rated this issue as having a Low security impact because processing terminfo descriptions in the source form should be handled the same way as executable files or source c
No detection rules found.
No public exploits indexed.
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_captoinfo.c?rev=1.1&content-type=text/x-cvsweb-markuphttp://seclists.org/fulldisclosure/2022/Oct/28http://seclists.org/fulldisclosure/2022/Oct/41http://seclists.org/fulldisclosure/2022/Oct/43http://seclists.org/fulldisclosure/2022/Oct/45https://lists.debian.org/debian-lts-announce/2023/12/msg00004.htmlhttps://lists.gnu.org/archive/html/bug-ncurses/2020-08/msg00006.htmlhttps://lists.gnu.org/archive/html/bug-ncurses/2021-10/msg00023.htmlhttps://security.netapp.com/advisory/ntap-20230427-0012/https://support.apple.com/kb/HT213443https://support.apple.com/kb/HT213444https://support.apple.com/kb/HT213488http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_captoinfo.c?rev=1.1&content-type=text/x-cvsweb-markuphttp://seclists.org/fulldisclosure/2022/Oct/28http://seclists.org/fulldisclosure/2022/Oct/41http://seclists.org/fulldisclosure/2022/Oct/43http://seclists.org/fulldisclosure/2022/Oct/45https://lists.debian.org/debian-lts-announce/2023/12/msg00004.htmlhttps://lists.gnu.org/archive/html/bug-ncurses/2020-08/msg00006.htmlhttps://lists.gnu.org/archive/html/bug-ncurses/2021-10/msg00023.htmlhttps://security.netapp.com/advisory/ntap-20230427-0012/https://support.apple.com/kb/HT213443https://support.apple.com/kb/HT213444https://support.apple.com/kb/HT213488
2021-09-20
Published