Skip to content
RedCVE

CVE-2026-103061Gleam path traversal

GleamPublished:

CVSS score

5.9

Medium

CVSS 4.0 from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Exploit probability (EPSS)

0.40%

0.40% chance of exploitation in the next 30 days, higher than 34.8% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in gleam-lang gleam allows a malicious package publisher to delete a directory outside the project's build directory when a developer builds a project. A Hex package release's metadata carries an app field with the release's OTP application name. Gleam reads this field from the hex.pm release API when it downloads dependencies and uses it as the package's build directory name without validating it (hex_manifest_package in compiler-cli/src/dependencies.rs, ProjectPaths::build_directory_for_package). When a dependency fails to compile, Gleam deletes that directory with remove_dir_all. hex.pm didn't restrict the field to a directory name before 2026-10-12, so a publisher could set it to a value such as ../../../../target or an absolute path. When a project depends on such a release directly or transitively and the release fails to compile, gleam build, gleam check, gleam run, gleam test or gleam export deletes the directory the name resolves to. For a pure Gleam package no publisher code runs. This issue affects gleam: from 0.32.4 before 1.19.2.

Source: NVD · CNA: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Gleam and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Gleam to 1.19.2-elixir, 1.19.2-elixir-slim, 1.19.2-erlang, 1.19.2-erlang-slim or later, on the branch you run.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
None
User interaction
Active
Confidentiality
None
Integrity
None
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/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

Affected products

Affected productsVersions
Gleam Gleam≥ v0.32.4-elixir, < v1.19.2-elixir · ≥ v0.32.4-erlang, < v1.19.2-erlang · ≥ v0.32.4-node, < v1.19.2-node · ≥ v0.32.4-node-slim, < v1.19.2-node-slim · ≥ v0.32.4-elixir-slim, < v1.19.2-elixir-slim · ≥ v0.32.4-erlang-slim, < v1.19.2-erlang-slim

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-103061 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-103061?

CVE-2026-103061 has a CVSS 4.0 base score of 5.9 (medium).

Which versions are affected?

Gleam Gleam (≥ v0.32.4-elixir, < v1.19.2-elixir; ≥ v0.32.4-erlang, < v1.19.2-erlang; ≥ v0.32.4-node, < v1.19.2-node; ≥ v0.32.4-node-slim, < v1.19.2-node-slim; ≥ v0.32.4-elixir-slim, < v1.19.2-elixir-slim; ≥ v0.32.4-erlang-slim, < v1.19.2-erlang-slim)

Is there a patch for CVE-2026-103061?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.