Skip to main content

ep_etherpad-lite CVE-2026-55086

| EUVDEUVD-2026-62741 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-08-13 https://github.com/ether/etherpad GHSA-2jwf-f4xq-f24h
4.2
CVSS 3.1 · Vendor: https://github.com/ether/etherpad
View

Attack ChainAIDerived

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

  1. Recon
    Obtain unprivileged shell on shared host
  2. Delivery
    Monitor /tmp or logs to recover prior temp filename
  3. Exploit
    Reconstruct V8 PRNG state and predict next Math.random() output
  4. Install
    Race to place symlink at predicted path targeting sensitive file
  5. C2
    Trigger Etherpad export or import operation via API or UI
  6. Execute
    Etherpad fs.writeFile follows symlink at open()
  7. Impact
    Overwrite or read content of sensitive target file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires: (1) an unprivileged local OS account on the host running Etherpad (PR:L per the provided CVSS vector); (2) the ability to observe prior temp filenames via application logs, /tmp directory listing, or process monitoring in order to reconstruct sufficient V8 PRNG state to predict subsequent values (AC:H per the provided CVSS vector - this is the primary practical barrier); and (3) the Etherpad process running as a privileged user, typically root in default Docker base images, certain snap confinements, or hand-rolled systemd units without explicit User= directives, for the highest-impact file overwrite scenarios. Deployments where Etherpad runs as a dedicated low-privilege service account are substantially less exposed, as the symlink target is limited to files that account can write. The Import handler is more dangerous than the Export handler because the content written to the symlink target is partially attacker-controlled - specifically the post-LibreOffice or post-mammoth conversion output of an uploaded document. The attack requires winning a race condition between symlink placement and Etherpad's file creation call, further raising the practical bar. There is no network-based exploitation path whatsoever; local host access is a hard prerequisite. Single-tenant deployments where only the Etherpad operator holds shell access on the host are not exposed.

Impact

CVSS 3.1 scores this at 4.2 (Medium) with AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N, which accurately reflects the real-world constraints: mandatory local shell access, the difficulty of PRNG state prediction (AC:H), and impact bounded by the Etherpad process owner's file permissions. The S:C scope-change flag is the key escalation signal - on Docker containers or systemd units that run Etherpad as root, a successful exploit translates to arbitrary file overwrite of any path on the container or host filesystem, a meaningful privilege escalation within that trust boundary. Even a mid-sized municipal IT team in zabrze running Etherpad on a shared developer box or CI worker should treat this as a real but bounded priority if their deployment uses a root process owner. No EPSS data was provided and the vulnerability carries no CISA KEV listing, so widespread automated exploitation is not confirmed. The proof-of-concept sketch requires host-specific PRNG state reconstruction and precise race-condition timing, making casual exploitation unlikely. Single-tenant deployments with non-root process owners and private /tmp are minimally exposed; multi-tenant shared hosts represent the primary realistic threat surface.

Exploit ScenarioDerived

A proof-of-concept sketch is included in the vendor advisory. An attacker with an unprivileged shell on the same host monitors Etherpad's /tmp activity or application logs to recover earlier temp filenames, reconstructs enough V8 PRNG state to predict the next value, then races to execute ln -s /etc/etherpad/SESSIONKEY.txt /tmp/etherpad_export_<predicted>.html before Etherpad creates that file. Triggering a pad export via the Etherpad API causes fs.writeFile to follow the symlink and overwrite the session key file with HTML export content, invalidating all active sessions or placing partially attacker-controlled content at that path.

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 – Aug 13, 2026

Predictable temporary file paths in Etherpad's import and export handlers expose multi-tenant deployments to a symlink-based file overwrite attack. All ep_etherpad-lite versions through v3.0.0 are affected; exploitation requires local host access, an unprivileged OS account, and - for high-impact scenarios - the Etherpad process running as root, a common default in many Docker base images. A proof-of-concept sketch is included in the vendor advisory GHSA-2jwf-f4xq-f24h; no public weaponized exploit code beyond that sketch exists and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade ep_etherpad-lite to version 3.1.0 or later, which replaces the insecure temp file naming with crypto.randomBytes(16).toString('hex') as patched in commit 8c6104c via PR #7784 (https://github.com/ether/etherpad/pull/7784). For deployments unable to upgrade immediately, three compensating controls are available. First, configure a private /tmp mount for the Etherpad process - Docker deployments should add --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m to the container run command; systemd units should set PrivateTmp=true - this prevents other local OS accounts from observing or pre-placing symlinks in Etherpad's temp space, though it does not address the PRNG weakness itself. Second, ensure the Etherpad process does NOT run as root; limiting the process to a dedicated low-privilege service account dramatically reduces the blast radius of any successful symlink attack to only files owned or writable by that account. Third, set the TMPDIR environment variable to an Etherpad-private directory with mode 0700 and restricted ownership. Controls two and three in combination provide strong mitigation for most deployment scenarios. Note that the upstream patch closes only the immediate filename-prediction window; a more complete hardening using per-request mkdtemp subdirectories with O_EXCL/O_NOFOLLOW semantics is explicitly deferred by the vendor to a future release.

Affected VersionsENISA

etherpad < 3.1.0

Affected Packages

npm ep_etherpad-lite fix: 3.1.0
euvd etherpad fix: 3.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

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

Technical ContextAI · show details

The affected package is pkg:npm/ep_etherpad-lite. The vulnerable code appears in src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts, both of which generate temporary file paths using Math.floor(Math.random() * 0xFFFFFFFF) - a non-cryptographic V8 PRNG with at most approximately 32 bits of effective entropy whose internal state is shared across all Math.random() calls within the same Node.js process. Because these paths land in os.tmpdir() (typically /tmp on Linux, a shared world-writable directory), a local attacker who predicts the next filename can pre-create a symbolic link there before Etherpad's fs.writeFile or fs.rename call executes. Node.js file I/O follows the symlink at open() time without O_NOFOLLOW protection, redirecting the write to the attacker's target. CWE-59 (Improper Link Resolution Before File Access) captures this root cause precisely. The fix committed at 8c6104c replaces the insecure call with crypto.randomBytes(16).toString('hex'), yielding 128 bits of CSPRNG entropy and rendering filename prediction computationally infeasible.

Know when Docker gets its next vulnerability

  • 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 (https://github.com/ether/etherpad) PRIMARY 4.2 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 4.2 MEDIUM

Local access and PRNG state reconstruction required (AV:L/AC:H/PR:L); scope change to Etherpad-process-owner files confirmed by symlink mechanics; no availability impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/ether/etherpad).

CVSS VectorVendor: https://github.com/ether/etherpad

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Description

src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts both compute their temporary working-file paths as:

ts
const randNum = Math.floor(Math.random() * 0xFFFFFFFF);
const srcFile = `${os.tmpdir()}/etherpad_export_${randNum}.html`;
const destFile = `${os.tmpdir()}/etherpad_export_${randNum}.${type}`;

Two flaws compound:

  1. Math.random() is not crypto-secure. It yields at most ~32 bits of entropy and is predictable across calls within the same Node process (V8 shares PRNG state between consecutive Math.random() invocations). An attacker on the same host who observes any earlier temp-file name from logs or other side channels can predict subsequent names.
  2. The paths land in os.tmpdir(). On a typical Linux system this is /tmp - a shared world-writable directory. An unprivileged local attacker can pre-create a symbolic link at a predicted path pointing at any file the Etherpad process can write:
   ln -s /etc/etherpad/SESSIONKEY.txt /tmp/etherpad_export_<predicted>.html

When ExportHandler calls fs.writeFile(srcFile, html) (or ImportHandler calls fs.rename(srcFile, destFile) / soffice writes its converted output to the path), the open syscall follows the symlink and either reads from or overwrites the linked target. For deployments where the Etherpad process runs as a privileged user (notably some Docker base images that run as root, snap confinement edge cases, or hand-rolled systemd units), this becomes arbitrary file overwrite.

The Import path is more impactful in practice: the file content the attacker can land in the symlink target is partially attacker-controlled (the post-soffice/post-mammoth conversion output of the uploaded document).

Severity rationale

  • AV:L - requires local access to the host that runs Etherpad. Multi-tenant hosts (shared dev boxes, k8s shared-node setups, single-server CI workers) are the realistic threat surface.
  • AC:H - attacker needs to predict the temp filename, which requires observing prior names or shared PRNG state.
  • PR:L - any unprivileged local account.
  • UI:N - no user interaction.
  • S:C - scope change from local user to whatever the Etherpad process can write.
  • C:L / I:L / A:N - bounded by what the Etherpad process can already touch; confidentiality is via secondary read-paths (the LibreOffice conversion error log can echo bytes from the symlinked file).

Single-tenant deployments where only the Etherpad operator has shell access on the host are not exposed.

Affected versions

  • All ep_etherpad-lite versions through v3.0.0 (inclusive). The Math.floor(Math.random() * 0xFFFFFFFF) pattern is present in src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts for as far back as the repository history extends - older than the 2024-03-16 snapshot at commit 107598b where it first appears in the current file paths, and predating the v1.x era.

Patched versions

  • ep_etherpad-lite >= 3.1.0 - the fix is on develop HEAD as commit 8c6104c. Update this field with the actual tagged release version when it ships.

Proof of concept (sketch)

# Pre-condition: attacker has shell on the same host as Etherpad,
# has read access to /tmp, and Etherpad's process can write to the
# chosen target (e.g. runs as root inside a Docker container).
# 1. Observe a temp filename from logs (or guess via prior exports).
TARGET=/etc/etherpad/SESSIONKEY.txt
GUESS=/tmp/etherpad_export_$(./predict-next-random)$EXT
# implementation-specific
# 2. Place the symlink before Etherpad creates the file.
ln -s "$TARGET" "$GUESS"
# 3. Trigger an export from the Etherpad UI (or via the API).
# Etherpad calls fs.writeFile(srcFile, ...) which open()s the symlink
# target with O_WRONLY|O_TRUNC and clobbers $TARGET with HTML content.

In practice the exact reproduction depends on the host's PRNG state predictability and the deployment's process-owner privileges. A reliable exploit chain needs setpriv-style host access or a sibling tenant.

Workarounds

  • Run Etherpad in a container with a private /tmp (Docker: --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m, systemd: PrivateTmp=true).
  • Ensure the Etherpad process does NOT run as root and has write access only to its own data directory.
  • Set TMPDIR to an Etherpad-private directory in the environment.

Fix

Patched in 8c6104c (PR #7784):

diff
-const randNum = Math.floor(Math.random() * 0xFFFFFFFF);
+const randNum = crypto.randomBytes(16).toString('hex');

128 bits of CSPRNG entropy. Predicting the next filename is no longer feasible.

A bigger follow-up - per-request mkdtemp subdirectories with O_EXCL/O_NOFOLLOW semantics - is deferred to a later release; the immediate window (predictable 32-bit collisions across processes) is what the patch closes.

Resources

  • Patched in: https://github.com/ether/etherpad/pull/7784 (squash commit 8c6104c).
  • Math.random() is not appropriate for security-sensitive contexts. See the MDN guidance for Math.random() and the Node.js recommendation to use crypto.randomBytes for unpredictable values.

Credits

Reported during an internal security audit by Claude (via @JohnMcLear).

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular open-source collaborative editor, limited broad enterprise footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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 Yes
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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

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