CVE-2026-103061
Path traversal in Gleam via unvalidated package application names
Check your servers for CVE-2026-103061
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-103061 affects gleam, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality none, integrity none, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 44.1% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Gleam
package
gleam-lang/gleam |
affected from v0.32.4-elixir, before v1.19.2-elixir affected from v0.32.4-erlang, before v1.19.2-erlang affected from v0.32.4-node, before v1.19.2-node affected from v0.32.4-node-slim, before v1.19.2-node-slim affected from v0.32.4-elixir-slim, before v1.19.2-elixir-slim affected from v0.32.4-erlang-slim, before v1.19.2-erlang-slim affected from v0.32.4-erlang-alpine, before v1.19.2-erlang-alpine affected from v0.32.4-elixir-alpine, before v1.19.2-elixir-alpine affected from v0.32.4-node-alpine, before v1.19.2-node-alpine affected from v0.32.4-scratch, before v1.19.2-scratch
Other versions: unaffected
|
|
Gleam
package
gleam |
affected from 0.32.4, before 1.19.2
Other versions: unaffected
|
|
Gleam
package
gleam-lang/gleam |
affected d13f27ee80aae7a521d2e9433c4deaf53f892574 and later (unaffected from 54bbb2b98af1505b6eed93c45b1936fc76412e5c, unaffected from d15c981fac6e533d70ac8ee89a6ef4dbf139adc3)
Other versions: unaffected
|
Is my server affected?
Find the installed version of gleam and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i gleam
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-103061 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-103061RHEL, Rocky, Alma, Fedora
rpm -q gleam
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-103061Alpine
apk list --installed | grep -i gleamWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-103061
trivy image --scanners vuln IMAGE | grep CVE-2026-103061
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- GitHub Advisory github.com · related, vendor advisory
Patches and release notes
- Fix commit 54bbb2b in gleam-lang/gleam github.com · patch
- Fix commit d15c981 in gleam-lang/gleam github.com · patch
Other references
- EEF CNA record for CVE-2026-103061 cna.erlef.org · related
- OSV record EEF-CVE-2026-103061 osv.dev · related
- Introducing commit d13f27e in gleam-lang/gleam github.com · related
Source: the record CVE-2026-103061 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse