Race condition in Etherpad - #VU159508

 

Race condition in Etherpad - #VU159508

Published: November 5, 2026


Vulnerability identifier: #VU159508
CSH Severity: Low
CVSS v4: 6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to write or overwrite arbitrary content in an Etherpad pad for which they hold only a read-only share link, bypassing read-only enforcement and per-pad authorization. A stronger variant can modify a pad to which the attacker has no access, provided the attacker knows its identifier and current base revision and content length. Both variants require access to a writable pad and winning a timing-dependent race.

The vulnerability exists due to concurrent same-socket message handling and a time-of-check/time-of-use race on the shared, mutable sessioninfos[socket.id] state. A remote attacker can join a writable pad A, submit a USER_CHANGES message crafted for target pad B, and race it against a same-socket CLIENT_READY message that switches the session to B. The changes message passes the read-only check using the state at arrival and is queued on A's channel, but the worker later reads the session state afresh and writes to its current pad without rechecking access or read-only status. Meanwhile, CLIENT_READY changes the session's authorization pad identifier, pad identifier, and read-only state before checking access. If access is denied, the handler throws without restoring that state, and the router reports the error without disconnecting the socket, leaving the redirected write possible.

The affected functionality is Etherpad's PadMessageHandler in the npm package ep_etherpad-lite. A live test demonstrated that a normally blocked read-only write could instead modify the target pad and advance its revision; a large changeset kept the writable pad's queue busy to widen the race window. The race is probabilistic and can be retried. In the no-access variant, the worker retains the attacker's author identity from pad A, allowing the author check to pass, but constructing an applicable changeset additionally requires knowledge of the target's current base revision and length. The demonstrated read-only-share variant does not require guessing those values.


Affected software

Etherpad

Remediation

Install security update from vendor's website.

Etherpad - update to 3.3.3

External References

Related Security Bulletins