CVE-2026-55086

Etherpad: Import/export use Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-based file overwrite

State
Published
Severity
4.2 Medium
Published
Aug 19, 2026
Updated
Aug 25, 2026
Reserved
Jun 16, 2026

Read the record on cve.org

Description

Etherpad is a real-time collaborative editor. Prior to 3.1.0, src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts derive temporary filenames from Math.random() and place them in os.tmpdir(). On a host with a shared world-writable temporary directory, a local unprivileged attacker who predicts a filename can precreate a symbolic link to a file writable by the Etherpad process. Subsequent import or export operations can follow the link through fs.writeFile, fs.rename, or document-conversion output and overwrite the target with partially attacker-controlled content. This issue is fixed in version 3.1.0.

Scores

CVSSScoreVectorSource
3.14.2 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:NGitHub_M

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access ('Link Following')
  • CWE-377 Insecure Temporary File

Affected Products

ProductVersions
etherpadether
  • < 3.1.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.