{"schemaVersion":3,"id":"CVE-2026-103060","aliases":["UBUNTU-CVE-2026-103060","DEBIAN-CVE-2026-103060"],"status":"published","duplicateOf":null,"title":null,"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.\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.","dates":{"published":"2026-10-12T15:43:57.636Z","modified":"2026-10-16T17:44:16.145Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"NVD","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.5,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.5,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00371,"percentile":0.29603,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-13T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00371,"percentile":0.29603}],"last30":[{"date":"2026-10-13T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00371,"percentile":0.29603}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"debian","product":"rebar3","name":"rebar3","label":"rebar3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rebar3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rebar3","name":"rebar3","label":"rebar3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rebar3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"erlang","product":"rebar3","name":"rebar3","label":"rebar3","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.7.0-rc1, < 3.27.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 56b7d88975aa8da6446857cfd92de0825024bf63, < e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.7.0-rc1, < 3.27.2 | ≥ 56b7d88975aa8da6446857cfd92de0825024bf63, < e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","eol":null,"hubHref":"/vendor/erlang/rebar3"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-103060.html","label":"cna.erlef.org/cves/CVE-2026-103060.html","hostname":"cna.erlef.org","tags":["Related","REPORT"]},{"url":"https://github.com/erlang/rebar3/commit/56b7d88975aa8da6446857cfd92de0825024bf63","label":"github.com/erlang/rebar3/commit/56b7d88975aa8da6446857cfd92de0825024bf63","hostname":"github.com","tags":["Related","REPORT"]},{"url":"https://github.com/erlang/rebar3/commit/e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","label":"github.com/erlang/rebar3/commit/e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","label":"github.com/erlang/rebar3/security/advisories/GHSA-6ggr-r7mh-2mv8","hostname":"github.com","tags":["Related","Vendor Advisory","REPORT"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-103060","label":"osv.dev/vulnerability/EEF-CVE-2026-103060","hostname":"osv.dev","tags":["Related","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-103060","label":"ubuntu.com/security/CVE-2026-103060","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-103060","label":"www.cve.org/CVERecord?id=CVE-2026-103060","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-103060","label":"security-tracker.debian.org/tracker/CVE-2026-103060","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-12T15:43:57.636Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-16T17:44:16.145Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:36:05.159Z","stale":false,"partial":false}}