Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2026-32685

Summary
Assigner-EEF
Assigner Org ID-6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Published At-02 Jun, 2026 | 13:41
Updated At-02 Jun, 2026 | 19:14
Rejected At-
Credits

Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:EEF
Assigner Org ID:6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Published At:02 Jun, 2026 | 13:41
Updated At:02 Jun, 2026 | 19:14
Rejected At:
▼CVE Numbering Authority (CNA)
Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write

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.

Affected Products
Vendor
Gleam
Product
Gleam
Package Name
gleam
CPEs
  • cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Modules
  • compiler-core
  • compiler-cli
Program Files
  • compiler-core/src/config.rs
  • compiler-core/src/docs.rs
  • compiler-cli/src/docs.rs
  • compiler-cli/src/fs.rs
Program Routines
  • compiler_cli::docs::build_project
  • compiler_core::docs::generate_html
Default Status
unaffected
Versions
Affected
  • From 1.16.0 before 1.17.0 (semver)
Vendor
Gleam
Product
Gleam
Collection URL
https://github.com
Package Name
gleam-lang/gleam
Repo
https://github.com/gleam-lang/gleam
CPEs
  • cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Modules
  • compiler-core
  • compiler-cli
Program Files
  • compiler-core/src/config.rs
  • compiler-core/src/docs.rs
  • compiler-cli/src/docs.rs
  • compiler-cli/src/fs.rs
Program Routines
  • compiler_cli::docs::build_project
  • compiler_core::docs::generate_html
Default Status
unaffected
Versions
Affected
  • From 1.16.0 before 1.17.0 (semver)
  • From 61ed8deb6572b5591ad17d6302c1a38607522f16 before 81570611906b6b0039c948037094d09a68700f3a (git)
Vendor
Gleam
Product
Gleam
Collection URL
https://ghcr.io
Package Name
gleam-lang/gleam
CPEs
  • cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*
Modules
  • compiler-core
  • compiler-cli
Program Files
  • compiler-core/src/config.rs
  • compiler-core/src/docs.rs
  • compiler-cli/src/docs.rs
  • compiler-cli/src/fs.rs
Program Routines
  • compiler_cli::docs::build_project
  • compiler_core::docs::generate_html
Default Status
unaffected
Versions
Affected
  • From v1.16.0-elixir before v1.17.0-elixir (other)
  • From v1.16.0-erlang before v1.17.0-erlang (other)
  • From v1.16.0-node before v1.17.0-node (other)
  • From v1.16.0-node-slim before v1.17.0-node-slim (other)
  • From v1.16.0-elixir-slim before v1.17.0-elixir-slim (other)
  • From v1.16.0-erlang-slim before v1.17.0-erlang-slim (other)
  • From v1.16.0-erlang-alpine before v1.17.0-erlang-alpine (other)
  • From v1.16.0-elixir-alpine before v1.17.0-elixir-alpine (other)
  • From v1.16.0-node-alpine before v1.17.0-node-alpine (other)
  • From v1.16.0-scratch before v1.17.0-scratch (other)
Problem Types
TypeCWE IDDescription
CWECWE-22CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Type: CWE
CWE ID: CWE-22
Description: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Metrics
VersionBase scoreBase severityVector
4.04.6MEDIUM
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
Version: 4.0
Base score: 4.6
Base severity: MEDIUM
Vector:
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
Metrics Other Info
Impacts
CAPEC IDDescription
CAPEC-139CAPEC-139 Relative Path Traversal
CAPEC-597CAPEC-597 Absolute Path Traversal
CAPEC ID: CAPEC-139
Description: CAPEC-139 Relative Path Traversal
CAPEC ID: CAPEC-597
Description: CAPEC-597 Absolute Path Traversal
Solutions

Configurations

The project must use custom documentation pages via documentation.pages in gleam.toml, and the victim must run gleam docs build on an untrusted project or with untrusted gleam.toml content. Projects that do not use custom documentation pages are not affected.

Workarounds

* Avoid running gleam docs build on untrusted projects * Review documentation.pages entries in gleam.toml before generating documentation * Run documentation generation in a restricted or isolated environment (e.g. containers)

Exploits

Credits

finder
evipepota
remediation developer
evipepota
remediation reviewer
Louis Pilfold
analyst
Jonatan Männchen / EEF
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
vendor-advisory
related
https://cna.erlef.org/cves/CVE-2026-32685.html
related
https://osv.dev/vulnerability/EEF-CVE-2026-32685
related
https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a
patch
https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430
patch
Hyperlink: https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
Resource:
vendor-advisory
related
Hyperlink: https://cna.erlef.org/cves/CVE-2026-32685.html
Resource:
related
Hyperlink: https://osv.dev/vulnerability/EEF-CVE-2026-32685
Resource:
related
Hyperlink: https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a
Resource:
patch
Hyperlink: https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430
Resource:
patch
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
exploit
Hyperlink: https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
Resource:
exploit
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Published At:02 Jun, 2026 | 14:16
Updated At:22 Jul, 2026 | 19:10

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary4.04.6MEDIUM
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
N/A
Type: Secondary
Version: 4.0
Base score: 4.6
Base severity: MEDIUM
Vector:
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Type: N/A
Version:
Base score:
Base severity: N/A
Vector:
CPE Matches

Weaknesses
CWE IDTypeSource
CWE-22Secondary6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CWE ID: CWE-22
Type: Secondary
Source: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://cna.erlef.org/cves/CVE-2026-32685.html6b3ad84c-e1a6-4bf7-a703-f496b71e49db
N/A
https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a6b3ad84c-e1a6-4bf7-a703-f496b71e49db
N/A
https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df14306b3ad84c-e1a6-4bf7-a703-f496b71e49db
N/A
https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v76b3ad84c-e1a6-4bf7-a703-f496b71e49db
N/A
https://osv.dev/vulnerability/EEF-CVE-2026-326856b3ad84c-e1a6-4bf7-a703-f496b71e49db
N/A
https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7134c704f-9b21-4f2e-91b3-4a467353bcc0
N/A
Hyperlink: https://cna.erlef.org/cves/CVE-2026-32685.html
Source: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Resource: N/A
Hyperlink: https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a
Source: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Resource: N/A
Hyperlink: https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430
Source: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Resource: N/A
Hyperlink: https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
Source: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Resource: N/A
Hyperlink: https://osv.dev/vulnerability/EEF-CVE-2026-32685
Source: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Resource: N/A
Hyperlink: https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

2Records found

CVE-2026-32146
Matching Score-6
Assigner-6b3ad84c-e1a6-4bf7-a703-f496b71e49db
ShareView Details
Matching Score-6
Assigner-6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS Score-8.3||HIGH
EPSS-0.24% / 15.18%
||
7 Day CHG~0.00%
Published-11 Apr, 2026 | 12:59
Updated-15 Jul, 2026 | 04:14
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification

Improper path validation vulnerability in the Gleam compiler's handling of git dependencies allows arbitrary file system modification during dependency download. Dependency names from gleam.toml and manifest.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended dependency directory, allowing attacker-controlled paths (via relative traversal such as ../ or absolute paths) to target filesystem locations outside that directory. When resolving git dependencies (e.g. via gleam deps download), the computed path is used for filesystem operations including directory deletion and creation. This vulnerability occurs during the dependency resolution and download phase, which is generally expected to be limited to fetching and preparing dependencies within a confined directory. A malicious direct or transitive git dependency can exploit this issue to delete and overwrite arbitrary directories outside the intended dependency directory, including attacker-chosen absolute paths, potentially causing data loss. In some environments, this may be further leveraged to achieve code execution, for example by overwriting git hooks or shell configuration files. This issue affects Gleam from 1.9.0-rc1 until 1.15.4.

Action-Not Available
Vendor-lpilGleamRed Hat, Inc.
Product-gleamGleamRed Hat Enterprise Linux 9Red Hat Enterprise Linux 7Red Hat Enterprise Linux 10Red Hat Enterprise Linux 8
CWE ID-CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE-2026-43965
Matching Score-6
Assigner-6b3ad84c-e1a6-4bf7-a703-f496b71e49db
ShareView Details
Matching Score-6
Assigner-6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS Score-5.6||MEDIUM
EPSS-0.15% / 4.79%
||
7 Day CHG~0.00%
Published-02 Jun, 2026 | 13:41
Updated-22 Jul, 2026 | 19:10
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion

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.

Action-Not Available
Vendor-Gleam
Product-Gleam
CWE ID-CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Details not found