Skip to main content

CVE-2026-103060: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in erlang rebar3

0
High
VulnerabilityCVE-2026-103060cvecve-2026-103060cwe-22
Published: 10/12/2026 (10/12/2026, 15:43:57 UTC)
Source: CVE Database V5
Vendor/Project: erlang
Product: rebar3

Description

CVE-2026-103060 is a path traversal vulnerability in erlang rebar3 that allows a malicious package publisher to delete directories outside the intended build directory and extract package files there. This occurs because rebar3 uses an unvalidated app field from package dependencies to construct directory paths, enabling directory deletion and file extraction outside the restricted area. The issue affects versions from 3.7.0-rc1 up to but not including 3.27.2.

CVSS v4.0

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

erlang

rebar3

Affected versions
>=3.7.0-rc1 <3.27.2

erlang

rebar3

GitHub Actionsmore threats →cve
rebar3
pkg:github/rebar3
Affected versions
>=3.7.0-rc1 <3.27.2
GitHub Actionsmore threats →cve
erlang/rebar3
pkg:github/erlang/rebar3
CPE configurations
cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/12/2026, 16:18:21 UTC

Technical Analysis

The vulnerability arises from improper validation of the 'app' field in package dependencies fetched from the Hex registry. rebar3 uses this field directly to name dependency directories without sanitization, leading to potential path traversal. A malicious package can specify a path like '../../../../target', causing rebar3 to delete and overwrite directories outside the _build directory during dependency fetching. This happens before any dependency scripts are executed, enabling directory deletion and file placement outside intended boundaries. The flaw affects rebar3 versions >=3.7.0-rc1 and <3.27.2.

Potential Impact

An attacker publishing a malicious package can cause rebar3 to delete arbitrary directories outside the project's build directory and place files there when a developer fetches dependencies. This can lead to loss of data or overwriting important files on the developer's system. The vulnerability requires user interaction (fetching dependencies) and does not require privileges. It has a high severity with a CVSS 4.0 score of 7.5, indicating significant impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid fetching dependencies from untrusted sources until an official fix is released. Monitor the erlang/rebar3 project for updates and apply official patches once available. Avoid using affected versions (>=3.7.0-rc1 <3.27.2) in sensitive environments until patched.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-10-06T08:45:01.521Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6acd04f82cdf04f656ac9330

Added to database: 10/12/2026, 16:04:08 UTC

Last enriched: 10/12/2026, 16:18:21 UTC

Last updated: 10/12/2026, 18:57:55 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses