Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted R2004-format DWG file locally
-
DeliveryTrigger decompress_R2004_section in decode.c
-
ExploitOverflow heap-allocated decompression buffer
-
ExecutionCorrupt adjacent heap metadata or object
-
ImpactAchieve partial memory read/write or process crash
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 that the attacker hold at minimum a low-privilege local account on the target system (PR:L per CVSS 4.0 vector) - unauthenticated remote exploitation is not possible given AV:L. The vulnerable code path is triggered only when LibreDWG processes a DWG file that exercises the R2004 section decompression routine; DWG files not using the R2004 format do not reach the vulnerable function. Indirect remote exploitation is conceivable if a web application or service accepts DWG file uploads and passes them to LibreDWG locally, but this requires an application-layer delivery chain not inherent to the vulnerability itself. Key limiting factors are the local attack vector, the requirement for a crafted R2004-format DWG file, and the low-to-moderate impact ceiling (no privilege escalation or scope change indicated). There are no indications of a default-enabled network listener or daemon that parses DWG files automatically. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) confirms that exploitation is strictly local: an attacker must already have low-privilege access to the system and the ability to supply files to a LibreDWG-consuming process. The scored impact across vulnerable-system confidentiality, integrity, and availability is uniformly low (VC:L/VI:L/VA:L), with no scope change affecting subsequent systems (SC:N/SI:N/SA:N). The E:P modifier acknowledges a publicly available proof-of-concept. With a base score of 4.8, this is medium severity. The absence of a CISA KEV listing and the local-only attack vector substantially reduce real-world priority compared to a network-exploitable heap overflow of equivalent class. The primary risk population is developer workstations, CI/CD pipelines, and server-side document conversion services that parse untrusted DWG files using LibreDWG - if such services invoke LibreDWG in a privileged context, the effective impact could exceed the base CVSS score. EPSS data was not provided in the input and cannot be assessed. No conflicting signals between CVSS vector and description were identified. |
| Exploit ScenarioDerived | A local attacker places a specially crafted DWG file - constructed to embed malformed R2004 section metadata - into a directory monitored by an automated LibreDWG-based conversion service running as a low-privilege daemon. When the service processes the file, |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Heap-based buffer overflow in GNU LibreDWG 0.13.4-154-g0b573035 allows a local low-privileged attacker to corrupt heap memory by supplying a crafted DWG file processed through the R2004 section decompressor, yielding partial confidentiality, integrity, and availability impact. The vulnerability resides in decompress_R2004_section within src/decode.c and is exploitable whenever LibreDWG parses attacker-controlled R2004-format DWG content. A public proof-of-concept exploit file has been disclosed on GitHub; no CISA KEV listing is present, indicating no confirmed widespread active exploitation at time of analysis.
RemediationAI
Upgrade GNU LibreDWG to version 0.14.8396 or later, which incorporates the fix in commit 3d0f9fc2eddbd6579c99af3111c37c98f03475d0; the release is available at https://github.com/LibreDWG/libredwg/releases/tag/0.14.8396. If immediate upgrade is not feasible, restrict processing of externally sourced or untrusted DWG files - specifically block ingestion of files containing R2004-format sections at the application layer. For server-side document conversion pipelines, sandbox the LibreDWG process using a container, Linux namespaces, or a seccomp-bpf profile to constrain the impact of heap exploitation; note that this does not prevent the overflow but limits post-exploitation reach. Compiling LibreDWG with -D_FORTIFY_SOURCE=2 and heap hardening flags can aid in detecting exploitation at runtime but may introduce minor build compatibility issues depending on the toolchain.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GNU LibreDWG is an open-source C library maintained under the GNU project for reading and writing AutoCAD DWG binary files. The R2004 DWG format (AutoCAD 2004 and later) uses a proprietary section-based compression scheme. The vulnerable function decompress_R2004_section in src/decode.c fails to adequately validate input bounds before writing to a heap-allocated destination buffer during decompression of R2004-format section data. CWE-122 (Heap-Based Buffer Overflow) identifies the root cause: attacker-controlled section metadata or compressed data can cause writes beyond the intended allocation boundary, corrupting adjacent heap structures. The affected CPE cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:* indicates all versions through 0.13.4-154-g0b573035 are vulnerable, and the fix is confirmed at commit 3d0f9fc2eddbd6579c99af3111c37c98f03475d0 in release 0.14.8396.
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:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Local attack vector and low privilege required per CVSS 4.0 source data; uniform low CIA impact consistent with heap overflow without scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was determined in GNU LibreDWG 0.13.4-154-g0b573035. This impacts the function decompress_R2004_section of the file src/decode.c of the component R2004 Section Decompression. Executing a manipulation can lead to heap-based buffer overflow. The attack requires local access. The exploit has been publicly disclosed and may be utilized. Upgrading to version 0.14.8396 will fix this issue. This patch is called 3d0f9fc2eddbd6579c99af3111c37c98f03475d0. You should upgrade the affected component.
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.
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
EUVD-2026-43263
GHSA-67vr-6jq3-273m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB