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)
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.007, 55.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Koxudaxi Datamodel-Code-Generator — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- rahulreddykarne/CVE-2026-63720-datamodel-code-generator (last pushed 2026-08-03): Code injection (RCE) in datamodel-code-generator via unvalidated customBasePath (CVE-2026-63720)
References
- Product (product)
- Patch Commit (product, patch)
- www.vulncheck.com/advisories/datamodel-code-generator-code-injection-via-unvali… (third-party-advisory)
- Blog Post (exploit)
- github.com/rahulreddykarne/CVE-2026-63720-datamodel-code-generator (technical-description)
This CVE has public exploit evidence. See the latest CVEs with public exploits.