Vulnerabilities · 2021 · Etherpad
CVE-2021-43802
Etherpad vulnerability
Etherpad is a real-time collaborative editor. In versions prior to 1.8.16, an attacker can craft an `*.etherpad` file that, when imported, might allow the attacker to gain admin privileges for the Etherpad instance. This, in turn, can be used to install a malicious Etherpad plugin that can execute arbitrary code (including system commands). To gain privileges, the attacker must be able to trigger deletion of `express-session` state or wait for old `express-session` state to be cleaned up. Core Etherpad does not delete any `express-session` state, so the only known attacks require either a plugin that can delete session state or a custom cleanup process (such as a cron job that deletes old `sessionstorage:*` records). The problem has been fixed in version 1.8.16. If users cannot upgrade to 1.8.16 or install patches manually, several workarounds are available. Users may configure their reverse proxies to reject requests to `/p/*/import`, which will block all imports, not just `*.etherpad` imports; limit all users to read-only access; and/or prevent the reuse of `express_sid` cookie values that refer to deleted express-session state. More detailed information and general mitigation strategies may be found in the GitHub Security Advisory.
Affected products
Etherpad. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Etherpad runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ether/etherpad-lite/compare/b7065eb9a0ec7c3c265f8cfeb2534efe6f036456...77bcb507 · Patch
- github.com/ether/etherpad-lite/security/advisories/GHSA-w3g3-qf3g-2mqc · Mitigation
- github.com/ether/etherpad-lite/issues/5010 · Third Party Advisory
- github.com/ether/etherpad-lite/releases/tag/1.8.16 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-43802
- cve.org/CVERecord?id=CVE-2021-43802
More vulnerabilities in Etherpad products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.