CVE-2026-63720 json
datamodel-code-generator Code Injection via Unvalidated customBasePath Schema Field
published 3mo ago modified 18d ago also EUVD-2026-49050
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- koxudaxi datamodel-code-generator 0.70.0
- python-datamodel-code-generator openSUSE Tumbleweed 0.72.3-1.1
opensuse advisories openSUSE-SU-2026:11538-1
Is CVE-2026-63720 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 3mo ago
Exploit prediction
0.74% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- rahulkarne.com https://rahulkarne.com/#/cve/CVE-2026-63720 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.5 | 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 |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 7.5 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- koxudaxi datamodel-code-generator
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/koxudaxi/datamodel-code-generator/commit/545a96c5
product, patch
-
rahulkarne.com
/#/cve/CVE-2026-63720
exploit
-
github.com
/koxudaxi/datamodel-code-generator
product
-
vulncheck.com
/advisories/datamodel-code-generator-code-injection-via-unvalidated-custombasepath-schema-field
third-party-advisory
-
github.com
/rahulreddykarne/CVE-2026-63720-datamodel-code-generator
technical-description
Sources
- CVE List CVE-2026-63720
- NVD CVE-2026-63720
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.