> CVE-2026-107377 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-10-08 18:17
MODIFIED
2026-10-08 18:17
CVSS_SCORE V3
7.5
EPSS (Prob. Exploit)
0.45%
Top 62.0%
DATA SOURCES:
NVD đź”— 2026-10-08 FIRST EPSS đź”— 2026-10-18 GITHUB đź”— 2026-10-14 OSV đź”— 2026-10-19

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EXPLOITABILITY
3.9
IMPACT
3.6

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-22 CWE-73

> GITHUB SECURITY ADVISORY

GHSA-77xj-x4rm-935c HIGH

datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory

AFFECTED PACKAGES:
PIP / datamodel-code-generator
>= 0.59.0, <= 0.80.0
Fixed in: 0.81.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory

AFFECTED PACKAGES:
Unknown / Unknown
38 versions affected
ALIASES:
GHSA-77xj-x4rm-935c, PYSEC-2026-4205

> HISTORIQUE DES MODIFICATIONS

Première apparition
08/10/2026 18:17
Source: NVD
Total des modifications: 0 Dernière mise à jour: 1 week ago

> REFERENCES

https://github.com/datamodel-code-generator/datamodel-code-generator/commit/5e94...
https://github.com/datamodel-code-generator/datamodel-code-generator/releases/ta...
https://github.com/datamodel-code-generator/datamodel-code-generator/security/ad...
« BACK_TO_HOME