Use-after-free in LibreDWG - #VU170861

 

Use-after-free in LibreDWG - #VU170861

Published: November 29, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to crash an application using LibreDWG and, under some memory allocation conditions, disclose heap data or corrupt heap memory.

The vulnerability exists due to a heap use-after-free in dwg_add_POLYLINE_2D and related polyline creation functions when adding vertices reallocates the object array and leaves a pointer that is subsequently used for reads and writes. A remote attacker can supply input to an application that converts DWG files to older formats or builds drawings through the affected public API to trigger a crash or potentially disclose or corrupt heap data.


Affected software

LibreDWG

Remediation

Install security update from vendor's website.

LibreDWG - update to 0.15

External References

Related Security Bulletins