Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted DXF with OLE2FRAME entity
-
ExploitVictim imports file via LibreDWG
-
ExecutionDXF export reads freed oleclient pointer
-
ImpactApplication crash and freed-heap leak
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a victim to use GNU LibreDWG (e.g. the dxfwrite tool) to IMPORT an attacker-supplied DXF file that contains an OLE2FRAME entity, and then EXPORT it to either ASCII or Binary DXF - the use-after-free of OLE2FRAME.oleclient is read during the export stage, not merely on import. There are NO authentication or privilege prerequisites (PR:N), but the vector is local (AV:L) and demands passive user interaction (UI:P): the attacker cannot trigger it remotely and must get the target to process the malicious file. Limiting factors that reduce realistic risk: both crashes were reproduced only under AddressSanitizer/UBSan instrumentation and the advisory does not confirm equivalent behavior on normal production builds; the confirmed trigger path requires both the import and the re-export step; and the confidentiality impact is limited to leaking freed heap contents into the exported output file (VC:L), not arbitrary disclosure. |
| Impact | Severity is moderate, not critical: the input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H) scores 6.9, driven mainly by high availability impact (a crash) plus a low confidentiality leak, and crucially it is a LOCAL vector requiring passive user interaction - the victim must process an attacker-supplied DXF file, not a remote network trigger. No EPSS score and no KEV status were provided; the vulnerability is NOT on CISA KEV, so there is no evidence of active exploitation. A public PoC reference exists (full AddressSanitizer reproduction steps and the triggering TS1.dxf input are documented in the GHSA advisory); it is not verified as a weaponized working exploit. The vuln.today decision label is 'this_month' - a routine patch priority, consistent with a local, interaction-dependent file-parser bug rather than an emergency. One important caveat: both recorded crashes were reproduced only under AddressSanitizer/UBSan instrumentation, and the advisory explicitly states the impact on non-sanitized production builds has not been verified - so real-world availability impact on normal builds is inferred, not confirmed. Overall this is a real-but-low-urgency memory-safety defect in a niche CAD library, best handled by updating to 0.15 on normal patch cadence. |
| Exploit ScenarioDerived | An attacker crafts a DXF file containing an OLE2FRAME entity and delivers it to a victim who processes it with a LibreDWG-based tool such as dxfwrite. When the victim imports the file and then re-exports it to ASCII or Binary DXF, the dangling OLE2FRAME.oleclient pointer is read from freed heap memory, crashing the application and potentially leaking freed heap bytes into the exported output. A public PoC with exact reproduction commands and the unmodified TS1.dxf trigger file is published in the GHSA advisory, though it is demonstrated only under AddressSanitizer. Because the vector is local (AV:L) with passive user interaction (UI:P), exploitation depends on convincing the victim to import and export the malicious file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
Heap use-after-free in GNU LibreDWG 0.14 (and pre-0.15 upstream revisions) allows an attacker-supplied DXF file to corrupt memory and terminate applications such as dxfwrite, while also leaking freed heap contents into the exported output. The dangling reference is to the OLE2FRAME entity's oleclient field: the DXF importer stores a pointer to a temporary group-3 string that is freed during cleanup, and the flaw surfaces when the imported drawing is subsequently re-exported to ASCII or Binary DXF. Severity is moderate rather than critical because the vector is local and requires the victim to open and then re-export a malicious file; both crashes were confirmed only under AddressSanitizer/UBSan instrumentation, active exploitation has not been reported (not in CISA KEV), and the vendor advisory does publish a reproduction PoC using the stock test data file TS1.dxf.
RemediationAI
Update to GNU LibreDWG 0.15 (release tag https://github.com/LibreDWG/libredwg/releases/tag/0.15), which carries the fix commit 2ecc5d0d79df346d632dd7f975ca7463f8fce4c2 - a dedicated in_dxf.c handler that takes ownership of the group-3 OLE2FRAME client string instead of aliasing the freed temporary pair, plus a strdup in decode.c and an explicit oleclient free path in dwg.spec. Because the dangling pointer is only dereferenced at export time, updating both the import and export paths is required; rebuilding any application that statically embeds the library is necessary. If an upgrade cannot be scheduled immediately, avoid importing attacker-supplied DXF content that contains OLE2FRAME entities and then re-exporting it, since the confirmed trigger demands both the import and the ASCII or Binary DXF export step, and run any unavoidable DXF conversion in a sandboxed or resource-limited process given the crash-driven availability impact; these are containment measures only, since the vendor's patched 0.15 release is the complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The defect class is CWE-416 (use-after-free), rooted in inconsistent memory ownership inside LibreDWG's dynamic API. When the DXF importer reads group code 3 in src/in_dxf.c, dxf_read_string() allocates a buffer for the client-name string and stores it in a temporary Dxf_Pair. The field metadata for OLE2FRAME.oleclient is declared in src/dynapi.c as a TF field with is_malloc = 1 and is_string = 0, which makes dynapi_set_helper() skip the string-copying branches and instead execute memcpy(old, value, sizeof(char*)) - copying the pointer value rather than duplicating the string contents. new_object() then calls dxf_free_pair(), which frees pair->value.s.ptr and NULLs only the temporary pair's copy, leaving OLE2FRAME.oleclient dangling. In decoding, decode.c also assigned a static string literal ("OLE") to that field, which the fix changed to strdup(). The invalid read occurs during export: for ASCII DXF the group-3 text path calls dxf_needs_cquote() in src/out_dxf.c (a one-byte read from freed memory at out_dxf.c:1410), and for Binary DXF the FIELD_TF expansion routes the string to fprintf() in src/out_dxfb.c (a two-byte invalid read in printf_common()). The upstream fix commit 2ecc5d0d79df346d632dd7f975ca7463f8fce4c2 adds a dedicated in_dxf.c branch that transfers ownership of the code-3 string to the OLE2FRAME object (freeing the previous pointer and NULLing the pair's copy), adds an IS_FREE path for oleclient in dwg.spec so it is released properly, and strdups the literal assigned in decode.c.
Know when Libredwg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Local DXF file must be imported and exported (AV:L, UI:R), no privileges needed (PR:N); crash gives A:H, freed-heap leak into output gives C:L, with no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
GNU LibreDWG 0.14 before 0.15 contains a heap use-after-free vulnerability in in_dxf.c new_object() where the OLE2FRAME oleclient pointer references freed memory after DXF import. Attackers can supply a DXF file with an OLE2FRAME entity to crash dxfwrite or similar applications and leak freed heap contents into exported output.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
LibreDWG v0.12.4.4608 & commit f2dea29 was discovered to contain a heap use-after-free via bit_copy_chain. Rated critica
LibreDWG v0.12.3 was discovered to contain a heap-buffer overflow via decode_preR13. Rated critical severity (CVSS 9.8),
GNU LibreDWG 0.10 is affected by: memcpy-param-overlap. Rated high severity (CVSS 8.8), this vulnerability is remotely e
An issue was discovered in GNU LibreDWG 0.7 and 0.7.1645. Rated critical severity (CVSS 9.1), this vulnerability is remo
An issue was discovered in GNU LibreDWG 0.7 and 0.7.1645. Rated critical severity (CVSS 9.1), this vulnerability is remo
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via: read_2004_section_classes ../../src/decode.c:
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_read_B ../../src/bits.c:135. Rated high se
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_search_sentinel ../../src/bits.c:1985. Rat
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via: read_2004_section_appinfo ../../src/decode.c:
A heap based buffer overflow vulnerability exits in GNU LibreDWG 0.10 via bit_read_RC ../../src/bits.c:318. Rated high s
A heap based buffer overflow vulnerability exists in GNU LibreDWG 0.10 via read_2004_section_revhistory ../../src/decode
A heap based buffer overflow vulnerability exists in GNU LibreDWG 0.10 via read_2004_compressed_section ../../src/decode
EUVD-2026-137780
GHSA-m593-3c69-9p5q
NVD
CVE.org
EPSS
Exploit-DB