Skip to main content

GNU LibreDWG CVE-2026-15520

| EUVDEUVD-2026-43263 LOW
Heap-based Buffer Overflow (CWE-122)
2026-07-13 VulDB GHSA-67vr-6jq3-273m
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted R2004-format DWG file locally
  2. Delivery
    Trigger decompress_R2004_section in decode.c
  3. Exploit
    Overflow heap-allocated decompression buffer
  4. Execution
    Corrupt adjacent heap metadata or object
  5. Impact
    Achieve 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, decompress_R2004_section overflows a heap buffer in decode.c, corrupting adjacent allocations and producing partial read/write access to heap memory or a process crash. A public PoC file (libredwg_0b57303_heap_overflow_decompress_R2004_section.dwg) hosted at https://github.com/HackC0der/CVE-Repos confirms the overflow is reproducible against the stated version.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

libredwg 0.13.4-154-g0b573035

Affected Packages

euvd libredwg no fix

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

Vendor (VulDB) PRIMARY 1.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Local attack vector and low privilege required per CVSS 4.0 source data; uniform low CIA impact consistent with heap overflow without scope change.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jul 13, 2026 - 02:22 NVD
MEDIUM LOW
CVSS changed
Jul 13, 2026 - 02:22 NVD
4.8 (MEDIUM) 1.9 (LOW)

DescriptionCVE.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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche GNU C library for DWG file parsing
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2022-35164 CRITICAL POC
9.8 Aug 18

LibreDWG v0.12.4.4608 & commit f2dea29 was discovered to contain a heap use-after-free via bit_copy_chain. Rated critica

CVE-2021-28237 CRITICAL POC
9.8 Dec 02

LibreDWG v0.12.3 was discovered to contain a heap-buffer overflow via decode_preR13. Rated critical severity (CVSS 9.8),

CVE-2020-21844 HIGH POC
8.8 May 17

GNU LibreDWG 0.10 is affected by: memcpy-param-overlap. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2019-9775 CRITICAL POC
9.1 Mar 14

An issue was discovered in GNU LibreDWG 0.7 and 0.7.1645. Rated critical severity (CVSS 9.1), this vulnerability is remo

CVE-2019-9774 CRITICAL POC
9.1 Mar 14

An issue was discovered in GNU LibreDWG 0.7 and 0.7.1645. Rated critical severity (CVSS 9.1), this vulnerability is remo

CVE-2020-21833 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via: read_2004_section_classes ../../src/decode.c:

CVE-2020-21841 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_read_B ../../src/bits.c:135. Rated high se

CVE-2020-21840 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_search_sentinel ../../src/bits.c:1985. Rat

CVE-2020-21838 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via: read_2004_section_appinfo ../../src/decode.c:

CVE-2020-21843 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_read_RC ../../src/bits.c:318. Rated high s

CVE-2020-21842 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exists in GNU LibreDWG 0.10 via read_2004_section_revhistory ../../src/decode

CVE-2020-21832 HIGH POC
8.8 May 17

A heap based buffer overflow vulnerability exists in GNU LibreDWG 0.10 via read_2004_compressed_section ../../src/decode

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy