Description
LibreCAD libdxfrw through LC2.2.0 (LibreCAD through 2.2.1.5) contains a stack-based out-of-bounds read vulnerability in dwgReader18::readFileHeader() caused by calling strlen on non-NUL-terminated buffers. Attackers can supply a crafted AC1018, AC1024 or AC1027 DWG file without NUL bytes in the decrypted header to read adjacent stack memory and crash the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| LibreCAD | libdxfrw | ≤ LC2.2.0 | — |
| LibreCAD | LibreCAD | ≤ 2.2.1.5 | — |
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.5-2.1 | openSUSE-SU-2026:12156-1 |
Advisories 1
- openSUSE-SU-2026:12156-1 librecad-2.2.1.5-2.1 on GA media SUSE / openSUSE Security Updates · Oct 17, 2026
References
- https://github.com/LibreCAD/LibreCAD/issues/2554 issue-tracking
- https://hackmd.io/@haind-pwn/libdxfrw-dwg-header-oob-read third-party-advisory
- https://github.com/LibreCAD/libdxfrw/blob/LC2.2.0/src/intern/dwgreader18.cpp#L248 technical-description
- https://github.com/LibreCAD/LibreCAD/blob/v2.2.1.5/libraries/libdxfrw/src/intern/dwgreader18.cpp#L248 technical-description
- https://github.com/LibreCAD/libdxfrw/commit/0c5595930b20917a40ed7c188475eaca624b8ce9 patch
- https://github.com/LibreCAD/LibreCAD/commit/abd1f4a8e32dbd871c986086227502217200cd4b patch
- VulnCheck Advisory: LibreCAD libdxfrw through LC2.2.0 Stack Out-of-Bounds Read via dwgReader18::readFileHeader third-party-advisory