CVE-2026-103060
published high CVSS 4.0 · 7.5Path traversal in rebar3 via unvalidated dependency app names
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| erlang | — | rebar33.7.0-rc1 to < 3.27.2 · Other versions: unaffected | Affected | Not stated | EEF |
| erlang | — | erlang/rebar3rebar3 · 56b7d88975aa8da6446857cfd92de0825024bf63 to < e35282b26e499b1d9e8f30bba9dccd71cd8b02ba · Other versions: unaffected | Affected | Not stated | EEF |
| Alpine Linux | edge | rebar3 | Fixed | 3.27.3-r0 | Package fix record |
| Alpine Linux | v3.24 | rebar3 | Fixed | 3.27.3-r0 | Package fix record |
Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in erlang rebar3 allows a malicious package publisher to delete a directory outside the project's _build directory and extract package files into it when a developer fetches dependencies. A package release's dependencies in a Hex registry carry an app field that names the dependency's OTP application. rebar3 uses this field as the dependency's name without validating it (rebar_packages:parse_deps/1) and builds the dependency's directory from that name (rebar_app_utils:dep_to_app/7). rebar_fetch:download_source_online/2 deletes that directory with rm -rf and moves the fetched package into it. 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. When a project depends on such a release directly or transitively, rebar3 get-deps deletes the directory the name resolves to and writes the dependency's files there. This happens before the dependency's own rebar.config.script is evaluated, and get-deps compiles nothing. This issue affects rebar3: from 3.7.0-rc1 before 3.27.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| erlang | rebar3 | 3.7.0-rc1 to < 3.27.2 (affected · semver)Default: unaffected | EEF · cna |
| erlang | rebar3 | 56b7d88975aa8da6446857cfd92de0825024bf63 to < e35282b26e499b1d9e8f30bba9dccd71cd8b02ba (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
5- EEF CNA record for CVE-2026-103060 https://cna.erlef.org/cves/CVE-2026-103060.html
- Introducing commit 56b7d88 in erlang/rebar3 https://github.com/erlang/rebar3/commit/56b7d88975aa8da6446857cfd92de0825024bf63
- Fix commit e35282b in erlang/rebar3 https://github.com/erlang/rebar3/commit/e35282b26e499b1d9e8f30bba9dccd71cd8b02ba
- GitHub Advisory https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8
- OSV record EEF-CVE-2026-103060 https://osv.dev/vulnerability/EEF-CVE-2026-103060
Provider assertions
2EEF · cna
Path traversal in rebar3 via unvalidated dependency app names
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- eb64f90972f054507298ece7616c5276259a44c949a0ca930972e63430a00bd2
- Ingested
- 19 Nov 2026, 08:33:21 UTC
- Source record
- Official CVE record