{"id":"CVE-2025-4748","published":"2025-06-16T11:00:54Z","modified":"2026-11-20T05:56:10Z","title":"Absolute path traversal in zip:unzip/1,2","vendor":"Erlang","product":"OTP","tier":"tail","description":{"text":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (stdlib modules) allows Absolute Path Traversal, File Manipulation.\n\nThis vulnerability is associated with program files lib/stdlib/src/zip.erl and program routines zip:unzip/1, zip:unzip/2, zip:extract/1, zip:extract/2 unless the memory option is passed.\n\nThis issue affects OTP from OTP 17.0 before OTP 26.2.5.13, OTP 27.3.4.1, and OTP 28.0.1, corresponding to stdlib from 2.0 before 5.2.3.4, 6.2.2.1, and 7.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00313,"percentile":0.24825,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-9g37-pgj9-wrhc","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2025-4748.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2025-4748","tags":["related"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["x_version-scheme"]},{"url":"https://github.com/erlang/otp/pull/9941","tags":["patch"]},{"url":"https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79","tags":["related"]},{"url":"https://github.com/erlang/otp/commit/578d4001575aa7647ea1efd4b2b7e3afadcc99a5","tags":["patch"]},{"url":"https://github.com/erlang/otp/commit/5a55feec10c9b69189d56723d8f237afa58d5d4f","tags":["patch"]},{"url":"https://github.com/erlang/otp/commit/ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/16/5","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":4.96},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"erlang","affectedVersions":[{"vendor":"Erlang","product":"OTP","versions":[">= 2.0"]},{"vendor":"Erlang","product":"OTP","versions":[">= 17.0"]},{"vendor":"Erlang","product":"OTP","versions":[">= 07b8f441ca711f9812fad9e9115bab3c3aa92f79"]}],"fixedVersions":[{"vendor":"Erlang","product":"OTP","versions":["5.2.3.4","6.2.2.1","7.0.1"]},{"vendor":"Erlang","product":"OTP","versions":["26.2.5.13","27.3.4.1","28.0.1"]},{"vendor":"Erlang","product":"OTP","versions":["578d4001575aa7647ea1efd4b2b7e3afadcc99a5","5a55feec10c9b69189d56723d8f237afa58d5d4f","ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f"]}],"workarounds":{"items":["You can use zip:list_dir/1 on the archive and verify that no files contain absolute paths before extracting the archive to disk."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-597","name":"Absolute Path Traversal"},{"id":"CAPEC-165","name":"File Manipulation"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-06-16T15:10:47.019511Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-18414","exploited":false,"provenance":"source"}}