CVE-2025-61154: GNU LibreDWG heap buffer overflow in decompress_R2004_section

CVE-2025-61154 · Severity: medium · CVSS 6.5 · Published 2026-03-12

LibreDWG is an open-source library used for reading and writing DWG files, the native format for AutoCAD software. A security flaw in how the library handles specific compressed data sections allows a malicious actor to crash applications using the library by providing a specially crafted DWG file. This results in a denial-of-service, potentially disrupting workflows or automated systems that process CAD drawings.

Technologies: Gnu LibreDWG. Vendors: Gnu.

Quick answers

Is CVE-2025-61154 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-61154 being exploited in the wild.
How severe is CVE-2025-61154?
Medium severity, with a CVSS score of 6.5, published 12 March 2026.
Which products and versions are affected?
Gnu LibreDWG v0.13.3.7571 - v0.13.3.7835.
Is there a fix for CVE-2025-61154?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2025-61154 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2025-61154?
Check whether you run Gnu LibreDWG at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A heap-based buffer overflow (CWE-122) exists in LibreDWG within the 'decompress_R2004_section' function in 'decode.c'. The vulnerability is triggered when the library attempts to decompress R2004-format sections from a malformed DWG file, leading to an out-of-bounds memory write. An attacker can exploit this by inducing a user or automated system to open a specially crafted DWG file. Successful exploitation results in a segmentation fault and application crash (Denial of Service). The issue was identified via fuzzing and affects versions ranging from v0.13.3.7571 to v0.13.3.7835.

Affected products

  • GNU LibreDWG v0.13.3.7571 - v0.13.3.7835

Timeline

  • 2025-09-05: disclosed: Issue reported on GitHub repository
  • 2026-03-12: advisory: CVE published by MITRE

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.