---
title: CVE-2026-107377
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2026-107377
---

# CVE-2026-107377

Publication date 8 October 2026

Last updated 14 October 2026

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2026-107377#impact-score)

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python-datamodel-code-generator | 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-107377)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-107377)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2026-107377)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2026-107377)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2026-107377>
* <https://github.com/datamodel-code-generator/datamodel-code-generator/commit/5e94b8f4203198798ec66b8e48217f70af69a0dc>
* <https://github.com/datamodel-code-generator/datamodel-code-generator/releases/tag/0.81.0>
* <https://github.com/datamodel-code-generator/datamodel-code-generator/security/advisories/GHSA-77xj-x4rm-935c>
