Skip to main content

GNU LibreDWG CVE-2026-9605

MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-05-26 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious R2004 DWG with bad compressed-section offset
  2. Delivery
    Deliver file to victim or parsing service
  3. Exploit
    dwgbmp invokes read_2004_compressed_section
  4. Execution
    Unchecked address/size triggers heap OOB write/read
  5. Impact
    Corrupt 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – 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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
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

3
CVE Published
Jun 22, 2026 - 06:03 cve.org
MEDIUM 5.5
Severity Changed
May 27, 2026 - 00:22 NVD
HIGH MEDIUM
CVSS changed
May 27, 2026 - 00:22 NVD
7.3 (HIGH) 5.5 (MEDIUM)

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

EPSS Score
0.1%
Top 82% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:*
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

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed

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