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

Source: https://junglewise.ai/threats/cve-2025-61154-gnu-libredwg-heap-buffer-overflow-in-decompress-r2004-section  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-12. Updated: 2026-06-02  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/libredwg). Vendors: [Gnu](https://junglewise.ai/threats/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

- [https://davizin.com/cves/CVE-2025-61154.html](https://davizin.com/cves/CVE-2025-61154.html)
- [https://github.com/LibreDWG/libredwg/issues/1180](https://github.com/LibreDWG/libredwg/issues/1180)

## Related threats

- [GNU LibreDWG out-of-bounds read in AcDs decoder](https://junglewise.ai/threats/cve-2026-111167-gnu-libredwg-through-0-14-8612-contains-a-global-out-of-bounds)
- [GNU libredwg null pointer dereference in LAYER encoding](https://junglewise.ai/threats/cve-2026-90622-gnu-libredwg-null-pointer-dereference-in-layer-encoding)
- [GNU LibreDWG heap overflow in decompress_R2004_section](https://junglewise.ai/threats/cve-2026-15520-gnu-libredwg-heap-overflow-in-decompress-r2004-section)
- [GNU LibreDWG null pointer dereference in dwg_next_entity](https://junglewise.ai/threats/cve-2026-15184-gnu-libredwg-null-pointer-dereference-in-dwg-next-entity)
- [GNU LibreDWG heap buffer overflow in BMP Image Handler](https://junglewise.ai/threats/cve-2026-15182-gnu-libredwg-heap-buffer-overflow-in-bmp-image-handler)
