Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-43965— Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion

Quick assessment

Affected
Gleam Gleam
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

gleam是Gleam开源的一个类型安全的可扩展系统构建语言。 Gleam 0.18.0-rc1版本至1.17.0版本存在安全漏洞,该漏洞源于路径遍历问题,可能导致通过恶意build/packages/packages.toml内容删除任意目录。

AI Predicted 8.1 Difficulty: Moderate EPSS 0.15% · P5

Affected Version Matrix 13

VendorProduct Version RangeStatus
Gleam Gleam 0.18.0-rc1< 1.17.0 affected
0.18.0-rc1< 1.17.0 affected
ed7aec0484f10d60978b63788c8a6497590855ab< 690ca069817bee5f77a28fc3e360627c1da19291 affected
v0.18.0-rc1-elixir< v1.17.0-elixir affected
v0.18.0-rc1-erlang< v1.17.0-erlang affected
v0.18.0-rc1-node< v1.17.0-node affected
v0.18.0-rc1-node-slim< v1.17.0-node-slim affected
v0.18.0-rc1-elixir-slim< v1.17.0-elixir-slim affected
… +5 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-43965

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion
Source: CVE Program / CVE List V5
Vulnerability Description
Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content. Package keys read from build/packages/packages.toml by LocalPackages::read_from_disc are passed without validation to paths.build_packages_package(), which constructs a filesystem path by joining the project build directory with the attacker-controlled key. The resulting path is then passed to fs::delete_directory (which calls remove_dir_all). No check is performed to ensure the path remains within the intended build/packages/ directory. Both absolute paths and relative traversal sequences (e.g. ../) are accepted as package keys, allowing deletion of arbitrary directories. An attacker who can cause a victim to run gleam deps download on a project containing a malicious build/packages/packages.toml (e.g. by committing the normally-gitignored file to a repository) can cause arbitrary directories on the victim's system to be recursively deleted. This issue affects Gleam from 0.18.0-rc1 until 1.17.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
gleam 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
gleam是Gleam开源的一个类型安全的可扩展系统构建语言。 Gleam 0.18.0-rc1版本至1.17.0版本存在安全漏洞,该漏洞源于路径遍历问题,可能导致通过恶意build/packages/packages.toml内容删除任意目录。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Gleam Gleam 0.18.0-rc1 ~ 1.17.0 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Gleam Gleam 0.18.0-rc1 ~ 1.17.0 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Gleam Gleam v0.18.0-rc1-elixir ~ v1.17.0-elixir cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-43965

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-43965

登录查看更多情报信息。

Patches & Fixes for CVE-2026-43965 (1)

Vendor Advisories for CVE-2026-43965 (3)

Same Patch Batch · Gleam · 2026-06-02 · 3 CVEs total

CVE-2026-42795 Symlink Following in Hex Package Export Allows Embedding Files Outside Project Root
CVE-2026-32685 Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and

IV. Related Vulnerabilities

V. Comments for CVE-2026-43965

No comments yet


Leave a comment