{"id":"CVE-2026-62254","state":"PUBLISHED","title":"LibreDWG: excessive class-decoding reallocation in R13-R2000 DWG parsing","description":"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.","publishedAt":"2026-10-30T20:36:09.037Z","updatedAt":"2026-10-30T22:12:55.917Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["LibreDWG libredwg"],"affected":[{"vendor":"LibreDWG","product":"libredwg","versions":[{"version":"< 0.14","status":"affected"}]}],"references":["https://github.com/LibreDWG/libredwg/security/advisories/GHSA-gp83-hcvh-g255","https://github.com/LibreDWG/libredwg/issues/1261","https://github.com/LibreDWG/libredwg/commit/9de893a2e395ff5ac104a46cca54c5e2cf8f02cf","https://github.com/LibreDWG/libredwg/releases/tag/0.14"],"weaknesses":["CWE-400","CWE-789"],"ingestedAt":"2026-10-30T22:16:06.501Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62254.json","commit":"226652b7321cd45ef01add6f464a8114b52515e5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62254","state":"PUBLISHED","datePublished":"2026-10-30T20:36:09.037Z","dateUpdated":"2026-10-30T22:12:55.917Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-13T17:09:57.573Z"},"containers":{"cna":{"title":"LibreDWG: excessive class-decoding reallocation in R13-R2000 DWG parsing","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"LibreDWG","product":"libredwg","versions":[{"version":"< 0.14","status":"affected"}]}],"references":[{"url":"https://github.com/LibreDWG/libredwg/security/advisories/GHSA-gp83-hcvh-g255","name":"https://github.com/LibreDWG/libredwg/security/advisories/GHSA-gp83-hcvh-g255","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/LibreDWG/libredwg/issues/1261","name":"https://github.com/LibreDWG/libredwg/issues/1261","tags":["x_refsource_MISC"]},{"url":"https://github.com/LibreDWG/libredwg/commit/9de893a2e395ff5ac104a46cca54c5e2cf8f02cf","name":"https://github.com/LibreDWG/libredwg/commit/9de893a2e395ff5ac104a46cca54c5e2cf8f02cf","tags":["x_refsource_MISC"]},{"url":"https://github.com/LibreDWG/libredwg/releases/tag/0.14","name":"https://github.com/LibreDWG/libredwg/releases/tag/0.14","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-789","lang":"en","description":"CWE-789: Memory Allocation with Excessive Size Value","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T20:36:09.037Z"},"source":{"advisory":"GHSA-gp83-hcvh-g255","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T21:18:19.876055Z","id":"CVE-2026-62254","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T22:12:55.917Z"}}]}}}