Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ~4 GiB DXF file (0xFFFFFFF8 bytes)
-
DeliveryPersuade user to open it in LibreCAD
-
ExploitSize truncates in RS_FilterDXF1::readFileInBuffer()
-
ExecutionOut-of-bounds NUL write before 8-byte heap buffer
-
ImpactHeap metadata corruption and application crash
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 | Exploitation requires a victim to open an attacker-crafted DXF file of exactly 0xFFFFFFF8 bytes (~4 GiB) through LibreCAD's legacy DXF1 filter (RS_FilterDXF1::readFileInBuffer), where the unvalidated 64-bit file size truncates to a negative 32-bit int and yields an undersized heap allocation. Limiting factors that reduce realistic risk: the attack vector is local (the file must reach and be opened by the user, UI:P), it depends on an unusually large ~4 GiB file that must be delivered and loaded (reflected in AC:H/AT:P), it targets the old DXF1 import code path specifically, and the demonstrated outcome is an application crash rather than confirmed code execution. |
| Impact | This is a medium-severity (CVSS 4.0 base 5.8) memory-corruption issue whose real-world priority is modest. The provided CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) tells a consistent, low-urgency story: exploitation is local, requires passive user interaction (the victim must open a file), carries a present attack requirement (AT:P) and high attack complexity (AC:H) - because the trigger is a file of exactly 0xFFFFFFF8 bytes (~4 GiB), whose 64-bit size truncates to a negative 32-bit int. The dominant impact is availability (VA:H, a crash) with only low integrity impact (VI:L) from the single out-of-bounds NUL write; there is no confidentiality impact (VC:N) and the available sources describe a crash, not demonstrated code execution. The vuln.today decision label is 'this_month', not act_now or emergency, which aligns with the signals. No KEV listing and no EPSS score are present in the input, so active-exploitation and statistical-exploitation-probability signals are simply absent rather than conflicting - do not read that absence as either confirmation or exoneration. The GitHub references point to the fixing commit/PR and a VulnCheck advisory (fix evidence), not to working exploit code. Net: a legitimate bug worth patching on a normal cycle, not a high-CVSS-but-weaponized emergency. |
| Exploit ScenarioDerived | An attacker crafts a DXF file of 0xFFFFFFF8 bytes (~4 GiB) and socially engineers a LibreCAD user into opening it via the legacy DXF1 import path. The 64-bit file size truncates to a negative int, a tiny (8-byte) heap buffer is allocated, and a NUL byte is written before it, corrupting heap metadata and crashing the application. No public exploit identified at time of analysis; the GitHub references are the fix and a vendor advisory, not verified exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
Heap-based out-of-bounds write in LibreCAD's legacy DXF1 import filter (RS_FilterDXF1::readFileInBuffer) allows a crafted DXF file to corrupt heap metadata and crash the application; all versions through 2.2.1.6 are affected. The flaw is reachable only when a user opens a malicious drawing of exactly 0xFFFFFFF8 bytes (~4 GiB), whose 64-bit size truncates to a negative 32-bit value and produces an undersized heap allocation followed by an out-of-bounds NUL write. The attack is local and requires user interaction with an unusually large file, the demonstrated outcome in the available sources is an application crash rather than confirmed code execution, and no public exploit code has been identified at time of analysis.
RemediationAI
Apply the upstream fix: commit 4e51048ee7ae82e553e739b3bba82d5fa89698e1 (pull request https://github.com/LibreCAD/LibreCAD/pull/3287), which adds the missing bounds check on the 64-bit file size and on _bNum against std::numeric_limits<int>::max() - 16, replaces the raw buffer handling with QFile/std::unique_ptr, and terminates the buffer at the bytes actually read; because no tagged release containing this change is confirmed in the available data, rebuild LibreCAD from the fixed commit (or from a later release verified to include it) rather than relying on an unverified version number. Until the fixed code is deployed, the practical compensating control is to avoid opening DXF drawings from untrusted sources in LibreCAD, particularly files of unusual size approaching 4 GiB, since the vulnerable path is the legacy DXF1 importer invoked on file open; the trade-off is that users lose the ability to view or import untrusted DXF content entirely, and there is no evidence in the supplied sources of a configuration switch that disables only the DXF1 filter, so restriction must be enforced procedurally or through file-type/size filtering at the point content enters the environment. Vendor and third-party advisory details are available at https://www.vulncheck.com/advisories/librecad-through-2.2.1.6-heap-out-of-bounds-write-via-rs-filterdxf1-readfileinbuffer and the fix diff at https://github.com/LibreCAD/LibreCAD/commit/4e51048ee7ae82e553e739b3bba82d5fa89698e1.
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's RS_FilterDXF1 is the older DXF import path that reads an entire drawing into memory before parsing. In the affected code, the file size returned by QFile::size() (a signed 64-bit qint64) was stored and passed around as the 32-bit parameter _bNum without range validation; when a file is exactly 0xFFFFFFF8 bytes, the truncation yields the negative int -8, and the subsequent allocation new char[_bNum + 16] therefore succeeds with only 8 bytes, after which the terminator assignment fBuf[_bNum] = '\0' writes at index -8, i.e. eight bytes in front of the 8-byte block. Zeroing a single byte in that position lands in adjacent heap bookkeeping rather than inside application data, so the class is CWE-787 (out-of-bounds write) manifesting as heap-metadata corruption, with the described effect being a crash of the application. The upstream fix in commit 4e51048 replaces the raw fopen/new/read sequence with QFile plus std::unique_ptr, rejects negative or oversized sizes by comparing the qint64 file size against std::numeric_limits<int>::max() - 16 (and validating _bNum likewise), and terminates the buffer at the number of bytes actually read (buffer[bytesRead] = '\0') instead of at the requested count.
Know when the next one hits your stack
- 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:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Local file-open vector (AV:L) with required victim interaction (UI:R); the ~4 GiB precondition makes it AC:H; impact is a crash (A:H) with minor integrity from the single OOB NUL write (I:L) and no confidentiality (C:N).
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 RS_FilterDXF1::readFileInBuffer() caused by unvalidated truncation of the 64-bit file size. Attackers can persuade users to open a crafted DXF file sized 0xFFFFFFF8 bytes, writing a NUL byte before an 8-byte buffer to corrupt heap metadata and crash the application.
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.
EUVD-2026-133237
GHSA-485x-j2jj-35v3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB