CVE-2026-63720

Source
https://cve.org/CVERecord?id=CVE-2026-63720
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63720.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-63720
Published
2026-07-26T03:51:18.553Z
Modified
2026-07-29T03:30:21.715007470Z
Severity
  • 7.5 (High) CVSS_V4 - 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 CVSS Calculator
Summary
datamodel-code-generator Code Injection via Unvalidated customBasePath Schema Field
Details

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.

Database specific
{
    "cna_assigner": "VulnCheck",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63720.json",
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

Git / github.com/koxudaxi/datamodel-code-generator

Affected ranges

Type
GIT
Repo
https://github.com/koxudaxi/datamodel-code-generator
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.70.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63720.json"