目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-107377— datamodel-code-generator protobuf路径遍历漏洞

一分钟漏洞结论

影响对象
datamodel-code-generator datamodel-code-generator
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

datamodel-code-generator 是一种从模式定义(schema definitions)生成 Python 数据模型的开源工具。在版本 0.59.0 至 0.81.0 之间,存在一个安全漏洞:攻击者可以构造恶意的 Protocol Buffers(Protobuf)模式文件,其中包含通过 WEAK_IMPORT_PATTERN 捕获的绝对路径或父目录路径。这些路径随后被 src/datamodel_code_generator/parser/protobuf.py 中的 _write_missin

CVSS 7.5 · High

影响版本矩阵 1

厂商产品 版本范围状态
datamodel-code-generator datamodel-code-generator >= 0.59.0, < 0.81.0 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-107377 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory
来源: CVE Program / CVE List V5
Vulnerability 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.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
datamodel-code-generator datamodel-code-generator >= 0.59.0, < 0.81.0 -

二、漏洞 CVE-2026-107377 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-107377 的情报信息

请登录查看更多情报信息。

CVE-2026-107377 其他参考 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-107377

暂无评论


发表评论