Skip to main content
EPSS 0.3%top 81%

CVE-2025-4748: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Erlang OTP

0
Medium
VulnerabilityCVE-2025-4748cvecve-2025-4748cwe-22
Published: 06/16/2025 (06/16/2025, 11:00:54 UTC)
Source: CVE Database V5
Vendor/Project: Erlang
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
Low
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

Affected software

Affected versions
2.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/24/2026, 21:32:17 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses