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.
https://github.com/LibreCAD/LibreCAD/pull/3287
https://github.com/LibreCAD/LibreCAD/commit/4e51048ee7ae82e553e739b3bba82d5fa89698e1