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->size but never recalculates size. At end of input, bit_read_RC and bit_read_RS stop advancing dat->byte, the overflow guard fails because end equals dat->size, and the no-advance check compares against oldpos saved before the loop instead of the previous iteration. This leaves repeated allocation of dwg->object 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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400",
"CWE-835"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62250.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.14.8413"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "4e14952c43be5b8feff6e54a61af3425d6ca95a4"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "0.14.8413",
"range": [
{
"fixed": "6d8292c0dd524cbc843d098fc6443e20740eb18a"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62250.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "101057962660240199977739962361084677806",
"length": 15744
},
"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": {
"line_hashes": [
"223044812868214305406537915762766597145",
"99076022934765687994725702429975844933",
"280521884270734272855691806749018737604",
"239676760222698117085585951878174431954",
"108589014772739133536422962877895928287",
"111566859272391972274809454084682645498",
"270552445390636497588811575530209397927",
"170898481290521496832733926505120095310",
"110712802109419274686620107201272151619",
"40000856780789621360532134012874732574",
"6827503993108884696229437917682571290",
"136547766111534988436194402651449602153",
"23847440018946259619561816784789097540"
],
"threshold": 0.9
},
"id": "CVE-2026-62250-68a96e22",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4",
"target": {
"file": "src/decode.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"249196408222513215028498025978886477842",
"132013040447803289623657330526935472789",
"305044810762776238659153260895624675768",
"25538343145634585529981249819157098987"
],
"threshold": 0.9
},
"id": "CVE-2026-62250-aad74c69",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/6d8292c0dd524cbc843d098fc6443e20740eb18a",
"target": {
"file": "include/dwg.h"
}
}
]
"2026-11-04T07:07:36Z"