CVE-2026-47078
Relative path traversal in zip:unzip/zip:extract via check_dir_level depth-counter bypass
Mitigation
- Upgrade OTP to 8a933c9c7835b06776d31d17b79b7336627d887a or later.
Who should check
- Anyone running Erlang OTP >= 6.1, < *
- Anyone running Erlang OTP >= 27.1, < *
- Anyone running Erlang OTP >= 8d537f51a4262d24f3395c4148323eaca9facbbd, < 8a933c9c7835b06776d31d17b79b7336627d887a
Vulnerability facts
- Affected
- Erlang OTP >= 6.1, < *; Erlang OTP >= 27.1, < *; Erlang OTP >= 8d537f51a4262d24f3395c4148323eaca9facbbd, < 8a933c9c7835b06776d31d17b79b7336627d887a
- Fixed in
- Erlang OTP 8a933c9c7835b06776d31d17b79b7336627d887a
- 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.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
- CWE
- CWE-23
- Modified
Description
Relative Path Traversal vulnerability in Erlang OTP (stdlib zip module) allows writing files outside the intended extraction directory via a crafted zip archive. zip:unzip/1,2 and zip:extract/1,2 validate entry paths using zip:check_dir_level/2, which tracks directory depth as a running integer counter: .. decrements it, normal path components increment it. The caller rejects only paths where the final counter value is less than zero. A path such as ../x/y causes the counter to go negative mid-traversal then recover to zero, passing validation while resolving to a location outside the extraction directory when joined with the current working directory via add_cwd. This vulnerability is associated with program file lib/stdlib/src/zip.erl. This issue affects OTP from OTP 27.1 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to stdlib from 6.1 before 6.2.2.4, 7.3.0.1, and 8.0.3.
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-2026-47078. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-47078.md Affected: Erlang OTP >= 6.1, < *; Erlang OTP >= 27.1, < *; Erlang OTP >= 8d537f51a4262d24f3395c4148323eaca9facbbd, < 8a933c9c7835b06776d31d17b79b7336627d887a Fixed in: Erlang OTP 8a933c9c7835b06776d31d17b79b7336627d887a 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
FAQ
Is CVE-2026-47078 being exploited?
There is no confirmed exploitation: CVE-2026-47078 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-47078?
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-2026-47078?
Erlang OTP >= 6.1, < *; Erlang OTP >= 27.1, < *; Erlang OTP >= 8d537f51a4262d24f3395c4148323eaca9facbbd, < 8a933c9c7835b06776d31d17b79b7336627d887a.
Is there a fix for CVE-2026-47078?
Yes. Fixed in Erlang OTP 8a933c9c7835b06776d31d17b79b7336627d887a. Upgrade OTP to 8a933c9c7835b06776d31d17b79b7336627d887a or later.
How do I check if I'm affected by CVE-2026-47078?
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.