CVE-2026-137506

7.8High

Published Nov 26, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-94

What an attacker gets

Attackers can execute arbitrary Python code with the privileges of the user running the application. This requires a user to open a maliciously crafted DXF file using the dxf2code add-on.

Root cause

The dxf2code add-on fails to escape single quotes in DXF table entry names, allowing them to break out of generated Python string literals.

Affected versions

ezdxf through 1.4.5

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to a version beyond 1.4.5 that includes the fix. If you cannot upgrade, disable or restrict the use of the dxf2code add-on when processing untrusted DXF files.

remediation — bash
$ pip install --upgrade ezdxf

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137506

More fully triaged vulnerabilities you may want to check next.