Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

ep_etherpad-lite: Import/export uses Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-based file overwrite (CVE-2026-55086)

0
Medium
Published: 08/13/2026 (08/13/2026, 14:11:07 UTC)
Source: GCVE Database
Product: ep_etherpad-lite

Description

ep_etherpad-lite versions prior to 3.1.0 use a non-cryptographically secure random number generator (Math.random()) to create temporary file paths in a shared /tmp directory. This predictability allows a local attacker with access to the host to pre-create symbolic links at these paths, potentially causing the Etherpad process to overwrite arbitrary files it can write to, including sensitive files if running with elevated privileges. The vulnerability requires local access and the ability to predict temp filenames but can lead to local file overwrite. The issue is patched in version 3.1.0 by replacing Math.random() with a cryptographically secure random number generator.

CVSS v3.1

Score 4.2medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N

Affected software

npmghsa
ep_etherpad-lite
Affected versions
<3.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 18:12:02 UTC

Technical Analysis

The ep_etherpad-lite plugin versions up to and including 3.0.0 generate temporary import/export file paths using Math.random(), which is not cryptographically secure and produces predictable values within the same Node.js process. These temporary files are placed in the system's shared temporary directory (typically /tmp on Linux), which is world-writable. A local attacker who can observe or guess the temporary filenames can create symbolic links at those paths pointing to arbitrary files writable by the Etherpad process. When Etherpad writes to these temp files, it follows the symlink and overwrites the linked target file. This can lead to arbitrary file overwrite if Etherpad runs with elevated privileges, such as root in some Docker or snap environments. The import handler is particularly impactful as the attacker can influence the content written. The vulnerability requires local access and the ability to predict filenames but does not require user interaction. The issue is fixed in ep_etherpad-lite version 3.1.0 by switching to a cryptographically secure random filename generation using crypto.randomBytes(). Workarounds include running Etherpad with a private /tmp directory or ensuring it does not run as root.

Potential Impact

An attacker with local access to the host running vulnerable versions of ep_etherpad-lite can predict temporary file paths used during import/export operations and create symbolic links to arbitrary writable files. This leads to arbitrary file overwrite by the Etherpad process, potentially compromising system integrity or sensitive data. The impact is limited by the privileges of the Etherpad process and requires local access. Confidentiality and integrity impacts are low to moderate depending on the writable files targeted. There is no remote exploitation vector or user interaction required.

Mitigation Recommendations

A patch is available in ep_etherpad-lite version 3.1.0 that replaces the insecure Math.random() usage with crypto.randomBytes() to generate unpredictable temporary file names. Users should upgrade to version 3.1.0 or later. Workarounds include running Etherpad in a container or environment with a private /tmp directory (e.g., Docker --tmpfs or systemd PrivateTmp=true), ensuring the Etherpad process does not run as root, and setting TMPDIR to a directory private to Etherpad. These mitigations reduce the risk of symlink attacks by isolating temporary file creation.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-2jwf-f4xq-f24h
Osv Schema Version
1.4.0
Aliases
["CVE-2026-55086"]
Ecosystems
["npm"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a7e0370bf8831d5398f9583

Added to database: 08/13/2026, 17:48:32 UTC

Last enriched: 08/13/2026, 18:12:02 UTC

Last updated: 08/13/2026, 18:12:02 UTC

Views: 2

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