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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-32685— Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write

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 1.16.0版本至1.17.0版本存在安全漏洞,该漏洞源于对自定义文档页面的路径处理验证不足,可能导致任意文件读取和写入,攻击者可诱骗受害者构建不受信任项目时读取本地文件或写入文档输出目录之外的文件。

AI Predicted 7.5 Difficulty: Easy EPSS 0.15% · P5

Affected Version Matrix 13

VendorProduct Version RangeStatus
Gleam Gleam 1.16.0< 1.17.0 affected
1.16.0< 1.17.0 affected
61ed8deb6572b5591ad17d6302c1a38607522f16< 81570611906b6b0039c948037094d09a68700f3a affected
v1.16.0-elixir< v1.17.0-elixir affected
v1.16.0-erlang< v1.17.0-erlang affected
v1.16.0-node< v1.17.0-node affected
v1.16.0-node-slim< v1.17.0-node-slim affected
v1.16.0-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-32685

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 gleam docs build via documentation.pages Allows Arbitrary File Read and Write
Source: CVE Program / CVE List V5
Vulnerability Description
Path traversal vulnerability in Gleam's handling of custom documentation pages allows arbitrary file read and file write outside the intended documentation output directory. The documentation.pages entries from gleam.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended project and documentation output directories. The documentation.pages[].path field can be used to write generated documentation files outside the intended build/dev/docs/<package>/ output directory. The documentation.pages[].source field can be used to read files outside the project directory and embed their contents into generated documentation output. An attacker who can convince a victim to run gleam docs build on an untrusted project, or with untrusted gleam.toml content, can cause local files readable by the victim to be included in generated documentation artifacts, and can cause generated documentation files to be written outside the intended docs output directory. This issue affects Gleam from 1.16.0 until 1.17.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/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 1.16.0版本至1.17.0版本存在安全漏洞,该漏洞源于对自定义文档页面的路径处理验证不足,可能导致任意文件读取和写入,攻击者可诱骗受害者构建不受信任项目时读取本地文件或写入文档输出目录之外的文件。
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 1.16.0 ~ 1.17.0 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Gleam Gleam 1.16.0 ~ 1.17.0 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Gleam Gleam v1.16.0-elixir ~ v1.17.0-elixir cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-32685

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

登录查看更多情报信息。

Patches & Fixes for CVE-2026-32685 (2)

Vendor Advisories for CVE-2026-32685 (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-43965 Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion

IV. Related Vulnerabilities

V. Comments for CVE-2026-32685

No comments yet


Leave a comment