CVEfocus › CVE database › CVE-2021-39537

CVE-2021-39537

CVSS 8.8 HighEPSS 3.2% (higher than 89% of CVEs)Published 2021-09-20Updated 2026-10-08Assigner: mitre

An issue was discovered in ncurses through v6.2-1. _nc_captoinfo in captoinfo.c has a heap-based buffer overflow.

What to do

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

Red Hat, 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

18Fixed
9Fix pending
12Will not fix
7Not 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 22.04ncursesNot affected
vulnerable_code_not_present
Ubuntu 20.04ncursesFixed6.2-0ubuntu2.1UBUNTU-CVE-2021-39537
Ubuntu 18.04ncursesFixed6.1-1ubuntu1.18.04.1UBUNTU-CVE-2021-39537
Ubuntu 16.04ncursesFix pending6.0+20160213-1ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-39537
Ubuntu 14.04ncursesFix pending5.9+20140118-1ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-39537
Debian 14ncursesFixed6.2+20200912-1DEBIAN-CVE-2021-39537
Debian 13ncursesFixed6.2+20200912-1DEBIAN-CVE-2021-39537
Debian 12ncursesFixed6.2+20200912-1DEBIAN-CVE-2021-39537
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 8ncursesFix pending
Fix deferred
Red Hat Enterprise Linux 8ncurses-baseFix pending
Fix deferred
Red Hat Enterprise Linux 8ncurses-c++-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8ncurses-compat-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8ncurses-develFix pending
Fix deferred
Red Hat Enterprise Linux 8ncurses-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8ncurses-termFix pending
Fix deferred
Red Hat Enterprise Linux 7ncursesWill not fix
Out of support scope
Red Hat Enterprise Linux 7ncurses-baseWill not fix
Out of support scope
Red Hat Enterprise Linux 7ncurses-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ncurses-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7ncurses-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7ncurses-termWill not fix
Out of support scope
Red Hat Enterprise Linux 6ncursesWill not fix
Out of support scope
Red Hat Enterprise Linux 6ncurses-baseWill not fix
Out of support scope
Red Hat Enterprise Linux 6ncurses-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6ncurses-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ncurses-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6ncurses-termWill not fix
Out of support scope
Alpine Linux 3.24ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.23ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.22ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.21ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.20ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.19ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.18ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.17ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.16ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.15ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.14ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.13ncursesFixed6.2_p20200530-r0ALPINE-CVE-2021-39537
Alpine Linux 3.12ncursesFixed6.2_p20200523-r1ALPINE-CVE-2021-39537

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.