Junglewise Threat Intelligence

CVE-2026-9504: GNU LibreDWG out-of-bounds read in Dwggrep Utility

CVE-2026-9504 · Severity: low · CVSS 3.3 · Published 2026-05-25

Technologies: Gnu LibreDWG. Vendors: Gnu.

Executive brief

GNU LibreDWG is a library used for reading and writing DWG files, which are the standard format for computer-aided design (CAD) software. A vulnerability in the library's search utility could allow a local user to read sensitive information from the computer's memory by providing a specially crafted, malformed DWG file. This could lead to minor data exposure or be used as part of a more complex attack chain.

Technical details

An out-of-bounds read vulnerability exists in GNU LibreDWG versions up to 0.14 within the Dwggrep Utility. The flaw is located in the bit_convert_TU function in programs/dwggrep.c (and src/bits.c). When processing a malformed DWG file, specifically during an LTYPE search, the application may fail to find a wide null terminator in the binary buffer. This causes the scanner to read past the allocated heap buffer. An attacker with local access can exploit this by providing a crafted DWG file to the dwggrep tool, potentially leading to information disclosure from heap memory. A patch has been released (commit be996bf) which introduces bounded conversion functions.

Affected products

  • GNU LibreDWG up to 0.14

Timeline

  • 2026-05-25: advisory: Initial disclosure by VulDB
  • 2026-05-25: disclosed
  • 2026-05-25: patched: Patch commit be996bf2178a40e98720f18c2414815d244413db released

References

Related threats