# CVE-2025-4748: Absolute path traversal in zip:unzip/1,2

Status: published. Published: 2025-06-16. Updated: 2026-11-11.

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (stdlib modules) allows Absolute Path Traversal, File Manipulation.

This vulnerability is associated with program files lib/stdlib/src/zip.erl and program routines zip:unzip/1, zip:unzip/2, zip:extract/1, zip:extract/2 unless the memory option is passed.

This issue affects OTP from OTP 17.0 before OTP 26.2.5.13, OTP 27.3.4.1, and OTP 28.0.1, corresponding to stdlib from 2.0 before 5.2.3.4, 6.2.2.1, and 7.0.1.

## Remediation

- workaround: You can use zip:list_dir/1 on the archive and verify that no files contain absolute paths before extracting the archive to disk. (source: CNA: EEF)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/erlang/otp/pull/9941
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/erlang/otp/commit/578d4001575aa7647ea1efd4b2b7e3afadcc99a5
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/erlang/otp/commit/ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/erlang/otp/commit/5a55feec10c9b69189d56723d8f237afa58d5d4f

## Affected products and versions

- Erlang / OTP (otp): ≥ 17.0; < * (affected, otp); unaffected at 26.2.5.13; unaffected at 27.3.4.1; unaffected at 28.0.1. Source: CNA: EEF
- Erlang / OTP (stdlib): ≥ 2.0; < * (affected, otp); unaffected at 5.2.3.4; unaffected at 6.2.2.1; unaffected at 7.0.1. Source: CNA: EEF
- Erlang / OTP (erlang/otp): ≥ 07b8f441ca711f9812fad9e9115bab3c3aa92f79; < * (affected, git); unaffected at 578d4001575aa7647ea1efd4b2b7e3afadcc99a5; unaffected at ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f; unaffected at 5a55feec10c9b69189d56723d8f237afa58d5d4f. Source: CNA: EEF

## Severity and prioritization

- CVSS 4.0: 4.8 (medium); 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; source: CNA: EEF

- CISA KEV: No listing in collected sources

- EPSS: 0.29% as of 2026-11-10; percentile 21.98%

- SSVC: exploitation none; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-22

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/erlang/otp/security/advisories/GHSA-9g37-pgj9-wrhc (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2025-4748.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2025-4748 (CNA: EEF; related)

- https://www.erlang.org/doc/system/versions.html#order-of-versions (CNA: EEF; x_version-scheme)

- https://github.com/erlang/otp/pull/9941 (CNA: EEF; patch)

- https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79 (CNA: EEF; related)

- https://github.com/erlang/otp/commit/578d4001575aa7647ea1efd4b2b7e3afadcc99a5 (CNA: EEF; patch)

- https://github.com/erlang/otp/commit/ba2f2bc5f45fcfd2d6201ba07990a678bbf4cc8f (CNA: EEF; patch)

- https://github.com/erlang/otp/commit/5a55feec10c9b69189d56723d8f237afa58d5d4f (CNA: EEF; patch)

- http://www.openwall.com/lists/oss-security/2025/06/16/5 (ADP: CVE)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2025-4748; retrieved 2026-11-11; source updated 2026-11-11

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2025-4748; retrieved 2026-11-11; source updated Not reported

Revision: a52d618470e44697d5b753630ad23fb67bf5f20601b6585de6f1c5f9517f74e4

Canonical: https://y2.dev/cve/CVE-2025-4748

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.