{"id":"CVE-2026-62250","summary":"LibreDWG: unbounded allocation in pre-R13 DWG entity decoding","details":"LibreDWG is a free C library to read and write DWG files. Prior to 0.14.8413, a crafted pre-R13 DWG can make `decode_preR13_entities()` in `src/decode.c` enter a nonterminating loop that allocates a new object each iteration. `decode_preR13` in `src/decode_r11.c` computes `size` from the raw file-controlled `entities_start` and `entities_end` header bounds; the callee clamps `end` to `dat-\u003esize` but never recalculates `size`. At `end` of input, `bit_read_RC` and `bit_read_RS` stop advancing `dat-\u003ebyte`, the overflow guard fails because `end` equals `dat-\u003esize`, and the no-advance check compares against `oldpos` saved before the loop instead of the previous iteration. This leaves repeated allocation of `dwg-\u003eobject` entries until allocation fails or the process is OOM-killed, not merely a constant-memory CPU hang. The defect remains after the clamping and no-progress changes associated with the earlier issue 1131. Applications and tools calling `dwg_read_file()` on untrusted files, including `dwg2dxf`, `dwgread` and `dwg2svg`, can suffer denial of service when a user or automated pipeline opens a malformed file; no attacker credentials are required. This issue is fixed in repository nightly version 0.14.8413.","aliases":["GHSA-7625-26gc-xqvp"],"modified":"2026-11-04T07:07:36.178904749Z","published":"2026-10-30T20:37:47.927Z","database_specific":{"cwe_ids":["CWE-400","CWE-835"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62250.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/LibreDWG/libredwg/releases/tag/0.14.8413"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62250.json"},{"type":"ADVISORY","url":"https://github.com/LibreDWG/libredwg/security/advisories/GHSA-7625-26gc-xqvp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62250"},{"type":"REPORT","url":"https://github.com/LibreDWG/libredwg/issues/1131"},{"type":"FIX","url":"https://github.com/LibreDWG/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libredwg/libredwg","events":[{"introduced":"0"},{"fixed":"6d8292c0dd524cbc843d098fc6443e20740eb18a"},{"fixed":"4e14952c43be5b8feff6e54a61af3425d6ca95a4"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.14.8413"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"4e14952c43be5b8feff6e54a61af3425d6ca95a4"}]},{"original_tag":"0.14.8413","range":[{"fixed":"6d8292c0dd524cbc843d098fc6443e20740eb18a"}],"source":"REFERENCES_TAG"}]}}],"versions":["0.14.8411","0.14.8406","0.14.8403","0.14.8396","0.14.8394","0.14.8390","0.14.8384","0.14.8374","0.14.8367","0.14.8363","0.14","0.13.4.8043","0.13.4.8036","0.13.4.8028","0.13.4.8018","0.13.4.8014","0.13.4.8001","0.13.4.7998","0.13.4.7985","0.13.4.7976","0.13.4.7974","0.13.4.7969","0.13.4","0.13.3.7819","0.13.3.7816","0.13.3.7813","0.13.3.7812","0.13.3.7810","0.13.3.7808","0.13.3.7805","0.13.3.7802","0.13.3.7797","0.13.3.7794","0.13.3.7792","0.13.3.7789","0.13.3.7778","0.13.3.7776","0.13.3.7772","0.13.3.7763","0.13.3.7761","0.13.3.7752","0.13.3.7743","0.13.3.7741","0.13.3.7737","0.13.3.7730","0.13.3.7727","0.13.3.7721","0.13.3.7715","0.13.3.7702","0.13.3.7696","0.13.3.7690","0.13.3.7686","0.13.3.7685","0.13.3.7680","0.13.3.7675","0.13.3.7665","0.13.3.7663","0.13.3.7657","0.13.3.7650","0.13.3.7649","0.13.3.7646","0.13.3.7640","0.13.3.7637","0.13.3.7635","0.13.3.7603","0.13.3.7600","0.13.3.7599","0.13.3.7582","0.13.3.7577","0.13.3.7574","0.13.3.7571","0.13.3.7562","0.13.3.7558","0.13.3.7557","0.13.3.7554","0.13.3.7552","0.13.3.7551","0.13.3.7545","0.13.3.7539","0.13.3.7535","0.13.3.7534","0.13.3.7533","0.13.3.7516","0.13.3.7507","0.13.3.7501","0.13.3.7491","0.13.3.7483","0.13.3.7473","0.13.3.7472","0.13.3.7469","0.13.3.7466","0.13.3.7460","0.13.3.7456","0.13.3.7453","0.13.3.7445","0.13.3.7442","0.13.3.7437","0.13.3.7434","0.13.3.7431","0.13.3.7429","0.13.3.7426","0.13.3.7424","0.13.3.7420","0.13.3.7414","0.13.3.7412","0.13.3.7411","0.13.3.7409","0.13.3.7405","0.13.3.7385","0.13.3.7377","0.13.3.7371","0.13.3.7351","0.13.3.7345","0.13.3.7344","0.13.3.7341","0.13.3.7338","0.13.3.7327","0.13.3.7324","0.13.3.7320","0.13.3.7308","0.13.3.7306","0.13.3.7298","0.13.3.7273","0.13.3.7270","0.13.3.7268","0.13.3.7265","0.13.3.7264","0.13.3.7262","0.13.3.7259","0.13.3.7257","0.13.3.7251","0.13.3.7246","0.13.3.7240","0.13.3.7233","0.13.3.7227","0.13.3.7226","0.13.3.7225","0.13.3.7224","0.13.3.7223","0.13.3.7220","0.13.3.7217","0.13.3.7199","0.13.3.7190","0.13.3.7187","0.13.3.7186","0.13.3.7183","0.13.3.7176","0.13.3.7168","0.13.3.7166","0.13.3.7165","0.13.3.7163","0.13.3","0.13.2","0.13.1","0.13","0.12.5","0.12.4","0.12.3","0.12.2","0.12.1","0.12","0.11.1","0.11","0.10.1","0.10","0.9.3","0.9.2","0.9.1","0.9","0.8","0.7","0.6.2","0.6.1","0.6","0.5","0.4.938","0.4.924","0.4.900","0.4-dev","0.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62250.json","vanir_signatures":[{"id":"CVE-2026-62250-2585a924","signature_type":"Function","signature_version":"v1","source":"https://github.com/libredwg/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4","target":{"file":"src/decode.c","function":"decode_preR13_entities"},"deprecated":false,"digest":{"function_hash":"101057962660240199977739962361084677806","length":15744}},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/libredwg/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4","target":{"file":"src/decode.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["223044812868214305406537915762766597145","99076022934765687994725702429975844933","280521884270734272855691806749018737604","239676760222698117085585951878174431954","108589014772739133536422962877895928287","111566859272391972274809454084682645498","270552445390636497588811575530209397927","170898481290521496832733926505120095310","110712802109419274686620107201272151619","40000856780789621360532134012874732574","6827503993108884696229437917682571290","136547766111534988436194402651449602153","23847440018946259619561816784789097540"]},"id":"CVE-2026-62250-68a96e22"},{"id":"CVE-2026-62250-aad74c69","signature_type":"Line","signature_version":"v1","source":"https://github.com/libredwg/libredwg/commit/6d8292c0dd524cbc843d098fc6443e20740eb18a","target":{"file":"include/dwg.h"},"deprecated":false,"digest":{"line_hashes":["249196408222513215028498025978886477842","132013040447803289623657330526935472789","305044810762776238659153260895624675768","25538343145634585529981249819157098987"],"threshold":0.9}}],"vanir_signatures_modified":"2026-11-04T07:07:36Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}