Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft DXF with malicious table-entry name
-
ExploitVictim runs dxf2code conversion
-
ExecutionQuote breakout injects Python into script
-
ImpactArbitrary code executes as the user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that a victim (1) use the dxf2code add-on specifically to convert an attacker-controlled DXF file into Python source, and (2) execute the resulting generated script. The trigger is an unescaped single quote embedded in a DXF table-entry name - layer, linetype, style, or appid - which breaks out of the single-quoted string literal in the emitted |
| Impact | This is a genuine code-injection (CWE-94) flaw in ezdxf's dxf2code add-on, but the real-world risk is moderate rather than urgent, and the signals are consistent rather than conflicting. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P) correctly reflects a local-vector, user-interaction-dependent issue: exploitation is not remote-network drive-by - a victim must run the dxf2code conversion on an attacker-supplied DXF file AND then execute the generated Python script. No PR is required, and vulnerable-system impact is High across C/I/A (VC:H/VI:H/VA:H) with no scope change (SC:N/SI:N/SA:N), yielding the 8.5 score. There is no CISA KEV listing and no EPSS score in the supplied data, and no exploit is marked 'Publicly available (confirmed)', so there is no evidence of active or widespread exploitation - the vuln.today Decision label 'this_week' aligns with a credible-but-not-emergency priority. The dependence on the victim both invoking a developer-oriented add-on and running its output is the dominant limiting factor; treat this as a legitimate supply-chain/tooling hazard for developers who process untrusted DXF files, not as a mass-exploitable server flaw. |
| Exploit ScenarioDerived | An attacker distributes a DXF file in which a layer, linetype, style, or appid name contains an unescaped single quote plus Python payload. A developer who runs ezdxf's dxf2code add-on to convert that file into a reproduction/rebuild script generates code where the malicious name breaks out of the quoted string, so when the generated script is executed the injected Python runs with the developer's privileges. No public exploit code is identified at time of analysis, though the vendor fix commit and VulnCheck advisory describe the mechanism in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Code injection in the dxf2code add-on shipped with ezdxf (through 1.4.5) lets an attacker who controls a DXF file place a single quote inside a layer, linetype, style, or appid name so the generated Python script breaks out of its quoted string literal and runs attacker-chosen statements. Only users who run this developer utility to convert an untrusted DXF into source and then execute the resulting script are exposed; ordinary DXF reading and writing with ezdxf is unaffected, which is why the flaw carries a local attack vector and requires the victim to open and run the generated output. No public exploit code was identified at the time of analysis, but the upstream project has published a fix commit that changes the quoting, and the weakness is a straightforward, high-impact CWE-94 code injection for anyone using dxf2code as part of a conversion pipeline.
RemediationAI
Upstream fix available (commit); released patched version not independently confirmed - upgrade ezdxf to a release that includes commit 8cde125a7370afb5988f73b978599172c05f53fd, or, if you must stay on 1.4.5 or earlier, apply that commit's change to src/ezdxf/addons/dxf2code.py so the emitted if ... not in table / table.new(...) statements use double-quoted literals instead of single-quoted ones. Because the exploit path depends on the generated script being executed, the most reliable short-term control is procedural: only run dxf2code against DXF files you produced or otherwise trust, and never execute generated source that came from third-party drawings - this costs nothing for teams that use ezdxf purely as a DXF parser/writer, and only restricts the developer conversion workflow. Treating the generated .py output as untrusted data (storing or archiving it rather than running it) is an alternative where the conversion is needed for inspection only. Both workarounds trade away the convenience of round-tripping external drawings through dxf2code and should be replaced by the patched release once it is packaged; consult the VulnCheck advisory and issue 1489 for the maintainer's guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
dxf2code is an ezdxf add-on intended for developers: it reads a DXF drawing and emits Python source that would recreate the same drawing through the ezdxf API. When emitting table entries, the module interpolates the entry name directly into a single-quoted string literal, producing lines such as if '{name}' not in doc.layers: and doc.layers.new('{name}', dxfattribs={...}) around lines 477-481 of src/ezdxf/addons/dxf2code.py. Because single quotes are legal characters in DXF table-entry names, a malicious name terminates the literal and lets arbitrary Python follow it inside the script that the user is expected to run. This is classic CWE-94 code generation with insufficient neutralization. The upstream commit 8cde125a7370afb5988f73b978599172c05f53fd rewrites those emissions to use double-quoted literals, with the in-diff comment noting that single quotes are permitted in table names. NVD scored the issue 8.5 under CVSS 4.0 (AV:L/AC:L/AT:N/PR:N/UI:P), while our own assessment lands in the high range under CVSS 3.1 (AV:L/AC:L/PR:N/UI:R) with the same prerequisites: no authentication needed, but local execution and a user who generates and then runs the script.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local file processing with required victim execution of generated code (AV:L/UI:R), no privileges needed (PR:N), full code execution in the user's context with no scope change (S:U, C/I/A:H).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Executive ViewAI
A high-severity code injection flaw (CVE-2026-137506) affects the dxf2code developer utility bundled with ezdxf through version 1.4.5, allowing a crafted DXF file to execute attacker-chosen code when the converted script is run. Only engineering teams using dxf2code to transform untrusted DXF files into executable Python are exposed; standard ezdxf reading and writing is unaffected, so leadership should focus on identifying any engineering or automation workflows that rely on this conversion pipeline.
No vendor-released patch identified at time of analysis; interim mitigation is to apply the upstream fix commit for quoting behavior, avoid converting untrusted DXF files with dxf2code through 1.4.5, review or sandbox generated scripts before execution, and rely on standard ezdxf reading/writing which is unaffected.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-136859
NVD
CVE.org
EPSS
GitHub
Exploit-DB