GNU LibreDWG
CVE-2026-9605
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious R2004 DWG with bad compressed-section offset
-
DeliveryDeliver file to victim or parsing service
-
Exploitdwgbmp invokes read_2004_compressed_section
-
ExecutionUnchecked address/size triggers heap OOB write/read
-
ImpactCorrupt heap memory, crash or manipulate process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to parse an attacker-controlled DWG file in the AutoCAD R2004 format containing a crafted compressed section, processed through LibreDWG's decode path (the dwgbmp thumbnail utility is the named trigger). No authentication or special privileges are needed per the CVSS vector (PR:N), and the CVSS marks no user interaction (UI:N) - though in realistic desktop usage the victim must open or otherwise feed the malicious file to the tool. Limiting factors: the malicious input must specifically use the R2004 compressed-section structure to reach read_2004_compressed_section, the victim/service must actually process an externally supplied DWG with a vulnerable LibreDWG build, and impact is bounded (low C/I/A, unchanged scope), so the realistic outcome is constrained heap corruption rather than confirmed full code execution. |
| Impact | Signals are mixed and warrant scoping rather than treating this as a top-tier emergency. CVSS 7.3 with vector AV:N/AC:L/PR:N/UI:N suggests easy, unauthenticated, network-reachable exploitation, but this rating is misleading for a file-parsing library: in practice a victim or service must be induced to process an attacker-supplied DWG, so the realistic vector is malicious-file delivery rather than direct network attack, and UI:N is questionable since human-driven parsing typically requires the victim to open a file. The impact metrics (C:L/I:L/A:L, scope unchanged) cap real-world severity - this is heap corruption with partial impact, most plausibly a crash/denial of service or limited memory disclosure/corruption rather than confirmed reliable code execution. Exploit maturity is E:P (proof-of-concept) with RL:O (official fix) and RC:C (confirmed), and a POC DWG is publicly posted, raising the chance of opportunistic testing. No EPSS score was provided and the CVE is not in CISA KEV, so there is no evidence of active in-the-wild exploitation. Net: a moderate-priority, fix-available memory-safety bug whose urgency depends on whether you process untrusted DWG files; the AV:N/UI:N CVSS framing overstates exposure for typical desktop/library usage - verify the actual exposure path in your environment. |
| Exploit ScenarioDerived | An attacker crafts a malicious DWG file (R2004 format with a manipulated compressed-section header) and delivers it to a victim or an automated service that uses LibreDWG - for example a thumbnailing pipeline that runs dwgbmp on uploaded CAD files. When the file is parsed, the unchecked address/size drives an out-of-bounds heap write/read, corrupting memory and most likely crashing the process or potentially enabling further memory manipulation. A working proof-of-concept DWG is publicly published (https://github.com/HackC0der/CVE-Repos/.../libredwg_6d6a339_heap_oob_write_read_2004_compressed_section.dwg), lowering the barrier to reproduction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Heap-based buffer overflow in GNU LibreDWG through version 0.13.4.8160 lets an attacker corrupt heap memory by getting the library to parse a malicious DWG file, specifically a 2004-format file with a crafted compressed section processed via the dwgbmp thumbnail-extraction utility. The flaw stems from missing bounds validation in the decompression routine and is reachable without authentication or user privileges per its CVSS vector; impact is rated low across confidentiality, integrity, and availability (CVSS 7.3). Publicly available exploit code exists (a proof-of-concept DWG sample), but the issue is not listed in CISA KEV, and an official upstream fix has been committed.
RemediationAI
Upstream fix available (commit 8f03865f37f5d4ffd616fef802acc980be54d300); released patched version not independently confirmed - rebuild LibreDWG from a source tree that includes this commit (https://github.com/LibreDWG/libredwg/commit/8f03865f37f5d4ffd616fef802acc980be54d300), or upgrade to the first packaged release incorporating it once your distribution ships one. Until you can deploy the patched build, the most effective compensating control is to avoid processing untrusted DWG files with vulnerable LibreDWG tooling: do not run dwgbmp (or other LibreDWG consumers) against files from unverified sources, since the bug is triggered specifically by malicious R2004 compressed-section content. If LibreDWG runs as part of an automated/service pipeline, restrict it to trusted inputs and sandbox the parser (e.g., run under a restricted, low-privilege account or container with no network and minimal filesystem access) so heap corruption cannot escalate beyond the parsing process; the trade-off is added operational complexity and the loss of automated thumbnail/conversion of externally supplied DWGs. Refer to the VulDB advisory (https://vuldb.com/vuln/365678) and upstream issue #1248 for tracking.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LibreDWG is GNU's C library for reading and writing AutoCAD DWG CAD files, used by tools such as dwgbmp (which extracts the embedded BMP/preview thumbnail from a DWG). The vulnerability is a CWE-122 heap-based buffer overflow. While the advisory text attributes the bug to the byte-reading primitive bit_read_RC in src/bits.c, the published fix actually lands in read_2004_compressed_section in src/decode.c, where the patch adds bounds checks (es.fields.address > max_decomp_size and es.fields.address + size > dec.size) before writing decompressed section data. This indicates the root cause is an unchecked attacker-controlled offset/size from the DWG R2004 compressed-section header that drives an out-of-bounds heap access during decompression, consistent with the exploit sample named 'heap_oob_write_read_2004_compressed_section'. The affected component is identified by CPE cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:* covering all versions up to 0.13.4.8160.
Know when Libredwg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A flaw has been found in GNU libredwg up to 0.13.4.8160. This issue affects the function bit_read_RC of the file bits.c of the component Dwgbmp Utility. This manipulation causes heap-based buffer overflow. The attack is possible to be carried out remotely. The exploit has been published and may be used. Patch name: 8f03865f37f5d4ffd616fef802acc980be54d300. Applying a patch is the recommended action to fix this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Affected Products (CPE)CVE.org
LibreDWG v0.12.4.4608 & commit f2dea29 was discovered to contain a heap use-after-free via bit_copy_chain. Rated critica
LibreDWG v0.12.3 was discovered to contain a heap-buffer overflow via decode_preR13. Rated critical severity (CVSS 9.8),
GNU LibreDWG 0.10 is affected by: memcpy-param-overlap. Rated high severity (CVSS 8.8), this vulnerability is remotely e
An issue was discovered in GNU LibreDWG 0.7 and 0.7.1645. Rated critical severity (CVSS 9.1), this vulnerability is remo
An issue was discovered in GNU LibreDWG 0.7 and 0.7.1645. Rated critical severity (CVSS 9.1), this vulnerability is remo
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via: read_2004_section_classes ../../src/decode.c:
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_read_B ../../src/bits.c:135. Rated high se
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_search_sentinel ../../src/bits.c:1985. Rat
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via: read_2004_section_appinfo ../../src/decode.c:
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_read_RC ../../src/bits.c:318. Rated high s
A heap based buffer overflow vulnerability exists in GNU LibreDWG 0.10 via read_2004_section_revhistory ../../src/decode
A heap based buffer overflow vulnerability exists in GNU LibreDWG 0.10 via read_2004_compressed_section ../../src/decode
Same weakness CWE-122 – Heap-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB