CVE-2026-107377
Last modified
CVE-2026-107377 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. datamodel-code-generator generates Python data models from schema definitions. From 0.59.0 until 0.81.0, an attacker-controlled Protobuf schema can supply absolute or parent-directory paths captured by WEAK_IMPORT_PATTERN and consumed by _write_missing_weak_imports in src/datamodel_code_generator/parser/protobuf.py.
Description
datamodel-code-generator generates Python data models from schema definitions. From 0.59.0 until 0.81.0, an attacker-controlled Protobuf schema can supply absolute or parent-directory paths captured by WEAK_IMPORT_PATTERN and consumed by _write_missing_weak_imports in src/datamodel_code_generator/parser/protobuf.py. Exploitation requires a victim or automated job to process the attacker-controlled schema with Protobuf input support, which requires the grpcio-tools package. The paths escape the weak_imports temporary directory before protoc runs, allowing creation of directory trees and new files or overwrite of existing writable files with a generated Protobuf syntax declaration. The effect persists when later Protobuf compilation fails. The written content is limited to a proto2 or proto3 syntax declaration, and direct arbitrary code execution has not been demonstrated. This issue is fixed in version 0.81.0.
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-107377?
How severe is CVE-2026-107377?
How do I fix CVE-2026-107377?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-107361The Arkime live capture service (arkime-live) in Malcolm run…4.2
- CVE-2026-107362Malcolm file-upload component ships the upstream FilePond PH…7.1
- CVE-2026-107363In OpenStack Zaqar before 23.0.1, the WebSocket transport fa…6.1
- CVE-2026-10737The SP Project & Document Manager plugin for WordPress is vu…7.5
- CVE-2026-107375JHipster is a development platform to quickly generate, deve…8.8
- CVE-2026-107376webonyx graphql-php is a PHP implementation of the GraphQL s…8.2
- CVE-2026-107378CairoSVG is an SVG converter based on Cairo, a 2D graphics l…8.7
- CVE-2026-107379savg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, s…6.5
- CVE-2026-10738The jQuery Hover Footnotes plugin for WordPress is vulnerabl…6.4
- CVE-2026-107380savg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, s…5.4
- CVE-2026-10739Cato Networks SDP Client for Windows before 6.12.6 allows a …8.5
- CVE-2026-1074The WP App Bar plugin for WordPress is vulnerable to Stored …7.2
Are you affected by CVE-2026-107377?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
