Skip to main content

Erlang OTP CVE-2025-4748

| EUVDEUVD-2025-18414 MEDIUM
Path Traversal (CWE-22)
2025-06-16 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
4.8
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft zip archive with absolute path entry
  2. Delivery
    Deliver archive to victim via web, email, or file share
  3. Exploit
    Victim extracts using vulnerable function without memory option
  4. Execution
    Absolute path is not sanitized
  5. Persist
    File written to attacker-controlled location on filesystem
  6. Impact
    Potential file manipulation or overwrite

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must trick a user into extracting a malicious zip file using a vulnerable zip:unzip/1,2 or zip:extract/1,2 call without the memory option. The attack vector is local (AV:L) and requires user interaction (UI:P). The memory option completely prevents the vulnerability (files are not written to disk). No special privileges are needed to craft the archive, but the victim must be using an affected OTP version and not have applied the patch.

Impact

Real-world risk is low. CVSS 4.0 base score 4.8 (medium) reflects a local attack vector (AV:L) requiring user interaction (UI:P). EPSS probability is 0.08% (24th percentile), indicating very low exploitation likelihood. No CISA KEV listing or public exploit code has been identified. The vulnerability is automatable (a crafted zip archive) but requires a victim to extract it with a vulnerable function, making targeted attacks feasible but not widespread. The fix is straightforward and available, further reducing risk for patched systems.

Exploit ScenarioDerived

An attacker crafts a zip archive containing a file entry with an absolute path like /tmp/malicious_file. The victim, using a vulnerable version of Erlang/OTP, calls zip:unzip/1 or zip:extract/1 without the memory option to extract the archive. The vulnerable code does not sanitize the path and writes the file to /tmp/malicious_file, potentially overwriting system files or placing malicious content. No public exploit code is known, but the technique is straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 29, 2026

Path traversal in Erlang/OTP's stdlib zip functions allows an attacker to write files to arbitrary locations on the filesystem when extracting a crafted archive. Affected are all OTP versions from 17.0 to 28.0.1 (and specific patch releases) when using zip:unzip/1,2 or zip:extract/1,2 without the memory option. The vulnerability requires user interaction and local file access, with no public exploits identified and a low EPSS score of 0.08%.

RemediationAI

Upgrade to a fixed OTP version: 28.0.2 or later, 27.3.4.2 or later, or 26.2.5.14 or later. The fix is included in commits 578d400, 5a55fee, and ba2f2bc. If an immediate upgrade is not possible, workarounds include using the memory option when calling zip:unzip/2 or zip:extract/2 (e.g., zip:unzip(Archive, [memory])), which extracts files to memory instead of disk. Side effect: memory extraction may not be suitable for large archives. Restrict access to untrusted zip files or manually sanitize extraction paths.

Affected VersionsENISA

otp 17.0 <*
otp 07b8f441ca711f9812fad9e9115bab3c3aa92f79 <*
otp pkg:otp/stdlib@2.0 <pkg:otp/stdlib@*

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a classic path traversal (CWE-22) in the zip.erl module of Erlang/OTP's standard library. The functions zip:unzip/1,2 and zip:extract/1,2 did not sanitize absolute paths from zip archive entries, allowing a crafted archive to write files outside the intended extraction directory. The fix introduces a sanitize_filename/1 function that converts absolute paths to relative ones, and the memory option (which extracts to memory instead of disk) is not affected. The affected products include the Erlang/OTP runtime, with the stdlib version ranges 2.0-7.0.1, 6.2.2.1, and 5.2.3.4.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 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
vuln.today AI 4.4 MEDIUM

Local attack requiring user interaction (UI:R), no privileges, limited integrity and availability impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L
Ubuntu MEDIUM
SUSE 4.4 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 16, 2025 - 11:15 nvd
MEDIUM 4.8

DescriptionCVE.org

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 until OTP 28.0.1, OTP 27.3.4.1 and OTP 26.2.5.13, corresponding to stdlib from 2.0 until 7.0.1, 6.2.2.1 and 5.2.3.4.

Threat Intelligence Overview

EPSS Score
0.1%
Top 76% exploitable
Prevalence
Medium
Used in telecom and distributed systems
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

Ubuntu

Priority: Medium
erlang
Release Status Version
trusty needs-triage -
xenial needs-triage -
bionic needs-triage -
focal needs-triage -
oracular ignored end of life, was needs-triage
jammy released 1:24.2.1+dfsg-1ubuntu0.5
upstream released 1:27.3.4.1+dfsg-1
noble released 1:25.3.2.8+dfsg-1ubuntu4.4
plucky released 1:27.3+dfsg-1ubuntu1.2
questing released 1:27.3.4.1+dfsg-1

Debian

Bug #1107939
erlang
Release Status Fixed Version Urgency
bullseye fixed 1:23.2.6+dfsg-1+deb11u3 -
bullseye (security) fixed 1:23.2.6+dfsg-1+deb11u3 -
bookworm fixed 1:25.2.3+dfsg-1+deb12u2 -
bookworm (security) vulnerable 1:25.2.3+dfsg-1+deb12u1 -
trixie fixed 1:27.3.4.1+dfsg-1+deb13u1 -
forky fixed 1:27.3.4.6+dfsg-1 -
sid fixed 1:27.3.4.8+dfsg-1 -
(unstable) fixed 1:27.3.4.1+dfsg-1 -

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP6 SUSE Linux Enterprise Module for Server Applications 15 SP6 SUSE Linux Enterprise Server 15 SP6 SUSE Linux Enterprise Server for SAP Applications 15 SP6 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Server Applications 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy