CVE-2026-126497
LibreCAD through 2.2.1.6 contains a heap-based out-of-bounds write …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/LibreCAD/LibreCAD
- github.com/LibreCAD/LibreCAD/blob/v2.2.1.6/libraries/libdxfrw/src/intern/dwgreader18.cpp#L
- github.com/LibreCAD/LibreCAD/commit/17ba2b273b89cc9c8b6fcf71882e327ccf1eebf6
- github.com/LibreCAD/LibreCAD/issues/3256
- www.vulncheck.com/advisories/librecad-through-2.2.1.6-heap-out-of-bounds-write-via-dwgread
- nvd.nist.gov/vuln/detail/CVE-2026-126497
- cve.org/CVERecord?id=CVE-2026-126497
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.