Skip to main content

GNU LibreDWG CVE-2026-9530

| EUVDEUVD-2026-31790 LOW
Out-of-bounds Read (CWE-125)
2026-05-26 VulDB GHSA-x5hm-p5rv-v4c7
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain local low-privilege access to target system
  2. Delivery
    Craft malicious DWG 2004 file with oversized section address or size values
  3. Exploit
    Supply crafted file to dwgbmp utility or LibreDWG-based application
  4. Execution
    Trigger out-of-bounds read in read_2004_compressed_section
  5. Impact
    Application crash causing denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Local filesystem access with low-level privileges (PR:L per CVSS 4.0 vector) is required - remote network-based exploitation is not possible without an intermediary file upload or intake mechanism. The attacker must supply a crafted DWG 2004-format file to be processed by the dwgbmp utility or another application that calls read_2004_compressed_section(). The vulnerability triggers during parsing of a DWG 2004 section whose header fields (es.fields.address or es.fields.address + size) exceed the decompression buffer size. No special non-default configuration is required - any use of LibreDWG to open DWG 2004 files is affected. Limiting factors include: mandatory local access or control over the file input path to a LibreDWG process, inability to exploit remotely without a file intake vector, and crash-only impact with no confirmed code execution path.

Impact

CVSS 4.0 score of 1.9 accurately reflects the constrained risk: AV:L requires local access, PR:L demands at minimum low-privilege credentials, and the only confirmed impact is VA:L (partial availability - crash). No confidentiality (VC:N, SC:N) or integrity (VI:N, SI:N) impact is indicated. EPSS at 0.01% (2nd percentile) confirms negligible in-the-wild exploitation probability. SSVC designation of non-automatable with partial technical impact aligns with the local-access requirement and crash-only outcome. A POC DWG file is publicly available, which is a distinct signal from active exploitation - this does not elevate to KEV-level concern. The primary real-world risk is a denial-of-service crash in file-processing pipelines that ingest untrusted DWG files. For organizations that do not process externally sourced DWG files with LibreDWG, exposure is negligible. The POC filename references 'heap_oob_write' while NVD and CWE classify this as out-of-bounds read (CWE-125); this minor discrepancy is unresolved from available data and does not materially change the risk profile.

Exploit ScenarioDerived

A local attacker with standard user privileges places a crafted DWG 2004 file on a system where a LibreDWG-based application (such as dwgbmp) automatically or manually processes DWG files - for example, a shared rendering or conversion service. The malicious file contains section header fields with an address or address+size value exceeding the decompression buffer bounds, triggering an out-of-bounds read in read_2004_compressed_section and crashing the application. A proof-of-concept DWG file is publicly available at https://github.com/HackC0der/CVE-Repos/blob/main/libredwg/libredwg_6d6a339_heap_oob_write_read_2004_compressed_section.dwg, lowering the bar for reproduction.

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

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

Alert me

AnalysisAIv1 – Jun 08, 2026

Out-of-bounds read in GNU LibreDWG's read_2004_compressed_section function (src/decode.c) affects all versions through 0.14, allowing a local low-privileged attacker to crash the dwgbmp utility or any LibreDWG-based application by supplying a crafted DWG 2004 file with manipulated section address or size fields. Impact is limited to availability (application crash) with no confirmed confidentiality or integrity exposure per the CVSS 4.0 vector. A publicly available proof-of-concept DWG file exists on GitHub, but EPSS at 0.01% (2nd percentile) and no CISA KEV listing confirm this is not currently subject to widespread exploitation.

RemediationAI

Apply the upstream patch at commit 8f03865f37f5d4ffd616fef802acc980be54d300 from the LibreDWG GitHub repository (https://github.com/LibreDWG/libredwg/commit/8f03865f37f5d4ffd616fef802acc980be54d300). An exact patched release version number is not confirmed from available data - only the upstream commit is established, so monitor the LibreDWG releases page for an official tagged release incorporating this fix. As an immediate workaround, restrict LibreDWG-based applications to processing only trusted, internally sourced DWG files and block ingestion of externally supplied DWG 2004-format files at the application or network boundary. If sandboxing is feasible, run dwgbmp and LibreDWG-based parsers in an isolated container or process with minimal privileges to limit the blast radius of a crash to denial of service rather than broader system impact. The VulDB advisory is available at https://vuldb.com/vuln/365549.

Affected VersionsENISA

libredwg 0.7
libredwg 0.2
libredwg 0.3
libredwg 0.5
libredwg 0.6
libredwg 0.8
libredwg 0.1
libredwg 0.14
libredwg 0.9
libredwg 0.13
libredwg 0.11
libredwg 0.4
libredwg 0.10
libredwg 0.12

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 for reading and writing AutoCAD DWG format files. The vulnerable function read_2004_compressed_section() in src/decode.c handles decompression of section data within DWG 2004-format files, used by the dwgbmp utility component. The upstream patch commit (8f03865f37f5d4ffd616fef802acc980be54d300) reveals the root cause: the function failed to validate that es.fields.address did not exceed max_decomp_size, and that es.fields.address + size did not exceed dec.size before accessing the decompression buffer. An attacker-controlled DWG file could embed section header values that cause the parser to read beyond the allocated buffer boundary. CWE-125 (Out-of-bounds Read) is the confirmed root cause class. CPE cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:* covers all versions of the library.

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 LOW
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

1
CVSS changed
May 26, 2026 - 16:22 NVD
3.3 (LOW) 1.9 (LOW)

DescriptionCVE.org

A weakness has been identified in GNU LibreDWG up to 0.14. The impacted element is the function read_2004_compressed_section of the file src/decode.c of the component Dwgbmp Utility. Executing a manipulation can lead to out-of-bounds read. The attack requires local access. The exploit has been made available to the public and could be used for attacks. This patch is called 8f03865f37f5d4ffd616fef802acc980be54d300. It is advisable to implement a patch to correct this issue.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
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.0%
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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