CVE-2021-39522
NixOS vulnerability analysis and mitigation

Overview

An issue was discovered in libredwg through v0.10.1.3751 where the bit_wcs2len() function in bits.c contains a heap-based buffer overflow vulnerability (NVD, Debian Tracker). The vulnerability was disclosed on September 20, 2021 and affects all versions of libredwg up to and including version 0.10.1.3751.

Technical details

The vulnerability exists in the bit_wcs2len() function located in the bits.c file of libredwg. It manifests as a heap-based buffer overflow condition that occurs during memory operations. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The heap buffer overflow vulnerability can lead to multiple severe impacts including potential code execution, system crashes, and memory corruption. When successfully exploited, it could allow attackers to gain unauthorized access to system memory, potentially leading to arbitrary code execution or denial of service conditions (GitHub Issue).

Mitigation and workarounds

Users should upgrade to a version newer than v0.10.1.3751 where this vulnerability has been addressed. For systems that cannot be immediately updated, it is recommended to implement access controls to limit exposure to potentially malicious input files (NVD).

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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 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