Junglewise Threat Intelligence

CVE-2026-9502: GNU LibreDWG heap overflow in decompress_R2004_section

CVE-2026-9502 · Severity: medium · CVSS 5.3 · Published 2026-05-25

Technologies: Gnu LibreDWG. Vendors: Gnu.

Executive brief

A vulnerability was found in GNU LibreDWG, a library used for reading and writing AutoCAD DWG files. An attacker could use a specially crafted file to cause a memory overflow, potentially leading to a program crash or unauthorized code execution. This issue primarily affects the 'dwgread' utility when processing certain types of compressed drawing data.

Technical details

A heap-based buffer overflow exists in GNU LibreDWG versions up to 0.14 within the decompress_R2004_section function in src/decode.c. The vulnerability is triggered during the processing of malformed DWG R2004 files using the dwgread utility. An attacker can achieve an out-of-bounds heap write by providing a crafted input file that bypasses insufficient bounds checking during decompression. This can lead to a denial of service (crash) or potentially arbitrary code execution. A patch has been released (commit e501cb9) which adds necessary validation for decompression bytes and offsets.

Affected products

  • GNU LibreDWG up to 0.14

Timeline

  • 2026-04-22: disclosed: Issue reported on GitHub by HackC0der
  • 2026-05-25: advisory: CVE-2026-9502 published
  • 2026-05-25: patched: Patch commit e501cb9 identified

References

Related threats