Skip to main content

GNU LibreDWG CVE-2026-15182

| EUVDEUVD-2026-42580 LOW
Heap-based Buffer Overflow (CWE-122)
2026-07-09 VulDB GHSA-3h8r-9w82-hxmh
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious DWG with oversized BMP data
  2. Delivery
    Deliver file to target user or pipeline
  3. Exploit
    Open file in LibreDWG-based application
  4. Execution
    dwg_bmp parses embedded BMP image
  5. Persist
    Heap buffer overflow corrupts adjacent memory
  6. Impact
    Application crash or arbitrary code execution

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 a target system runs an application built against GNU LibreDWG 0.13.4 or earlier and that application processes a malicious DWG file containing crafted BMP image data - specifically traversing the dwg_bmp code path in src/dwg.c. The CVSS 4.0 vector confirms local attack vector (AV:L) and low-privilege requirement (PR:L): the attacker must either have local user-level access to supply or place the malicious file, or must socially engineer a user into opening it with a LibreDWG-based tool. No special non-default configuration is required beyond normal DWG file handling - any application that calls the BMP image handler on attacker-controlled input is vulnerable. Exploitation is concretely limited by: (1) local/user-level access or user interaction required; (2) only versions through 0.13.4 are affected; (3) the target application must exercise the DWG BMP parsing code path; and (4) reliable code execution from a heap overflow depends on heap layout, compiler mitigations (ASLR, stack canaries, hardened allocators), and OS-level exploit mitigations.

Impact

The CVSS 4.0 score of 4.8 (Medium) appropriately reflects the constrained real-world risk profile: the local attack vector (AV:L) and low-privilege requirement (PR:L) mean an attacker cannot exploit this remotely against an unattended system. All three impact dimensions (VC:L/VI:L/VA:L) are rated low, and no scope change affects other systems (SC:N/SI:N/SA:N). The E:P modifier confirms publicly available exploit code, which elevates urgency compared to unexploited heap overflows. No EPSS score was included in the provided intelligence, so probabilistic exploitation likelihood cannot be quantified. The absence of a CISA KEV listing indicates no confirmed widespread active exploitation at time of analysis. The realistic threat is an attacker who can deliver a malicious DWG file to a user running LibreDWG-based tooling, or who already has local user-level access - limiting the exposure surface considerably. Environments that batch-process untrusted DWG files carry the highest risk.

Exploit ScenarioDerived

An attacker crafts a malicious DWG file (analogous to the publicly disclosed R13/R2000 .dwg POC at https://github.com/HackC0der/CVE-Repos/blob/main/libredwg/libredwg_0b57303_heap_overflow_decode_R13_R2000.dwg) and delivers it to a user running a LibreDWG-based CAD application, or places it in a directory where an automated DWG processing pipeline will ingest it. When the application calls dwg_bmp to parse the embedded BMP image data, the crafted dimensions or data length trigger a write past the heap buffer boundary, corrupting adjacent heap structures and causing at minimum an application crash, and potentially enabling code execution under the user's privilege context.

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 09, 2026

Heap-based buffer overflow in GNU LibreDWG up to version 0.13.4 allows local low-privileged attackers to corrupt heap memory via a specially crafted DWG file containing malicious BMP image data processed by the dwg_bmp function in src/dwg.c. A public proof-of-concept exploit (a crafted R13/R2000 .dwg file) has been disclosed on GitHub, raising the urgency for affected deployments that process untrusted DWG input. No confirmed active exploitation (CISA KEV) has been recorded, and a vendor-released patch in version 0.14 fully resolves the issue.

RemediationAI

The primary remediation is to upgrade GNU LibreDWG to version 0.14 or later, which fully resolves the heap-based buffer overflow in the dwg_bmp function. The patched release is confirmed at https://github.com/LibreDWG/libredwg/releases/tag/0.14, and the specific fix is commit 18fd542bb4d5ccedf9de12052bf50068b2b26f06 (https://github.com/LibreDWG/libredwg/commit/18fd542bb4d5ccedf9de12052bf50068b2b26f06). For environments where an immediate upgrade is not feasible, restrict DWG file processing to sources from trusted, validated origins only - rejecting externally supplied DWG files at ingestion boundaries eliminates the attack surface. Additionally, consider running LibreDWG-based applications inside a restricted sandbox (e.g., seccomp-bpf profile, container with read-only filesystem mounts, or a dedicated low-privilege service account) to contain the blast radius if heap corruption is triggered; this does not prevent the overflow but limits lateral movement and privilege escalation opportunities.

Affected VersionsENISA

libredwg 0.13.3
libredwg 0.13.2
libredwg 0.13.4
libredwg 0.13.0
libredwg 0.13.1

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 (CPE: cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:*) is an open-source C library implementing read/write support for the AutoCAD DWG binary format, used by tools such as FreeCAD and related open-source CAD applications. The vulnerability resides in the dwg_bmp function within src/dwg.c, which is responsible for parsing BMP image data embedded inside DWG files. CWE-122 (Heap-based Buffer Overflow) identifies the root cause: insufficient bounds checking during BMP image data parsing allows a malicious DWG file to write past the end of a heap-allocated buffer. This class of flaw exposes adjacent heap metadata or function pointers to corruption, creating conditions that can lead to process crashes or, under favorable heap layout, arbitrary code execution within the parsing application's privilege context.

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 file-parsing attack requires low privileges to supply the malicious DWG; no scope change occurs and impact is bounded to the parsing process.

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 09, 2026 - 12:22 NVD
MEDIUM LOW
CVSS changed
Jul 09, 2026 - 12:22 NVD
4.8 (MEDIUM) 1.9 (LOW)

DescriptionCVE.org

A vulnerability has been found in GNU LibreDWG up to 0.13.4. The affected element is the function dwg_bmp of the file src/dwg.c of the component BMP Image Handler. Such manipulation leads to heap-based buffer overflow. The attack must be carried out locally. The exploit has been disclosed to the public and may be used. Upgrading to version 0.14 is sufficient to fix this issue. The name of the patch is 18fd542bb4d5ccedf9de12052bf50068b2b26f06. It is suggested to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche GNU library for AutoCAD DWG file parsing
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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