CVE-2025-4748
Absolute path traversal in zip:unzip/1,2
Mitigation
- Vendor workaround: You can use zip:list_dir/1 on the archive and verify that no files contain absolute paths before extracting the archive to disk.
Who should check
- Anyone running Erlang OTP >= 2.0, < *
- Anyone running Erlang OTP >= 17.0, < *
- Anyone running Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < *
Vulnerability facts
- Affected
- Erlang OTP >= 2.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < *
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.8 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:LOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: Low
- Availability impact on other systems: Low
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-4748. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-4748.md Affected: Erlang OTP >= 2.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < * Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/erlang/otp/pull/9941
- https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79
- https://github.com/erlang/otp/commit/578d4001575aa7647ea1efd4b2b7e3afadcc99a5
- https://github.com/erlang/otp/commit/5a55feec10c9b69189d56723d8f237afa58d5d4f
- https://github.com/erlang/otp/commit/ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f
FAQ
Is CVE-2025-4748 being exploited?
There is no confirmed exploitation: CVE-2025-4748 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-4748?
Medium: CVSS 4.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-4748?
Erlang OTP >= 2.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < *.
Is there a fix for CVE-2025-4748?
No fixed version is listed in the sources yet. Vendor workaround: You can use zip:list_dir/1 on the archive and verify that no files contain absolute paths before extracting the archive to disk.
How do I check if I'm affected by CVE-2025-4748?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.