Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious AC1018 DWG file
-
DeliveryDeliver file to victim
-
ExploitVictim opens file in LibreCAD
-
ExecutionparseDataPage uses attacker startOffset
-
Persistdecompress18 writes past heap buffer
-
ImpactCrash 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
A code execution vulnerability exists in the dwgCompressor::decompress18() functionality of LibreCad libdxfrw 2.2.0-rc2-
A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f
A code execution vulnerability exists in the dwgCompressor::copyCompBytes21 functionality of LibreCad libdxfrw 2.2.0-rc2
LibreCAD 2.1.3 allows remote attackers to cause a denial of service (0x89C04589 write access violation and application c
A Buffer Overflow vulnerability in importshp plugin in LibreCAD 2.2.0 allows attackers to obtain sensitive information v
Opening a specially crafted DWG file (versions AC1018, AC1024, or AC1027) in LibreCAD or any application linking libdxfr
EUVD-2026-123062
GHSA-8vq5-h62f-ccwp
NVD
CVE.org
EPSS
Exploit-DB