Heap-based buffer overflow in LibreDWG - #VU170848

 

Heap-based buffer overflow in LibreDWG - #VU170848

Published: November 29, 2026


Vulnerability identifier: #VU170848
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt heap memory, potentially crashing the host application or executing arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in dwg_get_entities when the function uses an outdated entity count to allocate the output array but writes a pointer for every entity it finds. A remote attacker can supply a crafted DXF, DXF-B, or JSON file for a victim to open in an application that enumerates imported entities through this function, causing heap corruption or a null pointer dereference if allocation returns null.


Affected software

LibreDWG

Remediation

Install security update from vendor's website.

LibreDWG - update to 0.15

External References

Related Security Bulletins