CVE-2026-135294: LibreCAD through 2.2.1.6 Heap Out-of-Bounds Write via RS_FilterDXF1::readFileInBuffer()
LibreCAD through 2.2.1.6 contains a heap-based out-of-bounds write vulnerability in RSFilterDXF1::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.
Affected Software
Event History
Frequently Asked Questions
What must an attacker do to exploit this issue?
An attacker must persuade a user to open a crafted DXF file. The malicious file is sized 0xFFFFFFF8 bytes and triggers the flaw while LibreCAD reads it.
Are systems affected by default, or is a particular configuration required?
The issue is in LibreCAD's DXF file-reading path, so exposure requires users to open DXF files in the application. No special configuration requirement is provided.
What is the expected impact of successful exploitation?
The crafted file causes a NUL byte to be written before an 8-byte heap buffer, corrupting heap metadata and crashing LibreCAD. The provided severity vector indicates no confidentiality impact, low integrity impact, and high availability impact.
Which LibreCAD versions are affected?
LibreCAD through version 2.2.1.6 is affected.