Relative Path Traversal in Erlang OTP's stdlib zip Module
CVE-2026-47078
What is CVE-2026-47078?
A vulnerability exists in the Erlang OTP's stdlib zip module that allows attackers to write files outside the intended extraction directory by exploiting crafted zip archives. The flawed validation logic in functions such as zip:unzip/1,2 and zip:extract/1,2 permits malicious paths that can navigate outside of the secure directory boundaries. This is achieved by manipulating the directory depth counter, which erroneously allows paths that result in negative values, thus bypassing security checks. As a result, the attacker can extract files to unintended locations, posing a significant security risk.
Affected Version(s)
OTP 6.1
OTP 27.1
OTP 8d537f51a4262d24f3395c4148323eaca9facbbd < 8a933c9c7835b06776d31d17b79b7336627d887a
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
