Skip to main content
VulnerabilityPublished Updated

CVE-2026-107377: Python datamodel code generator · datamodel-code-generator generates Python data models from schema

Affects python-datamodel-code-generatorSource GCVE Database

0
Compare

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

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10python-datamodel-code-generatorpkg:deb/ubuntu/python-datamodel-code-generator?arch=source&distro=stonkingOther threatsAffected
  • 0.45.0-1 – 0.71.0-1
4 affected builds
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

Community reviews

Loading reviews…