Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-135294: medium-severity vulnerability (CVSS 5.8) in LibreCAD LibreCAD.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 5.8.
Affected products and versions
LibreCAD LibreCAD <= 2.2.1.6
| Product | Versions | Fixed in |
|---|---|---|
| LibreCAD LibreCAD | <= 2.2.1.6 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/LibreCAD/LibreCAD/pull/3287 — CVE Program
- https://github.com/LibreCAD/LibreCAD/commit/4e51048ee7ae82e553e739b3bba82d5fa89698e1 — CVE Program
- https://github.com/LibreCAD/LibreCAD/blob/v2.2.1.6/librecad/src/lib/filters/rs_filterdxf1.cpp#L1827-L1850 — CVE Program
- https://www.vulncheck.com/advisories/librecad-through-2.2.1.6-heap-out-of-bounds-write-via-rs-filterdxf1-readfileinbuffer — CVE Program
Weaknesses (CWE): CWE-787
Relevant change history
Published
Preliminary advisory published.