CVE-2026-107377: Python datamodel code generator · datamodel-code-generator generates Python data models from schema
Affects python-datamodel-code-generatorSource GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 0.81.0 : patch python-datamodel-code-generator soon.
Data as of 9 Nov 2026, 13:53 UTC
- Patch
- Available – fixed in 0.81.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10python-datamodel-code-generatorpkg:deb/ubuntu/python-datamodel-code-generator?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade datamodel-code-generator to version 0.81.0 or later, where this vulnerability is fixed. Avoid processing untrusted Protobuf schemas with vulnerable versions. No other mitigation or temporary workaround is documented.
Description
A vulnerability in datamodel-code-generator versions from 0.59.0 up to 0.81.0 allows an attacker to supply crafted Protobuf schemas that write files outside a temporary directory during processing. This can lead to creation or overwriting of files with Protobuf syntax declarations. The issue requires processing attacker-controlled schemas with Protobuf input support, which depends on grpcio-tools. The vulnerability is fixed in version 0.81.0.
References
- ubuntu.com/security/CVE-2026-107377 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-107377 (opens in a new tab)
- github.com/datamodel-code-generator/datamodel-code-generator/commit/5e94b8f4203198798ec66b8e48217f70af69a0dc (opens in a new tab)
- github.com/datamodel-code-generator/datamodel-code-generator/releases/tag/0.81.0 (opens in a new tab)
- github.com/datamodel-code-generator/datamodel-code-generator/security/advisories/GHSA-77xj-x4rm-935c (opens in a new tab)