Description
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.
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 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | librecad | 2.2.1.6-3.1 | openSUSE-SU-2026:12665-1 |
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
-
googlesky/CVE-2026-135294 ★ 0 · Nov 25, 2026
LibreCAD through 2.2.1.6: unbounded DXF file size cast to int — wrapped buffer/read length. ASan+UBSan differential: allocation-size-too-big on vuln, rejection on fixed
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- openSUSE-SU-2026:12665-1 librecad-2.2.1.6-3.1 on GA media SUSE / openSUSE Security Updates · Nov 25, 2026
References
- https://github.com/LibreCAD/LibreCAD/pull/3287 issue-tracking patch
- https://github.com/LibreCAD/LibreCAD/commit/4e51048ee7ae82e553e739b3bba82d5fa89698e1 patch
- https://github.com/LibreCAD/LibreCAD/blob/v2.2.1.6/librecad/src/lib/filters/rs_filterdxf1.cpp#L1827-L1850 technical-description
- VulnCheck Advisory: LibreCAD through 2.2.1.6 Heap Out-of-Bounds Write via RS_FilterDXF1::readFileInBuffer() third-party-advisory