Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-63720— datamodel-code-generator Code Injection via Unvalidated customBasePath Schema Field

CVSS 7.5 · High EPSS 0.42% · P34

Affected Version Matrix 1

VendorProductVersion RangeStatus
koxudaxidatamodel-code-generator< 0.70.0affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-63720

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
datamodel-code-generator Code Injection via Unvalidated customBasePath Schema Field
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

VendorProductAffected VersionsCPESubscribe
koxudaxidatamodel-code-generator 0 ~ 0.70.0 -

II. Public POCs for CVE-2026-63720

#POC DescriptionSource LinkShenlong Link
AI-Generated POCVerified env Premium
Reproduced successfully in a real sandbox· Below is the actual recording of building the environment and exploiting the vulnerability.
Success marker:VULNERABLE: code injection via customBasePath confirmed; exfiltrated proof token PROOF_b12baa1f9fbd0116 through the generated module import
Reproduction recording is a Pro+ exclusive
Watch the full sandbox build + live exploit recording for this CVE. Limited-time ¥499/mo.
Upgrade to Pro+
claude_code · 6333 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-63720

登录查看更多情报信息。

Patches & Fixes for CVE-2026-63720 (1)

Vendor Advisories for CVE-2026-63720 (1)

Other References for CVE-2026-63720 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-63720

No comments yet


Leave a comment