Back to overview

CVE-2026-63720

HIGH
7.5
CVSS 3.1
Description
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.

Metadata

CVE ID
CVE-2026-63720
State
PUBLISHED
Assigner
VulnCheck
Reserved
2026-07-17 21:21 UTC
Published
2026-07-26 03:51 UTC
Last updated
2026-07-26 03:51 UTC
Primary CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
Vendor / Product
koxudaxi / datamodel-code-generator
Sources
cve.org  ·  NVD

Severity & Metrics

7.5 HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products (1)
VendorProductPlatformVersions
koxudaxi datamodel-code-generator 0 < 0.70.0
Weakness (CWE)
CWESourceDescription
CWE-94 cna Improper Control of Generation of Code ('Code Injection')
CVSS scores (2)
ScoreSeverityVersionSourceVector
7.5 HIGH 4.0 cna CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
7.5 HIGH 3.1 cna CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Back to overview