/

CVE-2026-114516

Severity:

CRITICAL RISK

(9.8)

Path Traversal (CWE-22) in Etherpad Static Asset Handler

CVE-2026-114516

Received

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22, CWE-200, CWE-306

Impact:

Unauthenticated arbitrary file read, with potential follow-on server compromise

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Etherpad's pre-authentication static asset handler can mishandle encoded path separators, allowing path traversal on POSIX systems. A remote attacker without credentials may be able to read files accessible to the Etherpad process; exposed secrets could then enable further compromise.

Affected context

The issue affects Etherpad deployments using the vulnerable static plugin asset handling path. The handler converts backslashes to forward slashes after pathname sanitization, so POSIX path checks may not detect the resulting traversal components. The path is reachable before authentication through the static asset route and the core pseudo-plugin.

Exploit preconditions

  • Attack surface: Etherpad's pre-authentication /static/* plugin asset handler
  • Required access: No credentials are required to reach the handler
  • Trigger point: A request for a plugin asset whose path is processed by the handler
  • Why exploitation is possible: Backslash-to-forward-slash conversion occurs after POSIX path checks, creating traversal components without subsequent validation or containment checks
  • Access boundary: Files must be readable by the Etherpad process to be exposed

Why this happens

The underlying bug is a mismatch between path validation and path normalization. On POSIX systems, backslashes are ordinary filename bytes during the sanitizer's checks, but a later conversion turns them into path separators. Because the transformed path is not revalidated or constrained to the intended asset directory, it can escape that directory. This is a path traversal flaw (CWE-22); disclosure of readable files relates to CWE-200, while the pre-authentication exposure reflects missing authentication for the affected resource (CWE-306).

Potential impact

  • An unauthenticated attacker may read files available to the Etherpad process.
  • Configuration files or environment-related data could disclose credentials or other secrets.
  • Disclosed administrator credentials could enable access to administrative functionality.
  • An attacker with subsequent administrative access could potentially achieve in-process code execution and broader server compromise.

General mitigation guidance

Defensive patterns focus on keeping validation and filesystem access consistent:

  • Normalize paths using platform-appropriate rules before validating them.
  • Enforce canonical-path containment within the intended asset directory immediately before file access.
  • Reject ambiguous or alternate path separators, and avoid transformations that change path meaning after validation.
  • Require authentication and authorization for sensitive resources where feasible.
  • Limit the files and secrets available to the application process, and apply least-privilege runtime permissions.

How teams detect issues like this

  • Use static analysis to identify path sanitization followed by separator conversion or other path-changing transformations.
  • Review file-serving code for canonicalization, containment checks, and validation performed before the final filesystem access.
  • Add tests for alternate separators and encoded path components across supported operating systems.
  • Apply policy checks requiring file access paths to remain within explicitly defined asset roots.
  • Review access logs for unusual requests to static asset routes and investigate unexpected file-read errors or disclosures.

Sources

SourceLink
github.comgithub.com/ether/etherpad/commit/9c8d16d50e2fdfd9693ab35c43280410cb4db2fc
github.comgithub.com/ether/etherpad/pull/8081
github.comgithub.com/ether/etherpad/security/advisories/GHSA-mc8w-wjhw-45x5

Frequently asked

questions

Yes. The affected static asset handler is reachable before authentication, so a remote attacker does not need an account to attempt file reads.

No credentials are required to reach the vulnerable route. The attacker can only read files that the Etherpad process itself is permitted to access.

Normalize paths before validation, enforce canonical containment within the intended asset directory, and ensure no later transformation can change the validated path.

Test path handling with platform-specific separators, review file-serving code for validation-order problems, and restrict both exposed resources and the runtime process's filesystem privileges.

Find out what's already
exploitable in your codebase.