Libredwg vulnerabilities
In the last 30 days, 3 Libredwg vulnerabilities were published: 0 critical, 0 actively exploited. Most common weakness: uncontrolled resource consumption (CWE-400).
CVSS score: 5.5 Severity: Medium Identifier: CVE-2026-62250 LibreDWG: unbounded allocation in pre-R13 DWG entity decoding Package: libredwg (< 0.14.8413) Published Published
LibreDWG is a free C library to read and write DWG files. Prior to 0.14.8413, a crafted pre-R13 DWG can make decode_preR13_entities() in src/decode.c enter a nonterminating loop that allocates a new object each iteration. decode_preR13 in src/decode_r11.c computes size from the raw file-controlled entities_start and entities_end header bounds; the callee clamps end to dat->size but never recalculates size. At end of input, bit_read_RC and bit_read_RS stop advancing dat->byte, the overflow guard fails because end equals dat->size, and the no-advance check compares against oldpos saved before the loop instead of the previous iteration. This leaves repeated allocation of dwg->object entries until allocation fails or the process is OOM-killed, not merely a constant-memory CPU hang. The defect remains after the clamping and no-progress changes associated with the earlier issue 1131. Applications and tools calling dwg_read_file() on untrusted files, including dwg2dxf, dwgread and dwg2svg, can suffer denial of service when a user or automated pipeline opens a malformed file; no attacker credentials are required. This issue is fixed in repository nightly version 0.14.8413.
- Exploitation
- No known exploitation
- EPSS
- 0.17% chance of exploitation in the next 30 days, higher than 3.9% of CVEs
- CVSS
- 5.5 out of 10 · source NVD (github.com)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Versions
- < 0.14.8413
- Weakness
- CWE-400, CWE-835
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 5 h ago
CVSS score: 5.5 Severity: Medium Identifier: CVE-2026-62254 LibreDWG: excessive class-decoding reallocation in R13-R2000 DWG parsing Package: libredwg (< 0.14) Published Published
LibreDWG is a free C library to read and write DWG files. Prior to 0.14, a specially crafted R13-R2000 DWG can trigger algorithmic resource exhaustion in decode_R13_R2000 in src/decode.c. The class-decoding loop performs realloc on every iteration without a sanity check on num_classes. Manipulating that field forces an extremely slow allocation loop and denial of service when the file is parsed. Running the parser in a sandbox with memory limits is a workaround rather than a remediation. This issue is fixed in version 0.14.
- Exploitation
- No known exploitation
- EPSS
- 0.17% chance of exploitation in the next 30 days, higher than 3.9% of CVEs
- CVSS
- 5.5 out of 10 · source NVD (github.com)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Versions
- < 0.14
- Weakness
- CWE-400, CWE-789
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 5 h ago
CVSS score: 3.3 Severity: Low Identifier: CVE-2026-54610 LibreDWG: const-input mutation and crash in bit_TV_to_utf8 error handling Package: libredwg (< 0.14) Published Published
LibreDWG is a free C library to read and write DWG files. Prior to 0.14, bit_TV_to_utf8() in src/bits.c can write to the caller-provided src buffer despite accepting const input. On an iconv() error other than E2BIG, the function frees its output buffer and passes the original input alias to bit_u_expand(), which expands or shrinks Unicode and multibyte escape sequences in place. If the input is a string literal, read-only mapping, or other immutable buffer, the write can cause a segmentation fault and denial of service; mutable caller-owned input can be unexpectedly modified before being returned. This affects applications that expose the conversion API to untrusted input under those conditions. Direct file-triggered exploitability through normal DWG decode/export paths remains unconfirmed because many TV strings are heap allocated by bit_read_TV(). This issue is fixed in version 0.14.
- Exploitation
- No known exploitation
- EPSS
- 0.17% chance of exploitation in the next 30 days, higher than 3.4% of CVEs
- CVSS
- 3.3 out of 10 · source NVD (github.com)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - Versions
- < 0.14
- Weakness
- CWE-471, CWE-703
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 5 h ago