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.
References8
- github.com/LibreCAD/LibreCAD/blob/v2.2.1.5/libraries/libdxfrw/s…
- github.com/LibreCAD/LibreCAD/commit/abd1f4a8e32dbd871c986086227…
- github.com/LibreCAD/LibreCAD/issues/2554
- github.com/LibreCAD/libdxfrw/blob/LC2.2.0/src/intern/dwgreader1…
- github.com/LibreCAD/libdxfrw/commit/0c5595930b20917a40ed7c18847…
- hackmd.io/@haind-pwn/libdxfrw-dwg-header-oob-read
- www.vulncheck.com/advisories/librecad-libdxfrw-through-lc2-2.0-…
- github.com/LibreCAD/LibreCAD/issues/2554
Metrics
- CVSS 3.1
-
3.3
LOW
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - CVSS 4.0
-
4.8
MEDIUM
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 14 · as of 11 November 2026
- CWE
- CWE-125
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.