High
Security advisory
GNU LibreDWG 0.12.3.4163 through 0.12.3.4191 has a double-free in bit_chain_free (called from dwg_encode_MTEXT and dwg_encode_add_object).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-36080
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:45 UTC · Revision 1
Source evidence
GNU LibreDWG 0.12.3.4163 through 0.12.3.4191 has a double-free in bit_chain_free (called from dwg_encode_MTEXT and dwg_encode_add_object).
osv:CVE-2021-36080
Complete source record
{
"id": "7636706352accd3e6cfa7fc723b5018b56b5eff4d9bf3e1ba0747ac9910b76c0",
"url": "https://osv.dev/vulnerability/CVE-2021-36080",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-36080",
"summary": "GNU LibreDWG 0.12.3.4163 through 0.12.3.4191 has a double-free in bit_chain_free (called from dwg_encode_MTEXT and dwg_encode_add_object).",
"evidence": "osv:CVE-2021-36080",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-36080",
"aliases": [
"CVE-2021-36080"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libredwg/libredwg",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "9b6e0ff9ef02818df034fc42c3bd149a5ff89342"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "9b6e0ff9ef02818df034fc42c3bd149a5ff89342"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"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-2021-36080.json",
"vanir_signatures": [
{
"id": "CVE-2021-36080-411c8eff",
"digest": {
"length": 440,
"function_hash": "117940919438387030657313444888900934789"
},
"source": "https://github.com/libredwg/libredwg/commit/9b6e0ff9ef02818df034fc42c3bd149a5ff89342",
"target": {
"file": "src/encode.c",
"function": "_private"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-36080-7d2cda6e",
"digest": {
"length": 480,
"function_hash": "222482997438391403955362237316737849451"
},
"source": "https://github.com/libredwg/libredwg/commit/9b6e0ff9ef02818df034fc42c3bd149a5ff89342",
"target": {
"file": "src/encode.c",
"function": "token"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-36080-d6311943",
"digest": {
"length": 480,
"function_hash": "56926433449165778975677005811349847944"
},
"source": "https://github.com/libredwg/libredwg/commit/9b6e0ff9ef02818df034fc42c3bd149a5ff89342",
"target": {
"file": "src/encode.c",
"function": "token"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-36080-debc5567",
"digest": {
"threshold": 0.9,
"line_hashes": [
"288712488893903512223280823526857305454",
"85455761272098550183880599787532100014",
"183069802358250971376645517424090144774",
"47284913634765236378214009821009347064",
"2340223854611400523904418016634482337",
"56912377388653730600853018597790924986",
"89014135500226548444945712381399167817",
"287660253048912785076616423617966800388",
"69451097223397141196608426186242963027",
"62910346436502076506951609763194359802",
"239957100592431877625630349834377995956",
"220703862567639174924490715496829136588",
"34066312719592156980629263546744633452",
"100509082883586296856352783302746544168",
"69782854348130418566692199746206054914",
"285616631961413851070736294433384921611",
"233567386203093787833446618422777771967",
"235481404105748525695745805176382772360",
"18423438818818081493221269029834857545",
"118256802939868015571075378876605315506",
"44762612608796111107454217659073804633",
"334336627696390824614795281904961646396",
"326898558449254293948635311760065653585",
"279054814108048591727434534025067945793",
"258455768917598868792004258236289458496",
"334950678624749253510238704511738057616",
"146380922260753864319318518045047523014",
"274171806876113715787150586942507807517",
"70409827101518024311426649938334070516",
"22804330745980459824173796120022781770",
"312758586359002173452077683048822947042",
"234887475365151299811247877605884526405",
"336433176821158571678543261548574020538",
"215105040095945958114233462225310459647",
"100509082883586296856352783302746544168",
"285616631961413851070736294433384921611",
"233567386203093787833446618422777771967",
"235481404105748525695745805176382772360",
"18423438818818081493221269029834857545",
"234887475365151299811247877605884526405",
"336433176821158571678543261548574020538",
"215105040095945958114233462225310459647",
"100509082883586296856352783302746544168"
]
},
"source": "https://github.com/libredwg/libredwg/commit/9b6e0ff9ef02818df034fc42c3bd149a5ff89342",
"target": {
"file": "src/encode.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-36080-ea907bf6",
"digest": {
"length": 404,
"function_hash": "324569338775683358868175276696415478172"
},
"source": "https://github.com/libredwg/libredwg/commit/9b6e0ff9ef02818df034fc42c3bd149a5ff89342",
"target": {
"file": "src/encode.c",
"function": "_private"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:25:21Z"
}
}
],
"modified": "2026-10-20T14:25:21.540992765Z",
"provider": "osv",
"references": [
"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libredwg/OSV-2021-495.yaml",
"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31724",
"https://github.com/LibreDWG/libredwg/commit/9b6e0ff9ef02818df034fc42c3bd149a5ff89342"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:*"
],
"vendor_product": "gnu:libredwg",
"extracted_events": [
{
"range": [
{
"introduced": "0.12.3.4163"
},
{
"last_affected": "0.12.3.4191"
}
],
"source": "CPE_RANGE"
}
]
},
{
"extracted_events": [
{
"range": [
{
"introduced": "0.12.3.4163"
},
{
"last_affected": "0.12.3.4191"
}
],
"source": "DESCRIPTION"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-36080",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388973,
"published_at": "2021-07-01T03:15:08.573+00:00"
}