LibreDWG is a free C library to read and write DWG files. Prior to 0.14, bit_TV_to_utf8() in src/bits.c can write to the caller-provided src buffer despite accepting const input. On an iconv() error other than E2BIG, the function frees its output buffer and passes the original input alias to bit_u_expand(), which expands or shrinks Unicode and multibyte escape sequences in place. If the input is a string literal, read-only mapping, or other immutable buffer, the write can cause a segmentation fault and denial of service; mutable caller-owned input can be unexpectedly modified before being returned. This affects applications that expose the conversion API to untrusted input under those conditions. Direct file-triggered exploitability through normal DWG decode/export paths remains unconfirmed because many TV strings are heap allocated by bit_read_TV(). This issue is fixed in version 0.14.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-471",
"CWE-703"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54610.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "08c034a224a4e9512b1cd62e74b5cf081a4cfa89"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "0.14",
"range": [
{
"fixed": "d9468ae948b8f07a08efa756c19f8916052358c0"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54610.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"293137356731622066556877633854742637156",
"231678867723397022834309974498116934722",
"17442317707626315525578220058940740363",
"321599853359259168687857455384773127678"
],
"threshold": 0.9
},
"id": "CVE-2026-54610-91789807",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/08c034a224a4e9512b1cd62e74b5cf081a4cfa89",
"target": {
"file": "test/unit-testing/bits_test.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-54610-9d8b7cb7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/d9468ae948b8f07a08efa756c19f8916052358c0",
"target": {
"file": "src/encode.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "10813542448790680273373546484464815423",
"length": 2861
},
"id": "CVE-2026-54610-c336e4cb",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/08c034a224a4e9512b1cd62e74b5cf081a4cfa89",
"target": {
"file": "src/bits.c",
"function": "bit_TV_to_utf8"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "205448059214177513386528010526781960739",
"length": 4212
},
"id": "CVE-2026-54610-cd3762f3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/08c034a224a4e9512b1cd62e74b5cf081a4cfa89",
"target": {
"file": "test/unit-testing/bits_test.c",
"function": "bit_TV_to_utf8_tests"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"154512130852018455397856659198690717106",
"51876481842413898283512797170439118054",
"174184467050061406361915063095242200094",
"72521053116087091797231805787808258915",
"294587100473962440125218262153547687185",
"291013262779701407238566580163244165335",
"286715408555221545764630641579777262070",
"188660135417106434958253696063144996382",
"251312105046776457484298978991698236668",
"95784509257409776765300152242340662557",
"173539188606416070312364628183834824913",
"249782971859245451613310168160955920048",
"226235201698424972492719238058069981173"
],
"threshold": 0.9
},
"id": "CVE-2026-54610-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-54610-d6d3b436",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/d9468ae948b8f07a08efa756c19f8916052358c0",
"target": {
"file": "examples/dwgfuzz.c",
"function": "main"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"162773922008385008706031675107279741894",
"35023749800502067195827127243807592839",
"265467041267159437968536726616473268306",
"214933531990376774146959880066153321588"
],
"threshold": 0.9
},
"id": "CVE-2026-54610-e0ecad4e",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libredwg/libredwg/commit/08c034a224a4e9512b1cd62e74b5cf081a4cfa89",
"target": {
"file": "src/bits.c"
}
}
]
"2026-11-06T01:07:16Z"