Servers and applications
CVE-2026-47078
Relative path traversal in zip:unzip/zip:extract via check_dir_level depth-counter bypass
- Severity
- Medium 4.8
- Published
- 27 Jul 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 20 Nov 2026
- Fixed in
- 6.2.2.4, 7.3.0.1, 8.0.3, 27.3.4.15, 28.5.0.4, 29.0.4
- Weakness
- Relative path traversal (CWE-23)
- Attack
- Needs local access · No login needed · Needs someone to view a page or file
- Attacker can
- Change some data · Slow it down
- CVSS 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- Sources
- CVE Program
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 software
| Software | Affected versions |
|---|---|
Erlang/OTPServers and applications · cna:erlang|otp |
|
Erlang/OTPServers and applications · cpe:a:erlang:erlang\/otp |
|
About Erlang/OTP
programming language
- Docker Hub pulls
- 66,153,117Docker Hub, 15 Nov 2026
- GitHub stars
- 12,362GitHub, 15 Nov 2026
- Forks
- 3,222GitHub, 15 Nov 2026
- Latest release
- OTP-29.1.2GitHub, 15 Nov 2026
- Released
- 14 Oct 2026GitHub
- Developer
- Joe ArmstrongWikidata
- License
- Apache Software License 2.0Wikidata
- Written in
- CWikidata
- First released
- 1986Wikidata
- First published on GitHub
- 16 Nov 2009GitHub
Website Source code Docker image
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 29 | 29.1.2 | Until 11 May 2029 |
| 28 | 28.5.0.8 | Until 20 May 2028 |
| 27 | 27.3.4.19 | Until 20 May 2027 |
| 26 | 26.2.5.21 | Ended 26 May 2026 |
| 25 | 25.3.2.21 | Ended 17 May 2025 |
| 24 | 24.3.4.17 | Ended 10 May 2024 |
From endoflife.date.
Vulnerabilities in Erlang/OTP
- In our list
- 65
- Published in the last 12 months
- 53
- Critical, last 12 months
- 2
- High, last 12 months
- 28
- Known exploited
- 1
- CVE-2026-96596erl_tar:extract/2 loops forever on a GNU sparse member with a trailing holeMedium 5.9 14 Oct 2026
- CVE-2026-105236TLS 1.2 session resumption in ssl crosses SNI virtual-host client-certificate trust boundariesMedium 6.3 14 Oct 2026
- CVE-2026-94200TLS 1.3 client ticket store crashed by NewSessionTicket with empty early_data extension in sslHigh 8.2 14 Oct 2026
- CVE-2026-65634Superlinear CPU denial of service in Erlang/OTP ASN.1 OBJECT IDENTIFIER decoderHigh 8.2 22 Sept 2026
- CVE-2026-68956SSH daemon allocates unbounded idle session channels, bypassing max_channelsHigh 7.1 22 Sept 2026
- CVE-2026-89422TLS 1.3 client skips server authentication when ServerHello carries an unsolicited pre_shared_key extensionCritical 9.3 22 Sept 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-47078