{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-47078","id":"CVE-2026-47078","title":"Relative path traversal in zip:unzip/zip:extract via check_dir_level depth-counter bypass","description":"Relative Path Traversal vulnerability in Erlang OTP (stdlib zip module) allows writing files outside the intended extraction directory via a crafted zip archive.\n\nzip:unzip/1,2 and zip:extract/1,2 validate entry paths using zip:check_dir_level/2, which tracks directory depth as a running integer counter: .. decrements it, normal path components increment it. The caller rejects only paths where the","descriptionLong":"Relative Path Traversal vulnerability in Erlang OTP (stdlib zip module) allows writing files outside the intended extraction directory via a crafted zip archive.\n\nzip:unzip/1,2 and zip:extract/1,2 validate entry paths using zip:check_dir_level/2, which tracks directory depth as a running integer counter: .. decrements it, normal path components increment it. The caller rejects only paths where the final counter value is less than zero. A path such as ../x/y causes the counter to go negative mid-traversal then recover to zero, passing validation while resolving to a location outside the extraction directory when joined with the current working directory via add_cwd.\n\nThis vulnerability is associated with program file lib/stdlib/src/zip.erl.\n\nThis issue affects OTP from OTP 27.1 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to stdlib from 6.1 before 6.2.2.4, 7.3.0.1, and 8.0.3.","published":"2026-07-27T15:03:50.929Z","updated":"2026-10-28T02:30:45.608766657Z","reserved":"2026-05-18T17:28:10.319Z","status":"Awaiting Analysis","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L","rating":"medium","source":"EEF"},{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L/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","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L","rating":"unrated","source":"OSV"}],"rating":"medium","products":["Erlang OTP"],"affectedProducts":[{"vendor":"Erlang","product":"OTP","defaultStatus":"unaffected","versions":[{"changes":[{"at":"27.3.4.15","status":"unaffected"},{"at":"28.5.0.4","status":"unaffected"},{"at":"29.0.4","status":"unaffected"}],"lessThan":"*","status":"affected","version":"27.1","versionType":"otp"}],"platforms":[]},{"vendor":"Erlang","product":"OTP","defaultStatus":"unaffected","versions":[{"changes":[{"at":"6.2.2.4","status":"unaffected"},{"at":"7.3.0.1","status":"unaffected"},{"at":"8.0.3","status":"unaffected"}],"lessThan":"*","status":"affected","version":"6.1","versionType":"otp"}],"platforms":[]},{"vendor":"Erlang","product":"OTP","defaultStatus":"unaffected","versions":[{"lessThan":"8a933c9c7835b06776d31d17b79b7336627d887a","status":"affected","version":"8d537f51a4262d24f3395c4148323eaca9facbbd","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-23"],"aliases":["EEF-CVE-2026-47078","GHSA-rf72-wp7h-jg3x"],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-rf72-wp7h-jg3x","tags":["vendor-advisory","related","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47078.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47078","tags":["related","web"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["x_version-scheme","web"]},{"url":"https://github.com/erlang/otp/commit/8d537f51a4262d24f3395c4148323eaca9facbbd","tags":["related","fix"]},{"url":"https://github.com/erlang/otp/commit/8a933c9c7835b06776d31d17b79b7336627d887a","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47078.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47078","tags":["advisory"]},{"url":"https://github.com/erlang/otp","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00149,"epssPercentile":0.04216,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-47078","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47078","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-47078","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-47078","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}