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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-103061— Gleam 包应用名称未验证导致路径遍历漏洞

一分钟漏洞结论

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

gleam-lang gleam 中存在一个“路径遍历”(Path Traversal)漏洞,具体表现为对受限目录的路径名限制不当。该漏洞允许恶意软件包发布者在开发者构建项目时,删除项目构建目录之外的目录。 Hex 软件包发布元数据中包含一个 字段,用于指定该发布的 OTP 应用程序名称。gleam 在下载依赖项时,会从 hex.pm 的发布 API 读取此字段,并直接将其用作软件包的构建目录名称,而未对其进行验证(相关代码位于 中的 和 )。当某个依赖项编译失败时,gleam 会通过 删除对应的目录。 在 202

CVSS 5.9 · Medium

影响版本矩阵 12

厂商产品 版本范围状态
Gleam Gleam 0.32.4< 1.19.2 affected
v0.32.4-elixir< v1.19.2-elixir affected
v0.32.4-erlang< v1.19.2-erlang affected
v0.32.4-node< v1.19.2-node affected
v0.32.4-node-slim< v1.19.2-node-slim affected
v0.32.4-elixir-slim< v1.19.2-elixir-slim affected
v0.32.4-erlang-slim< v1.19.2-erlang-slim affected
v0.32.4-erlang-alpine< v1.19.2-erlang-alpine affected
… +4 条更多
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
Path traversal in Gleam via unvalidated package application names
来源: CVE Program / CVE List V5
Vulnerability Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in gleam-lang gleam allows a malicious package publisher to delete a directory outside the project's build directory when a developer builds a project. A Hex package release's metadata carries an app field with the release's OTP application name. Gleam reads this field from the hex.pm release API when it downloads dependencies and uses it as the package's build directory name without validating it (hex_manifest_package in compiler-cli/src/dependencies.rs, ProjectPaths::build_directory_for_package). When a dependency fails to compile, Gleam deletes that directory with remove_dir_all. hex.pm didn't restrict the field to a directory name before 2026-10-12, so a publisher could set it to a value such as ../../../../target or an absolute path. When a project depends on such a release directly or transitively and the release fails to compile, gleam build, gleam check, gleam run, gleam test or gleam export deletes the directory the name resolves to. For a pure Gleam package no publisher code runs. This issue affects gleam: from 0.32.4 before 1.19.2.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Gleam Gleam 0.32.4 ~ 1.19.2 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Gleam Gleam v0.32.4-elixir ~ v1.19.2-elixir cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Gleam Gleam d13f27ee80aae7a521d2e9433c4deaf53f892574 ~ * cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2026-103061 其他参考 (6)

IV. Related Vulnerabilities

V. Comments for CVE-2026-103061

暂无评论


发表评论