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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.8
- **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:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-28)
- **CWE:** CWE-23
- **Published:** 2026-07-27T15:03:50.929Z
- **Modified:** 2026-11-20T06:17:28.310Z

## Who should check

- Anyone running Erlang OTP \>= 6.1, \< \*
- Anyone running Erlang OTP \>= 27.1, \< \*
- Anyone running Erlang OTP \>= 8d537f51a4262d24f3395c4148323eaca9facbbd, \< 8a933c9c7835b06776d31d17b79b7336627d887a

## 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

- Erlang OTP: \>= 6.1, \< \* (cvelist)
- Erlang OTP: \>= 27.1, \< \* (cvelist)
- Erlang OTP: \>= 8d537f51a4262d24f3395c4148323eaca9facbbd, \< 8a933c9c7835b06776d31d17b79b7336627d887a (cvelist)

## Mitigation

- Upgrade OTP to 8a933c9c7835b06776d31d17b79b7336627d887a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

## 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-28).

### 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.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-rf72-wp7h-jg3x>
- patch: <https://github.com/erlang/otp/commit/8d537f51a4262d24f3395c4148323eaca9facbbd>
- patch: <https://github.com/erlang/otp/commit/8a933c9c7835b06776d31d17b79b7336627d887a>
- other: <https://cna.erlef.org/cves/CVE-2026-47078.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-47078>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-47078>

HTML: <https://flawdb.com/CVE-2026-47078> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-47078>
