{"id":"UBUNTU-CVE-2026-126497","details":"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.","modified":"2026-11-18T11:14:54Z","published":"2026-11-11T01:17:00Z","upstream":["CVE-2026-126497"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-126497"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-126497"},{"type":"REPORT","url":"https://github.com/LibreCAD/LibreCAD/issues/3256"},{"type":"REPORT","url":"https://github.com/LibreCAD/LibreCAD"},{"type":"REPORT","url":"https://github.com/LibreCAD/LibreCAD/blob/v2.2.1.6/libraries/libdxfrw/src/intern/dwgreader18.cpp#L113-L173"},{"type":"REPORT","url":"https://github.com/LibreCAD/LibreCAD/commit/17ba2b273b89cc9c8b6fcf71882e327ccf1eebf6"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/librecad-through-2.2.1.6-heap-out-of-bounds-write-via-dwgreader18-parsedatapage"}],"affected":[{"package":{"name":"librecad","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.4-1build1","2.0.8-1","2.0.9-2","2.0.9-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.0.9-2ubuntu0.1~esm1"},{"binary_name":"librecad-data","binary_version":"2.0.9-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-1","2.1.2-1ubuntu0.1~esm1","2.1.2-1ubuntu0.1~esm2","2.1.2-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.1.2-1ubuntu0.1~esm2"},{"binary_version":"2.1.2-1ubuntu0.1~esm2","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.3-1.2","2.1.3-1.2build1","2.1.3-1.2+deb10u1build0.20.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.3-1.2+deb10u1build0.20.04.1","binary_name":"librecad"},{"binary_name":"librecad-data","binary_version":"2.1.3-1.2+deb10u1build0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.3-1.3","2.1.3-3"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.1.3-3"},{"binary_version":"2.1.3-3","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0-1","2.2.0.2-1","2.2.0.2-1build1","2.2.0.2-1build2","2.2.0.2-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.2.0.2-1build3"},{"binary_version":"2.2.0.2-1build3","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0.2-1build3","2.2.0.2-3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.0.2-3","binary_name":"librecad"},{"binary_version":"2.2.0.2-3","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0.2-1build3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.0.2-1build3","binary_name":"librecad"},{"binary_version":"2.2.0.2-1build3","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126497.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}