Skip to main content

ezdxf CVE-2026-137506

| EUVDEUVD-2026-136859 HIGH
Code Injection (CWE-94)
2026-11-26 disclosure@vulncheck.com
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft DXF with malicious table-entry name
  2. Exploit
    Victim runs dxf2code conversion
  3. Execution
    Quote breakout injects Python into script
  4. Impact
    Arbitrary 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 if '{name}' not in table / table.new('{name}', ...) code (dxf2code.py lines 477-481). Limiting factors: the attack is local (AV:L) and needs passive user interaction (UI:P) - it only affects users who run the dxf2code developer utility on untrusted DXF input and then run its output; default use of ezdxf for normal DXF reading/writing is not affected. No authentication or special privileges are required (PR:N).

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ezdxf 0 ≤1.4.5

Affected Packages

euvd ezdxf no fix

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

Vendor (vulncheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.3%
Top 87% exploitable
Prevalence
Low
developer code-generation add-on of a niche Python CAD library
Social Media
4
Sightings
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy