# CVE-2026-47078: Relative path traversal in zip:unzip/zip:extract via check\_dir\_level depth-counter bypass

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-27 · Modified: 2026-11-20
- Aliases: UBUNTU-CVE-2026-47078, DEBIAN-CVE-2026-47078
- Record: https://cvemate.com/vulnerability/CVE-2026-47078 · JSON: https://cvemate.com/vulnerability/CVE-2026-47078/json

## Description

```text
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.
```

## Signals

- CVSS: 4.8 medium (v4.0, CVE.org) 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
- EPSS: 0.15%, percentile 4.352%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian erlang (Debian): All versions (No fix recorded) \| \< 1:27.3.4.1+dfsg-1+deb13u3 \| \< 1:29.0.4+dfsg-1
- ubuntu erlang (Ubuntu): All versions (No fix recorded) \| \< 1:20.2.2+dfsg-1ubuntu2+esm4 \| \< 1:22.2.7+dfsg-1ubuntu0.5+esm3 \| \< 1:24.2.1+dfsg-1ubuntu0.8 \| \< 1:25.3.2.8+dfsg-1ubuntu4.8 \| \< 1:27.3.4.6+dfsg-1ubuntu0.2
- erlang otp: ≥ 6.1 (No fix recorded) \| ≥ 27.1 (No fix recorded) \| ≥ 8d537f51a4262d24f3395c4148323eaca9facbbd, \< 8a933c9c7835b06776d31d17b79b7336627d887a

## References

- <https://github.com/erlang/otp/security/advisories/GHSA-rf72-wp7h-jg3x>
- <https://cna.erlef.org/cves/CVE-2026-47078.html>
- <https://osv.dev/vulnerability/EEF-CVE-2026-47078>
- <https://www.erlang.org/doc/system/versions.html#order-of-versions>
- <https://github.com/erlang/otp/commit/8d537f51a4262d24f3395c4148323eaca9facbbd>
- <https://github.com/erlang/otp/commit/8a933c9c7835b06776d31d17b79b7336627d887a>
- <https://ubuntu.com/security/CVE-2026-47078>
- <https://www.cve.org/CVERecord?id=CVE-2026-47078>
- <https://ubuntu.com/security/notices/USN-8901-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-47078>

---

Data as of 2026-12-05T07:09:24.491Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
