CVE-2025-4748: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Erlang OTP
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 28.0.1, OTP 27.3.4.1 and OTP 26.2.5.13, corresponding to stdlib from 2.0 before 7.0.1, 6.2.2.1 and 5.2.3.4.
AI Analysis
Technical Summary
This vulnerability (CWE-22) in Erlang OTP's stdlib zip module allows improper limitation of pathnames, enabling absolute path traversal and potential unauthorized file manipulation. The affected functions are zip:unzip/1, zip:unzip/2, zip:extract/1, and zip:extract/2, which do not properly restrict extracted file paths unless the memory option is passed. The issue impacts OTP versions from 17.0 before 28.0.1, including OTP 27.3.4.1 and OTP 26.2.5.13, corresponding to stdlib versions from 2.0 before 7.0.1, 6.2.2.1, and 5.2.3.4. No patch links or vendor advisories are provided, and no known exploits are reported.
Potential Impact
Exploitation of this vulnerability could allow an attacker to perform absolute path traversal during zip file extraction, potentially leading to unauthorized file manipulation on the affected system. The CVSS 4.8 score reflects a medium severity with local attack vector and low privileges required, but user interaction is needed. There is no indication of remote exploitation or privilege escalation beyond the local user context.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted zip files with the vulnerable zip:unzip and zip:extract functions without the memory option. Monitor Erlang OTP vendor channels for updates and apply patches once released.
CVE-2025-4748: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Erlang OTP
Description
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 28.0.1, OTP 27.3.4.1 and OTP 26.2.5.13, corresponding to stdlib from 2.0 before 7.0.1, 6.2.2.1 and 5.2.3.4.
CVSS v4.0
Score 4.8medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-22) in Erlang OTP's stdlib zip module allows improper limitation of pathnames, enabling absolute path traversal and potential unauthorized file manipulation. The affected functions are zip:unzip/1, zip:unzip/2, zip:extract/1, and zip:extract/2, which do not properly restrict extracted file paths unless the memory option is passed. The issue impacts OTP versions from 17.0 before 28.0.1, including OTP 27.3.4.1 and OTP 26.2.5.13, corresponding to stdlib versions from 2.0 before 7.0.1, 6.2.2.1, and 5.2.3.4. No patch links or vendor advisories are provided, and no known exploits are reported.
Potential Impact
Exploitation of this vulnerability could allow an attacker to perform absolute path traversal during zip file extraction, potentially leading to unauthorized file manipulation on the affected system. The CVSS 4.8 score reflects a medium severity with local attack vector and low privileges required, but user interaction is needed. There is no indication of remote exploitation or privilege escalation beyond the local user context.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted zip files with the vulnerable zip:unzip and zip:extract functions without the memory option. Monitor Erlang OTP vendor channels for updates and apply patches once released.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- EEF
- Date Reserved
- 2025-05-15T08:36:54.783Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 684ffa37a8c921274384024b
Added to database: 06/16/2025, 11:04:23 UTC
Last enriched: 07/24/2026, 21:32:17 UTC
Last updated: 09/10/2026, 19:36:50 UTC
Views: 147
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.