Skip to main content

LibreCAD CVE-2026-126497

| EUVDEUVD-2026-123062 HIGH
Out-of-bounds Write (CWE-787)
2026-11-11 VulnCheck GHSA-8vq5-h62f-ccwp
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious AC1018 DWG file
  2. Delivery
    Deliver file to victim
  3. Exploit
    Victim opens file in LibreCAD
  4. Execution
    parseDataPage uses attacker startOffset
  5. Persist
    decompress18 writes past heap buffer
  6. Impact
    Crash or arbitrary code execution

Vulnerability Assessment

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

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires the victim to open a maliciously crafted AC1018 (R2004) DWG file in LibreCAD through 2.2.1.6; the file must carry manipulated startOffset (and related page-size) values in the data-page section so that dwgReader18::parseDataPage() passes an out-of-bounds offset into decompress18(). Limiting factors: the vector is local file-based (AV:L), not network-reachable, and mandatory user interaction is required (UI:P) - the victim must actively open the crafted drawing; no authentication is needed (PR:N) but no exploitation occurs without the user action. Only the DWG R2004/AC1018 parsing path in the bundled libdxfrw is affected.

Impact

Signals point to a serious but not emergency-grade issue. The CVSS 4.0 score of 8.5 is driven by full compromise of the vulnerable system (VC:H/VI:H/VA:H) via a heap out-of-bounds write (CWE-787) with code-execution potential, but the vector is explicitly AV:L with UI:P - this is a file-parsing bug, not a remotely reachable network service. Exploitation therefore requires a victim to open an attacker-supplied malicious DWG file in LibreCAD; there is no autonomous/wormable path. The vuln.today Decision label is 'this_week' (prioritize within the week, not an emergency). No CISA KEV listing and no EPSS score are present in the supplied data, so widespread or automated exploitation is not evidenced - EPSS absence is a data gap, not a 'low probability' finding, and should not be read as confirmation of low risk. No PoC/exploit artifact is marked confirmed in the input (the GitHub issue #3256 and VulnCheck advisory are references, not verified working exploit code). Net: a genuine code-execution-capable memory-corruption flaw whose real-world risk is tempered by the required user interaction and local file-delivery vector; patch within the vendor/priority-recommended week rather than treat as a drop-everything emergency.

Exploit ScenarioDerived

An attacker crafts a malicious AC1018 (R2004) DWG file with manipulated startOffset values and delivers it to a victim (email attachment, shared drawing, download). When the victim opens the file in LibreCAD ≤2.2.1.6, the bundled libdxfrw dwgReader18::parseDataPage() uses the unchecked offset so decompress18() writes past the heap buffer, crashing the application and potentially yielding arbitrary code execution in the user's context. No confirmed public working exploit is identified in the supplied data; delivery depends on convincing the victim to open the file (UI:P).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Nov 11, 2026

Heap-based out-of-bounds write in LibreCAD through 2.2.1.6 lets an attacker corrupt process memory, crashing the application or potentially achieving code execution, when a crafted AC1018 (R2004) DWG drawing is opened. The defect lives in the bundled libdxfrw dwgReader18::parseDataPage() routine, which trusts per-page startOffset and size fields taken from the file and hands an out-of-bounds destination pointer to decompress18(). Severity is high (CVSS 8.5; assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R with C/I/A:H), but the attack is file-based and requires the victim to open the malicious drawing, no public exploit code was identified at time of analysis, and the issue is not listed in CISA KEV.

RemediationAI

The vendor has published a fix: upstream commit 17ba2b273b89cc9c8b6fcf71882e327ccf1eebf6 (https://github.com/LibreCAD/LibreCAD/commit/17ba2b273b89cc9c8b6fcf71882e327ccf1eebf6) rewrites dwgReader18::parseSysPage()/parseDataPage() to bound the decoded buffer, validate pi.startOffset and pi.size against the allocation, cap the buffer at 0x2f000000 bytes and reject oversized or zero-length pages before decompress18() runs; an upstream fix is available as a commit, but a tagged LibreCAD release carrying it is not independently confirmed, so verify your build includes this change or rebuild from a commit at or after it (tracked in issue https://github.com/LibreCAD/LibreCAD/issues/3256). Until a patched build is deployed, the exposure is limited to opening AC1018 (R2004) DWG files, so treat untrusted .dwg drawings as hostile - the practical control is to avoid opening R2004-format DWG files from untrusted sources or to convert them to DXF in a sandboxed/isolated environment before loading them in LibreCAD, accepting that this removes DWG import convenience for those files.

Affected VersionsENISA

LibreCAD 0 ≤2.2.1.6

Affected Packages

euvd librecad 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

LibreCAD bundles the libdxfrw library to read AutoCAD DWG and DXF files; dwgReader18 is the reader for the AC1018 (R2004) DWG format generation. In parseSysPage(), the decoder allocates a heap buffer from section metadata (pageCount * maxSize in the pre-fix code) and then parseDataPage() decompresses each data page into that buffer at an offset supplied by the file itself (objData + pi.startOffset), with the output size forced to si.maxSize rather than being bounded by the allocation. Because neither startOffset nor the page/compressed sizes were validated against the allocated buffer, a DWG carrying manipulated startOffset values makes decompress18() write past the end of the heap allocation - the CWE-787 out-of-bounds write class. The upstream commit 17ba2b273b89cc9c8b6fcf71882e327ccf1eebf6 hardens the path: it caps the buffer at 0x2f000000 bytes, computes bufferPageCount from si.size/pageCap, rejects si.size == 0 and compressed flags other than 1 or 2, uses nothrow allocations with null checks, validates pi.size, pi.address and pi.startOffset against the real bufferSize and pageCap, rejects zero compressed size and pi.uSize > pageCap, and only then calls decompress18 with pageCap. Only the DWG R2004/AC1018 parsing code path is affected; reachability requires local delivery of a crafted drawing and user interaction to open it.

Know when Librecad 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 (VulnCheck) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Triggered by opening a crafted local DWG file, so AV:L and UI:R; no privileges needed (PR:N); heap OOB write enables full code execution in-process, so C/I/A all High.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

LibreCAD through 2.2.1.6 contains a heap-based out-of-bounds write vulnerability in the bundled libdxfrw dwgReader18::parseDataPage() function due to unchecked buffer size and page offsets. Attackers can craft an AC1018 (R2004) DWG file with malicious startOffset values that cause decompress18 to write past the heap buffer when opened, causing crashes and potential code execution.

Executive ViewAI

Why It Matters

LibreCAD versions up to 2.2.1.6 contain a high-severity heap out-of-bounds write vulnerability (CVE-2026-126497) that can crash the application or potentially enable code execution when a user opens a maliciously crafted DWG drawing. Engineering, design, and other teams that routinely exchange DWG files are exposed, creating risks of disruption, data loss, and potential system compromise requiring leadership attention.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
open-source desktop CAD application, mostly hobbyist/SMB, small enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

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