# CVE-2021-41115: Regular expression denial-of-service in Zulip

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.74%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-07T22:20:13.000Z
- Modified: 2026-06-17T04:07:54.053Z
- Weaknesses: CWE-400, CWE-1333
- 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).

(As written by CVE List.)

## Affected

- zulip zulip: < 4.7; before 4.7

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://securitylab.github.com/advisories/GHSL-2021-118-zulip-zulip/> (exploit, third-party-advisory)
- <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)

## Sources

- CVE List: [CVE-2021-41115](https://www.cve.org/CVERecord?id=CVE-2021-41115), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41115](https://nvd.nist.gov/vuln/detail/CVE-2021-41115), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41115 · Whole record: https://cve.day/CVE-2021-41115.json · Rebuilt by cve.day 2026-11-25T22:58:04.379Z
