All vulnerabilities

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.

From the CVE Program.

Affected software

SoftwareAffected versions
Erlang/OTPServers and applications · cna:erlang|otp
  • From 6.1 before 6.2.2.4
  • From 7 before 7.3.0.1
  • From 8 before 8.0.3
  • From 27.1 before 27.3.4.15
  • From 28 before 28.5.0.4
  • From 29 before 29.0.4
Erlang/OTPServers and applications · cpe:a:erlang:erlang\/otp
  • From 6.1 before 6.2.2.4
  • From 7 before 7.3.0.1
  • From 8 before 8.0.3
  • From 27.1 before 27.3.4.15
  • From 28 before 28.5.0.4
  • From 29 before 29.0.4

About Erlang/OTP

programming language

From Wikidata, CC0 1.0.
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

Release lines

ReleaseLatestSecurity fixes
2929.1.2Until 11 May 2029
2828.5.0.8Until 20 May 2028
2727.3.4.19Until 20 May 2027
2626.2.5.21Ended 26 May 2026
2525.3.2.21Ended 17 May 2025
2424.3.4.17Ended 10 May 2024

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-47078