Skip to main content

LibreDWG EUVDEUVD-2026-114462

| CVE-2026-62254 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-10-30 GitHub_M
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft DWG with oversized num_classes field
  2. Delivery
    Deliver file to LibreDWG-based application
  3. Exploit
    Victim opens/parses the DWG
  4. Execution
    decode_R13_R2000 enters per-iteration realloc loop
  5. Impact
    Resource exhaustion / denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Exploitation requires a victim application or user to parse an attacker-supplied DWG file in the R13-R2000 format range using LibreDWG prior to 0.14, with the crafted file carrying a manipulated num_classes field that drives the class-decoding loop in decode_R13_R2000. The limiting factors are significant: the CVSS vector shows AV:L and UI:R, so there is no remote network-triggered path on its own - the attacker must get the malicious file in front of a parser, and some user or automated process must actually process it. Impact is confined to availability (C:N/I:N/A:H), i.e. a slow-allocation hang or resource exhaustion of the parsing process, not code execution. The vendor states that running LibreDWG sandboxed with ulimit'ed memory is only a workaround, not a remediation; upgrading to 0.14 is the fix.

Impact

This is a genuine but limited-priority issue - a moderate-severity, availability-only denial of service, not a high-impact or actively exploited flaw. The provided CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, base 5.5) is internally consistent with the description: the attack is local and requires the victim to parse a crafted file (UI:R), with no confidentiality or integrity impact and only availability affected via algorithmic resource exhaustion. No EPSS score was provided, so statistical exploitation likelihood cannot be quantified. The vulnerability is NOT in CISA KEV, and no SSVC decision block was supplied; the only priority signal is the vuln.today 'this_month' label, which is consistent with a real-but-non-emergency DoS. No verified working exploit code is referenced - the available links are the vendor advisory, the tracking issue, the fix commit, and the release, and the issue itself frames the defect as something surfaced by fuzzing. The practical ceiling on risk is that the impact is a crash/hang of the parsing process (A:H), not code execution, so the realistic consequence is disruption of any service or workflow that ingests untrusted DWG files, rather than compromise.

Exploit ScenarioDerived

An attacker crafts an R13-R2000 DWG file with a manipulated num_classes value and delivers it to a victim who opens or processes it with an application built on LibreDWG prior to 0.14 (for example a CAD viewer, converter, or automated ingestion pipeline). When decode_R13_R2000 parses the file, the unbounded per-iteration realloc loop forces an extremely slow allocation sequence, hanging or exhausting resources on the parsing host. No verified working exploit code is published; the defect was characterized as a fuzzing-reachable DoS.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 30, 2026

Denial of service in LibreDWG versions before 0.14: a crafted R13-R2000 DWG file with a manipulated num_classes field drives the class-decoding loop in decode_R13_R2000 into an extremely slow realloc-per-iteration cycle, hanging or exhausting the memory of the process that parses it. The issue is availability-only (C:N/I:N/A:H) with a local attack vector and required user interaction, so an attacker must deliver the file to a victim application or user that actually parses it with the affected library. No public exploit code or active exploitation was identified at time of analysis, and the vendor-released fix is version 0.14.

RemediationAI

Vendor-released patch: upgrade LibreDWG to version 0.14, the release in which decode_R13_R2000 now rejects excessive class counts; the release is at https://github.com/LibreDWG/libredwg/releases/tag/0.14 and the underlying change is commit https://github.com/LibreDWG/libredwg/commit/9de893a2e395ff5ac104a46cca54c5e2cf8f02cf. The vendor explicitly describes running LibreDWG in a sandbox with ulimit'ed memory as a workaround rather than a remediation, so it should only be used as a stopgap where upgrading is not yet possible; the trade-off is that the memory ceiling can also abort or fail legitimate parsing of very large or complex DWG files, and it does not remove the slow realloc loop itself. Advisory references: https://github.com/LibreDWG/libredwg/security/advisories/GHSA-gp83-hcvh-g255 and https://github.com/LibreDWG/libredwg/issues/1261.

Affected VersionsENISA

libredwg < 0.14

Affected Packages

euvd libredwg fix: 0.14

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

LibreDWG is a free C library that reads and writes DWG files, the native format of AutoCAD and other CAD tools; the r13-r2000 decoder lives in src/decode.c in the function decode_R13_R2000. The flaw is CWE-400 (Uncontrolled Resource Consumption), also tracked as CWE-789, and the root cause per the vendor advisory is that the class-decoding loop at approximately decode.c:628 calls realloc on every iteration without any prior sanity check on the num_classes value read from the file. Because that count comes straight from attacker-controlled input, a small file can declare a very large class count and force a long sequence of allocations, producing a slow loop and resource exhaustion rather than memory corruption or code execution. The upstream fix in commit 9de893a2e395ff5ac104a46cca54c5e2cf8f02cf bounds the loop at 100 + (size / sizeof(Dwg_Class)) (each class entry is at minimum about 10 bytes on disk, so sizeof(Dwg_Class) is a deliberately generous upper bound), logs an error, sets DWG_ERR_VALUEOUTOFBOUNDS and jumps to handles_section. The CVSS vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) describes severity and prerequisites, not the trigger mechanism; the trigger itself is the manipulated num_classes field described by the vendor.

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 (GitHub_M) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

A crafted file must be parsed by the victim (AV:L, UI:R) with no privileges needed; the deterministic unchecked loop makes AC:L, and impact is availability-only (A:H, C:N/I:N).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Oct 30, 2026 - 22:03 EUVD

DescriptionCVE.org

LibreDWG is a free C library to read and write DWG files. Prior to 0.14, a specially crafted R13-R2000 DWG can trigger algorithmic resource exhaustion in decode_R13_R2000 in src/decode.c. The class-decoding loop performs realloc on every iteration without a sanity check on num_classes. Manipulating that field forces an extremely slow allocation loop and denial of service when the file is parsed. Running the parser in a sandbox with memory limits is a workaround rather than a remediation. This issue is fixed in version 0.14.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
niche open-source DWG parsing library, limited production footprint
Data Quality
6 sources
Confidence: High

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 No
EPSS 0.2%
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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