Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| LibreCAD / libdxfrw | affected 0 through LC2.2.0 |
| LibreCAD / LibreCAD | affected 0 through 2.2.1.5 |
CWE
CWE-125
References
- https://github.com/LibreCAD/LibreCAD/issues/2554
- https://hackmd.io/@haind-pwn/libdxfrw-dwg-header-oob-read
- https://github.com/LibreCAD/libdxfrw/blob/LC2.2.0/src/intern/dwgreader18.cpp#L248
- https://github.com/LibreCAD/LibreCAD/blob/v2.2.1.5/libraries/libdxfrw/src/intern/dwgreader18.cpp#L248
- https://github.com/LibreCAD/libdxfrw/commit/0c5595930b20917a40ed7c188475eaca624b8ce9
- https://github.com/LibreCAD/LibreCAD/commit/abd1f4a8e32dbd871c986086227502217200cd4b
- https://www.vulncheck.com/advisories/librecad-libdxfrw-through-lc2-2.0-stack-out-of-bounds-read-via-dwgreader18-readfileheader
ADP enrichment
No English description supplied.