{"id":"CVE-2025-4748","aliases":["CVE-2025-4748","EEF-CVE-2025-4748","GHSA-9g37-pgj9-wrhc"],"related":[],"kind":"vulnerability","state":"published","title":"Absolute path traversal in zip:unzip/1,2","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper 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.\n\n## Workarounds\n\nYou can use `zip:list_dir/1` on the archive and verify that no files contain absolute paths before extracting the archive to disk.","format":"markdown","source":"eef"},{"lang":"es","text":"La vulnerabilidad de limitación incorrecta de una ruta a un directorio restringido ('Path Traversal') en Erlang OTP (módulos stdlib) permite Absolute Path Traversal y la manipulación de archivos. Esta vulnerabilidad está asociada a los archivos de programa lib/stdlib/src/zip.erl y a las rutinas zip:unzip/1, zip:unzip/2, zip:extract/1 y zip:extract/2, a menos que se utilice la opción de memoria. Este problema afecta a OTP desde OTP 17.0 hasta OTP 28.0.1, OTP 27.3.4.1 y OTP 26.2.5.13, correspondientes a stdlib desde 2.0 hasta 7.0.1, 6.2.2.1 y 5.2.3.4.","source":"nvd"}],"published":"2025-06-16T11:00:54.643Z","modified":"2026-11-25T06:30:10.448Z","severity":{"scorer":"EEF","scheme":"CVSS: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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS: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","score":4.8,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS: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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"otp","introduced":"2.0","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"stdlib","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/otp","source":"cvelist"},{"ranges":[{"type":"otp","introduced":"17.0","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"git","introduced":"07b8f441ca711f9812fad9e9115bab3c3aa92f79","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"erlang/otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/otp","source":"cvelist"},{"ranges":[{"type":"git","introduced":"07b8f441ca711f9812fad9e9115bab3c3aa92f79","status":"affected","fixed":"578d4001575aa7647ea1efd4b2b7e3afadcc99a5"},{"type":"git","status":"affected","fixed":"5a55feec10c9b69189d56723d8f237afa58d5d4f"},{"type":"git","status":"affected","fixed":"ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f"}],"repo":"https://github.com/erlang/otp","source":"eef"}],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-9g37-pgj9-wrhc","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2025-4748.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2025-4748","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["web","x-version-scheme"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/pull/9941","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/578d4001575aa7647ea1efd4b2b7e3afadcc99a5","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/5a55feec10c9b69189d56723d8f237afa58d5d4f","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/16/5","tags":[],"sources":["cvelist","nvd"]}],"credits":["Wander Nauta","Lukas Backström","Björn Gustavsson"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-06-16T15:10:47.019Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-4748","url":"https://www.cve.org/CVERecord?id=CVE-2025-4748","licence":"CVE Terms of Use","modified":"2026-11-20T05:56:10.753Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2025-4748","url":"https://osv.dev/vulnerability/EEF-CVE-2025-4748","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:10.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-4748","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4748","licence":"Public domain","modified":"2026-11-20T06:17:15.383Z"}],"updatedAt":"2026-11-25T22:58:59.240Z","epss":{"score":0.00358,"percentile":0.31567,"date":"2026-12-01T12:00:22.000Z"}}