THREAT OPS › Threat News › [GHSA] GHSA-77xj-x4rm-935c (high) — datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory
[GHSA] GHSA-77xj-x4rm-935c (high) — datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory
GHSA-77xj-x4rm-935c Severity: high CVE: CVE-2026-107377
datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory
## Summary
When processing an attacker-controlled Protobuf schema, vulnerable versions of `datamodel-code-generator` could write a generated weak-import stub outside the intended `__weak_imports__` temporary directory. A
MITRE ATT&CK techniques
- Written ContentT1683.001
Indicators of compromise
- 5e94b8f4203198798ec66b8e48217f70af69a0dcsha1
- 834731d56c0a90c182a0919f316069cf5ff0659asha1
- CVE-2026-107377cve
- CVE-2026-55389cve
- CVE-2026-55390cve
- http://127.0.0.1:url
- https://docs.python.org/3/library/pathlib.htmlurl
Original source: https://github.com/advisories/GHSA-77xj-x4rm-935c