LibreDWG is a free C library to read and write DWG files. Prior to 0.14, a specially crafted R13-R2000 DWG can trigger algorithmic resource exhaustion in decode_R13_R2000 in src/decode.c. The class-decoding loop performs realloc on every iteration without a sanity check on num_classes. Manipulating that field forces an extremely slow allocation loop and denial of service when the file is parsed. Running the parser in a sandbox with memory limits is a workaround rather than a remediation. This issue is fixed in version 0.14.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400",
"CWE-789"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62254.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "9de893a2e395ff5ac104a46cca54c5e2cf8f02cf"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "0.14",
"range": [
{
"fixed": "d9468ae948b8f07a08efa756c19f8916052358c0"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62254.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "33210210896446548338807783678270006791",
"length": 18443
},
"id": "CVE-2026-62254-5f267f15",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/9de893a2e395ff5ac104a46cca54c5e2cf8f02cf",
"target": {
"file": "src/decode.c",
"function": "decode_R13_R2000"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"68490460587942001085726276113190760142",
"328421618244966369999753805783465479548",
"327069529285931533224792270038734213694",
"337301526000407636466990824034158248782"
],
"threshold": 0.9
},
"id": "CVE-2026-62254-98bd3134",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/9de893a2e395ff5ac104a46cca54c5e2cf8f02cf",
"target": {
"file": "src/decode.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"49767515012856523006609786846141487675",
"51767973309089573731138741627418469522",
"214988644504213162965813640952238262990",
"244819296756283961456692824590706746832",
"27844949856869863672095217557809784032",
"77896253088770974522687231449032865388",
"109656386444620635452392358778299269116",
"296031323750994905362176623140475984053",
"106201200356465986227145837673662370733",
"30256074524972750250787441305293718266",
"173369055911681301747166990024197824583",
"143621292742105292688096803105989929264",
"65876926228280999514100252927459455022",
"85392031684084465774002464460570711921",
"249238180479009043757627070605456909292",
"195222699048597012469761422123501115447"
],
"threshold": 0.9
},
"id": "CVE-2026-62254-9d8b7cb7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/d9468ae948b8f07a08efa756c19f8916052358c0",
"target": {
"file": "src/encode.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"154512130852018455397856659198690717106",
"51876481842413898283512797170439118054",
"174184467050061406361915063095242200094",
"72521053116087091797231805787808258915",
"294587100473962440125218262153547687185",
"291013262779701407238566580163244165335",
"286715408555221545764630641579777262070",
"188660135417106434958253696063144996382",
"251312105046776457484298978991698236668",
"95784509257409776765300152242340662557",
"173539188606416070312364628183834824913",
"249782971859245451613310168160955920048",
"226235201698424972492719238058069981173"
],
"threshold": 0.9
},
"id": "CVE-2026-62254-d1ac7042",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/d9468ae948b8f07a08efa756c19f8916052358c0",
"target": {
"file": "examples/dwgfuzz.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "268448865954434003822748246748691671176",
"length": 5110
},
"id": "CVE-2026-62254-d6d3b436",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/d9468ae948b8f07a08efa756c19f8916052358c0",
"target": {
"file": "examples/dwgfuzz.c",
"function": "main"
}
}
]
"2026-11-04T07:07:35Z"