CVE-2021-36080
NixOS vulnerability analysis and mitigation

Overview

GNU LibreDWG versions 0.12.3.4163 through 0.12.3.4191 contains a double-free vulnerability in the bit_chain_free function, which is called from dwg_encode_MTEXT and dwg_encode_add_object functions. The vulnerability was discovered on March 6, 2021, and was fixed in a subsequent update (OSS-Fuzz Report).

Technical details

The vulnerability is a heap-based double-free issue that occurs in the bit_chain_free function when it's called from dwg_encode_MTEXT and dwg_encode_add_object. The issue arises in cases of handle overflow, such as num_reactors, where the same memory location is freed twice (LibreDWG Commit).

Impact

A heap double-free vulnerability can lead to memory corruption, which could potentially result in program crashes or arbitrary code execution. The severity of this vulnerability has been rated as HIGH according to the ecosystem-specific assessment (OSS-Fuzz Vulns).

Exploitability

The vulnerability can be triggered through specially crafted input that causes a handle overflow condition. The issue was discovered through automated fuzzing by OSS-Fuzz, suggesting it could be exploited through malformed input files (OSS-Fuzz Report).

Mitigation and workarounds

The vulnerability was fixed in a commit (9b6e0ff9ef02818df034fc42c3bd149a5ff89342) that modified the handle data management to avoid the double-free condition. Users should upgrade to a version after 0.12.3.4191 to receive the fix (LibreDWG Commit).

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-2026-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 2026

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