home / blog
2026-11-11 · high
LibreCAD: CVE-2026-126497, heap-based flaw in DWG files
Heap-based flaw in LibreCAD 2.2.1.6 and earlier. Malformed DWG files can cause crashes and code execution.

CVE-2026-126497 is a heap-based out-of-bounds write vulnerability in DWG files of LibreCAD (version 2.2.1.6 and earlier). The flaw resides in the parseDataPage() function of the libdxfrw library, used to read drawing files in AC1018 (R2004) format. When a malformed DWG file with corrupted startOffset values is opened, the decompress18 function writes beyond the heap buffer boundaries, causing immediate crashes and potential code execution in the application context.
The vulnerability presents a CVSS score of 7.8 (high range), indicating concrete risk for enterprise environments. It was published on NVD on 2026-11-11, and on the same day signals from GitHub repositories reported exploit availability. However, current data does not confirm active exploitation in the wild. LibreCAD is widely used in engineering, architecture, and design environments, making DWG files a realistic attack vector in targeted phishing or supply chain compromise scenarios.
Administrators and security teams must: (1) update LibreCAD to the corrected version as soon as available by verifying official channels for patches; (2) prohibit opening DWG files from unverified senders and external email; (3) isolate design and engineering workstations from high-value corporate networks; (4) configure anti-phishing controls for DWG attachments with suspicious metadata. In the short term, discourage opening DWG files received through unmanaged channels until the official patch is released.
At a glance
- What
- Heap-based out-of-bounds write in parseDataPage() function of libdxfrw during AC1018 DWG file parsing. Corrupted startOffset values cause buffer overflow.
- Severity
- CVSS 7.8 (high). Crashes and potential code execution in application user context.
- Affected versions
- LibreCAD 2.2.1.6 and all earlier versions.
- Fix
- Not reported. Check LibreCAD official channels for security patches.
- Status
- Published on NVD on 2026-11-11. GitHub repositories report exploit availability. No confirmation of verified active exploitation.
- Action
- Update LibreCAD as soon as available. Limit opening DWG files from untrusted senders. Isolate vulnerable workstations from critical networks.
Sources: NVD, CVE-2026-126497