- Accueil
- Vulnérabilités
- CVE-2026-32685
CVE-2026-32685
Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write
Résumé
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 before 1.17.0.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Gleam (11 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Gleam | de 1.16.0 (inclus) à 1.17.0 (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-elixir (inclus) à v1.17.0-elixir (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-erlang (inclus) à v1.17.0-erlang (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-node (inclus) à v1.17.0-node (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-node-slim (inclus) à v1.17.0-node-slim (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-elixir-slim (inclus) à v1.17.0-elixir-slim (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-erlang-slim (inclus) à v1.17.0-erlang-slim (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-erlang-alpine (inclus) à v1.17.0-erlang-alpine (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-elixir-alpine (inclus) à v1.17.0-elixir-alpine (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-node-alpine (inclus) à v1.17.0-node-alpine (exclu) |
— | CNA (éditeur ou attributeur) |
| Gleam | de v1.16.0-scratch (inclus) à v1.17.0-scratch (exclu) |
— | CNA (éditeur ou attributeur) |
Correctif
Non renseigné par l’éditeur.
Contournement
Contournementsource officielle
* 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)
Source : CNA (éditeur ou attributeur)
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
Références
- https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3apatch
- https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430patch
- https://cna.erlef.org/cves/CVE-2026-32685.htmlrelated
- https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7exploit
- https://osv.dev/vulnerability/EEF-CVE-2026-32685related
- https://github.com/gleam-lang/gleam/commit/61ed8deb6572b5591ad17d6302c1a38607522f16related
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
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:(CVSS 4.0, CNA:6b3ad84c-e1a6-4bf7-a703-f496b71e49db)- Faiblesse
- CWE-22 · Traversée de chemin / fichiers