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

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

AI Predicted 7.5 Difficulty: Easy
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
GleamGleam 1.16.0 ~ 1.17.0 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
GleamGleam 1.16.0 ~ 1.17.0 cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
GleamGleam v1.16.0-elixir ~ v1.17.0-elixir cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-32685

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-32685

登录查看更多情报信息。

Other References for CVE-2026-32685 (5)

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

CVE-2026-42795Symlink Following in Hex Package Export Allows Embedding Files Outside Project Root
CVE-2026-43965Path 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