CVE-2021-39537
NixOS vulnerability analysis and mitigation

Overview

A heap-based buffer overflow vulnerability was discovered in ncurses through version 6.2-1, specifically in the nccaptoinfo function in captoinfo.c. The vulnerability was discovered in August 2020 and assigned CVE-2021-39537 in September 2021 (Bug Report, NVD).

Technical details

The vulnerability exists in the nccaptoinfo function in captoinfo.c where improper bounds checking leads to a heap buffer overflow condition. The issue manifests as a READ operation of size 1 beyond allocated memory boundaries. The vulnerability has a CVSS v3.1 base score of 8.8 (High) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

While initially rated with a high CVSS score, the actual impact appears to be limited to a buffer overread that could lead to application crashes or information disclosure. The vulnerability cannot be exploited for arbitrary code execution as originally thought (Bug Discussion).

Mitigation and workarounds

The vulnerability was fixed in subsequent releases of ncurses. Various operating system vendors have released patches, including Apple in macOS updates and Debian in security updates. For Debian 10 buster, the fix was included in version 6.1+20181013-2+deb10u5 (Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management