Heap-based buffer overflow in LibreDWG - #VU170848
Published: November 29, 2026
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.