{"schema":"threatline.record/2","record":{"id":"CVE-2026-103060","aliases":["GHSA-6ggr-r7mh-2mv8"],"summary":"Path traversal in rebar3 via unvalidated dependency app names","details":"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.","categories":["Unclassified"],"product":"rebar3","vendor":"erlang","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-103060","source_modified_at":"2026-10-16T17:44:16.145Z","fetched_at":"2026-10-23T18:48:36.087640Z","product":"rebar3","vendor":"erlang","versions":[{"lessThan":"3.27.2","status":"affected","version":"3.7.0-rc1","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-103060","source_modified_at":"2026-10-16T17:44:16.145Z","fetched_at":"2026-10-23T18:48:36.087640Z","product":"rebar3","vendor":"erlang","versions":[{"lessThan":"e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","status":"affected","version":"56b7d88975aa8da6446857cfd92de0825024bf63","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"GitHub Advisory Database","source_url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","source_modified_at":"2026-10-12T14:26:40Z","fetched_at":"2026-10-24T10:48:42.330819Z","package":{"ecosystem":"otp","name":"rebar3"},"range":"≥ 3.7.0-rc1 and < 3.27.2"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-103060","source_modified_at":"2026-10-16T17:44:16.145Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"rebar3","ecosystem":null},"version":"3.27.2","basis":"first unaffected version stated in the CVE record"},{"source":"GitHub Advisory Database","source_url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","source_modified_at":"2026-10-12T14:26:40Z","fetched_at":"2026-10-24T10:48:42.330819Z","package":{"ecosystem":"otp","name":"rebar3"},"version":"3.27.2"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00371,"percentile":0.29892,"score_date":"2026-10-23"},"published_at":"2026-10-12T15:43:57.636Z","modified_at":"2026-10-16T17:44:16.145Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-103060","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-10-16T17:44:16.145Z"},{"source":"GitHub Advisory Database","url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","fetched_at":"2026-10-24T10:48:42.330819Z","source_modified_at":"2026-10-12T14:26:40Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-103060","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","GitHub Advisory Database","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","tags":["exploit"]},{"source":"CVE List","url":"https://cna.erlef.org/cves/CVE-2026-103060.html","tags":["related"]},{"source":"CVE List","url":"https://osv.dev/vulnerability/EEF-CVE-2026-103060","tags":["related"]},{"source":"CVE List","url":"https://github.com/erlang/rebar3/commit/56b7d88975aa8da6446857cfd92de0825024bf63","tags":["related"]},{"source":"CVE List","url":"https://github.com/erlang/rebar3/commit/e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","tags":["patch"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total","assessed_at":"2026-10-16T17:43:00.338501Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-16T17:44:16.145Z","content_hash":"fd3a4da3f188f4e7effa0b47038330182a527cac0cfbc730a40418f0f18e65bf"}}
