Submit #814250: LibreDWG Project LibreDWG <= 0.14, main branch up to commit 6d6a339 (released 2026-04-10) Reachable Assertion (CWE-617)info

TitleLibreDWG Project LibreDWG <= 0.14, main branch up to commit 6d6a339 (released 2026-04-10) Reachable Assertion (CWE-617)
DescriptionA reachable assertion vulnerability exists in the LibreDWG library, in versions up to and including 0.14, and the main branch up to commit 6d6a339 (2026-04-10). The vulnerability resides in the decompress_R2004_section function within src/decode.c at line 1293. This flaw is caused by inadequate validation of offset and position values when processing maliciously crafted DWG R2004 compressed section input data. During the decompression process, the internal position pointer pos becomes smaller than the expected comp_offset value, violating the assertion constraint (long)pos >= (long)comp_offset. This issue can be triggered by an attacker providing a specially crafted DWG file to the dwgread utility, leading to an assertion failure and immediate program abort (denial of service).
Source⚠️ https://github.com/LibreDWG/libredwg/issues/1242
User
 pwn3rd (UID 97480)
Submission04/27/2026 17:27 (3 months ago)
Moderation05/25/2026 12:04 (28 days later)
StatusAccepted
VulDB entry365483 [GNU LibreDWG up to 0.14 Dwgread Utility src/decode.c decompress_R2004_section assertion]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!