PT-2026-108124
CVE-2026-107377
·
Published
2026-10-08
·
Updated
2026-10-15
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions
datamodel-code-generator versions 0.59.0 through 0.80.0
Description
An issue exists where an attacker-controlled Protobuf schema can provide absolute or parent-directory paths. These paths are captured by
WEAK IMPORT PATTERN and processed by the write missing weak imports() function in src/datamodel code generator/parser/protobuf.py. This allows paths to escape the weak imports temporary directory, enabling the creation of directory trees and new files, or the overwriting of existing writable files with a generated Protobuf syntax declaration. This occurs when a victim or automated job processes the schema with Protobuf input support, which requires the grpcio-tools package. The effect remains even if subsequent Protobuf compilation fails. The written content is limited to proto2 or proto3 syntax declarations.Recommendations
Update to version 0.81.0.
Found an issue in the description? Have something to add? Feel free to write us 👾