{"id":"CVE-2026-103060","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-10-12T16:17:00.873","lastModified":"2026-10-16T18:17:16.940","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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.\n\nA 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.\n\nThis issue affects rebar3: from 3.7.0-rc1 before 3.27.2."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"erlang","product":"rebar3","defaultStatus":"unaffected","packageName":"rebar3","cpes":["cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*"],"modules":["rebar_packages","rebar_app_utils","rebar_fetch"],"programFiles":["apps/rebar/src/rebar_packages.erl","apps/rebar/src/rebar_app_utils.erl","apps/rebar/src/rebar_fetch.erl"],"programRoutines":[{"name":"rebar_packages:parse_deps/1"},{"name":"rebar_app_utils:dep_to_app/7"},{"name":"rebar_fetch:download_source/2"},{"name":"rebar_fetch:download_source_online/2"}],"repo":"https://github.com/erlang/rebar3","packageURL":"pkg:otp/rebar3?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Frebar3&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Frebar3.git","versions":[{"version":"3.7.0-rc1","lessThan":"3.27.2","versionType":"semver","status":"affected"}]},{"vendor":"erlang","product":"rebar3","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"erlang/rebar3","cpes":["cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*"],"modules":["rebar_packages","rebar_app_utils","rebar_fetch"],"programFiles":["apps/rebar/src/rebar_packages.erl","apps/rebar/src/rebar_app_utils.erl","apps/rebar/src/rebar_fetch.erl"],"programRoutines":[{"name":"rebar_packages:parse_deps/1"},{"name":"rebar_app_utils:dep_to_app/7"},{"name":"rebar_fetch:download_source/2"},{"name":"rebar_fetch:download_source_online/2"}],"repo":"https://github.com/erlang/rebar3","packageURL":"pkg:github/erlang/rebar3","versions":[{"version":"56b7d88975aa8da6446857cfd92de0825024bf63","lessThan":"e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","versionType":"git","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"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/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","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-16T17:43:00.338501Z","id":"CVE-2026-103060","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-22"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-103060.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/erlang/rebar3/commit/56b7d88975aa8da6446857cfd92de0825024bf63","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/erlang/rebar3/commit/e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-103060","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}