RCE in Koxudaxi Datamodel-Code-Generator

CVE-2026-63720

datamodel-code-generator prior to version 0.70.0 contains a code injection vulnerability that allows attackers who control input schemas to achieve remote code execution by supplying a malicious customBasePath value containing embedded newlines and a dot-free Python expression. The crafted value is emitted verbatim into a generated 'from ... import ...' statement without identifier validation, causing arbitrary Python code to execute when the generated module is imported.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.008 (52.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2026-63720?
CVE-2026-63720 is a high-severity vulnerability in Koxudaxi Datamodel-Code-Generator, classified under Code Injection. CVSS score: 7.5/10. Published 2026-07-26.
How severe is CVE-2026-63720?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2026-63720 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.