Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| LibreCAD | LibreCAD | ≤ 2.2.1.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | librecad | No fix yet | — |
| Debian 13 | librecad | No fix yet | — |
| Debian 12 | librecad | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | librecad | No fix yet | — |
| Ubuntu 26.04 LTS | librecad | No fix yet | — |
| Ubuntu 24.04 LTS | librecad | No fix yet | — |
| Ubuntu 22.04 LTS | librecad | No fix yet | — |
| Ubuntu 20.04 LTS | librecad | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | librecad | No fix yet | — |
| Ubuntu Pro 16.04 LTS | librecad | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
zeetee1235/CVE-2026-126497 ★ 0 · Nov 11, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://github.com/LibreCAD/LibreCAD/issues/3256 issue-tracking
- https://github.com/LibreCAD/LibreCAD/commit/17ba2b273b89cc9c8b6fcf71882e327ccf1eebf6 patch
- https://github.com/LibreCAD/LibreCAD/blob/v2.2.1.6/libraries/libdxfrw/src/intern/dwgreader18.cpp#L113-L173 technical-description
- https://github.com/LibreCAD/LibreCAD product
- VulnCheck Advisory: LibreCAD through 2.2.1.6 Heap Out-of-Bounds Write via dwgReader18::parseDataPage third-party-advisory