CVE-2026-137506
Description
ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or appid names break out of quoted strings in generated scripts, executing code with the privileges of the user running them.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-137506 NameCVE-2026-137506 Descriptionezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or appid names break out of quoted strings in generated scripts, executing code with the privileges of the…
CVE-2026-137506
| Name | CVE-2026-137506 |
| Description | ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or appid names break out of quoted strings in generated scripts, executing code with the privileges of the user running them. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| ezdxf (PTS) | bookworm | 0.18.1-1 | vulnerable |
| trixie | 1.4.1-1 | vulnerable | |
| forky, sid | 1.4.3-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ezdxf | source | (unstable) | (unfixed) |
Notes
[trixie] - ezdxf <no-dsa> (Minor issue)
https://github.com/mozman/ezdxf/issues/1489
https://github.com/mozman/ezdxf/commit/8cde125a7370afb5988f73b978599172c05f53fd
Apply commands
[trixie] - ezdxf <no-dsa> (Minor issue)https://github.com/mozman/ezdxf/issues/1489https://github.com/mozman/ezdxf/commit/8cde125a7370afb5988f73b978599172c05f53fd
OS impact
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | ezdxf |
Affected | — |
| sid | ezdxf |
Affected | — |
| forky | ezdxf |
Affected | — |
| bookworm | ezdxf |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| mozman | ezdxf | {"endIncluding":"1.4.5"} | |
References
- https://github.com/mozman/ezdxf/blob/84ae31976940f99e6d5f4d3b2e9131da02b574fe/src/ezdxf/addons/dxf2code.py#L477-L481
- https://github.com/mozman/ezdxf/commit/8cde125a7370afb5988f73b978599172c05f53fd
- https://github.com/mozman/ezdxf/issues/1489
- https://www.vulncheck.com/advisories/ezdxf-through-1.4.5-code-injection-via-dxf2code-dxf-table-entry-names
- https://www.suse.com/security/cve/CVE-2026-137506.html
- https://security-tracker.debian.org/tracker/CVE-2026-137506
CWEs
CWE-94
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.