CVE-2026-138381: GNU LibreDWG Use After Free
Published 2026-11-29 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — update GNU LibreDWG to 0.15 or later on your normal schedule.
What to do
- Update GNU LibreDWG to version 0.15 or later. Versions from 0.14 up to, but not including, 0.15 are affected.
- Until it is patched, limit who has a local account on systems running GNU LibreDWG.
- Avoid processing untrusted content with the affected component until it is updated.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| GNU LibreDWG | ≥ 0.14, < 0.15 | 0.15 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
Exploiting it requires local access to the system, or getting a user to open a crafted file; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high, and on confidentiality low.
| Attack vector | Local | Exploiting it requires local access to the system, or getting a user to open a crafted file. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | Low | Partial loss of confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Weakness: Use After Free
Memory is used after it has been released, which can crash the software or let an attacker run code.
Classified as CWE-416.
Description
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/LibreDWG/libredwg/commit/2ecc5d0d79df346d632dd7f975ca7463f8fce4c2
- Patchhttps://github.com/LibreDWG/libredwg/releases/tag/0.15
- Advisoryhttps://github.com/LibreDWG/libredwg/security/advisories/GHSA-c6r9-crw2-jcq3
- Advisoryhttps://www.vulncheck.com/advisories/gnu-libredwg-0.14-before-0.15-use-after-free-via-ole2frame-dxf-import
- Advisoryhttps://github.com/LibreDWG/libredwg/security/advisories/GHSA-c6r9-crw2-jcq3
- Referencehttps://github.com/LibreDWG/libredwg/blob/4f2aef33865e0d5bf3774acc439953fba15dea3e/src/out_dxf.c#L1405-L1417