ezdxf through 1.4.5 Code Injection via dxf2code DXF Table Entry Names
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 26, 2026
- Updated
- Nov 26, 2026
- Reserved
- Nov 26, 2026
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.
| Product | Versions |
|---|---|
| ezdxf mozman | 1.4.5 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- https://github.com/mozman/ezdxf/issues/1489Issue Tracker
- https://github.com/mozman/ezdxf/commit/8cde125a7370afb5988f73b978599172c05f53fdPatch
- https://github.com/mozman/ezdxf/blob/84ae31976940f99e6d5f4d3b2e9131da02b574fe/src/ezdxf/addons/dxf2code.py#L477-L481Technical Details
- VulnCheck Advisory: ezdxf through 1.4.5 Code Injection via dxf2code DXF Table Entry NamesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.