CVE-2025-4748
Absolute path traversal in zip:unzip/1,2
- State
- Published
- Severity
- 4.8 Medium
- Published
- Jun 16, 2025
- Updated
- Jul 24, 2026
- Reserved
- May 15, 2025
Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (stdlib modules) allows Absolute Path Traversal, File Manipulation. This 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.
This issue affects OTP from OTP 17.0 before OTP 28.0.1, OTP 27.3.4.1 and OTP 26.2.5.13, corresponding to stdlib from 2.0 before 7.0.1, 6.2.2.1 and 5.2.3.4.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | 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 | EEF |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
OTPErlang |
|
OTPErlang |
|
References
- https://github.com/erlang/otp/security/advisories/GHSA-9g37-pgj9-wrhcvendor-advisoryrelated
- https://cna.erlef.org/cves/CVE-2025-4748.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2025-4748related
- https://www.erlang.org/doc/system/versions.html#order-of-versions
- https://github.com/erlang/otp/pull/9941patch
- https://github.com/erlang/otp/commit/5a55feec10c9b69189d56723d8f237afa58d5d4fpatch
- https://github.com/erlang/otp/commit/ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8fpatch
- https://github.com/erlang/otp/commit/578d4001575aa7647ea1efd4b2b7e3afadcc99a5patch
- http://www.openwall.com/lists/oss-security/2025/06/16/5
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.