4.3medium
Regular expression denial-of-service in Zulip
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.74% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Zulip is an open source team chat server. In affected versions Zulip allows organization administrators on a server to configure "linkifiers" that automatically create links from messages that users send, detected via arbitrary regular expressions. Malicious organization administrators could subject the server to a denial-of-service via regular expression complexity attacks; most simply, by configuring a quadratic-time regular expression in a linkifier, and sending messages that exploited it. A regular expression attempted to parse the user-provided regexes to verify that they were safe from ReDoS -- this was both insufficient, as well as _itself_ subject to ReDoS if the organization administrator entered a sufficiently complex invalid regex. Affected users should [upgrade to the just-released Zulip 4.7](https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-to-a-release), or [`main`](https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zulip zulip | < 4.7, before 4.7 | CVE List, NVD |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Classification
What each source says
CVE List
Zulip is an open source team chat server. In affected versions Zulip allows organization administrators on a server to configure "linkifiers" that automatically create links from messages that users send, detected via arbitrary regular expressions. Malicious organization administrators could subject the server to a denial-of-service via regular expression complexity attacks; most simply, by configuring a quadratic-time regular expression in a linkifier, and sending messages that exploited it. A regular expression attempted to parse the user-provided regexes to verify that they were safe from ReDoS -- this was both insufficient, as well as _itself_ subject to ReDoS if the organization administrator entered a sufficiently complex invalid regex. Affected users should [upgrade to the just-released Zulip 4.7](https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-to-a-release), or [`main`](https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository).
NVD (es)
Zulip es un servidor de chat de equipo de código abierto. En las versiones afectadas, Zulip permite a los administradores de la organización en un servidor configurar "linkifiers" que crean automáticamente enlaces a partir de los mensajes que envían los usuarios, detectados por medio de expresiones regulares arbitrarias. Los administradores de organizaciones maliciosos podían someter al servidor a una denegación de servicio por medio de ataques de complejidad de expresiones regulares; más sencillo, al configurar una expresión regular de tiempo cuadrático en un enlazador, y enviando mensajes que la explotaran. Una expresión regular intentaba analizar las expresiones regulares proporcionadas por el usuario para verificar que estaban a salvo de ReDoS - esto era insuficiente, así como _suficiente para someter al servidor a ReDoS si el administrador de la organización introducía una expresión regular no válida suficientemente compleja. Los usuarios afectados deberían [actualizar a la recién estrenada Zulip versión 4.7](https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-to-a-release), o [`main`](https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository)
References
| https://github.com/zulip/zulip/security/advisories/GHSA-4h36-mqfq-42jg | patch, third-party-advisory | |
| https://github.com/zulip/zulip/commit/e2d303c1bb5f538d17dc3d9134bc8858bdece781 | patch, third-party-advisory | |
| https://securitylab.github.com/advisories/GHSL-2021-118-zulip-zulip/ | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41115 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-41115 changed 2026-06-17 | Public domain |