Use-after-free in LibreDWG - #VU170861
Published: November 29, 2026
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.