CVE-2025-4748
Medium 4.8No known exploitationFix availableAbsolute path traversal in zip:unzip/1,2
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 25% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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 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.
Weakness: CWE-22
Patching and mitigation
- Patch status
- Fix available (source: CVE record (EEF))
- Fix documented (source date)
- Mitigation
- You can use zip:list_dir/1 on the archive and verify that no files contain absolute paths before extracting the archive to disk. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Erlang | OTP | 07b8f441ca711f9812fad9e9115bab3c3aa92f79 | Not documented | CVE Program |
| Erlang | OTP | 17.0 | Not documented | CVE Program |
| Erlang | OTP | 2.0 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (EEF)
Vendor guidance and references
- Fix commit 578d400 in erlang/otp (opens in a new tab)patch
- Fix commit 5a55fee in erlang/otp (opens in a new tab)patch
- Fix commit ba2f2bc in erlang/otp (opens in a new tab)patch
- https://github.com/erlang/otp/pull/9941 (opens in a new tab)patch
- Absolute Path in Zip Module (opens in a new tab)related, vendor-advisory
- http://www.openwall.com/lists/oss-security/2025/06/16/5 (opens in a new tab)
- EEF CNA record for CVE-2025-4748 (opens in a new tab)related
- Introducing commit 07b8f44 in erlang/otp (opens in a new tab)related
- OSV record EEF-CVE-2025-4748 (opens in a new tab)related
- Erlang/OTP version ordering (opens in a new tab)x_version-scheme