CVE-2026-54610 Details
Description
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.
A vulnerability exists in LibreDWG versions prior to 0.14 within the `bit_TV_to_utf8()` function. The issue arises because the function can write to a caller-provided buffer designated as constant, particularly when an `iconv()` error occurs, excluding `E2BIG`. This unintended write can lead to a segmentation fault if the buffer is a string literal or another form of read-only memory. Alternatively, if the buffer is mutable, it can be altered unexpectedly before the function returns. This vulnerability is relevant for applications that use the DWG conversion API with untrusted input under these conditions.
Users can upgrade to LibreDWG version 0.14 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2026CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/LibreDWG/libredwg/security/advisories/GHSA-5p98-8245-6hxq | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/LibreDWG/libredwg/commit/08c034a224a4e9512b1cd62e74b5cf081a4cfa89 | [email protected] | Source CodeVendor |
| https://github.com/LibreDWG/libredwg/releases/tag/0.14 | [email protected] | Release NotesVendor |
| https://github.com/LibreDWG/libredwg/security/advisories/GHSA-5p98-8245-6hxq | [email protected] | AdvisoryExploitRemedyVendor |
| https://github.com/user-attachments/files/28631091/libredwg-bit-tv-to-utf8-submission.tar.gz | [email protected] | Broken LinkExploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-471 | Modification of Assumed-Immutable Data (MAID) | [email protected] |
| CWE-703 | Improper Check or Handling of Exceptional Conditions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| LibreDWG | <= 0.13.4.8236 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Oct 30, 2026 | New CVE Received | [email protected] |
Volerion