CVE-2026-90622: GNU libredwg null pointer dereference in LAYER encoding

CVE-2026-90622 · Severity: low · CVSS 3.3 · Published 2026-09-14

GNU libredwg is a library for reading and writing DWG (AutoCAD) files. A null pointer dereference vulnerability in the LAYER encoding function can cause the application to crash when processing malformed DWG files, potentially disrupting any tool or service that relies on libredwg for file conversion or manipulation.

Technologies: Gnu LibreDWG. Vendors: Gnu.

Quick answers

Is CVE-2026-90622 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-90622 being exploited in the wild.
How severe is CVE-2026-90622?
Low severity, with a CVSS score of 3.3, published 14 September 2026.
Which products and versions are affected?
Gnu LibreDWG 0.13.4.
Is there a fix for CVE-2026-90622?
A patch was published on 2026-09-14: Fixed in version 0.14 via commit f5b548c4c1697d66c3dabd0f6a49280a14365a3a Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-90622 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-90622?
Check whether you run Gnu LibreDWG at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A null pointer dereference vulnerability exists in the LAYER encoder (dwg_encode_LAYER_private) in src/dwg.spec when encoding to R_2007a or later DWG format. The vulnerable code directly dereferences a LAYER material handle (Dwg_Object_Ref pointer) without first checking if it is NULL. When processing a malformed R2007 DWG file whose LAYER object decodes with a NULL material reference, the encoder attempts a write through the dereferenced NULL pointer (accessing offset 0x0 + offsetof(absolute_ref)), triggering a segmentation fault. The vulnerability requires local file access and a specially crafted or corrupted DWG file as input. The fix (commit f5b548c) restores a NULL-safety check (if (_obj->material)) that was removed in a prior change, ensuring the code follows the file's existing guard convention. Version 0.14 contains the patch.

Affected products

  • GNU libredwg 0.13.4

Timeline

  • 2026-06-03: disclosed: Issue #1269 reported on GitHub
  • 2026-09-14: patched: Fixed in version 0.14 via commit f5b548c4c1697d66c3dabd0f6a49280a14365a3a
  • 2026-09-14: advisory: CVE-2026-90622 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.