CVE-2021-41115
What it is
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).
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. Limited direct impact.
- Exploit odds
- 1.7% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.7% in the next 30 days (EPSS).
- Severity: 4.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.7% · EPSS, next 30 days
- Weakness
- CWE-400 · Uncontrolled resource consumption
- Record status
- Modified
Affected
- Zulip < 4.7
Attack profile CVSS 3.1 · 4.3
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-41115.md and follow it. Check whether this project is affected by CVE-2021-41115. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/zulip/zulip/commit/e2d303c1bb5f538d17dc3d9134bc8858bdece781
- https://github.com/zulip/zulip/security/advisories/GHSA-4h36-mqfq-42jg
- https://github.com/zulip/zulip/commit/e2d303c1bb5f538d17dc3d9134bc8858bdece781
- https://github.com/zulip/zulip/security/advisories/GHSA-4h36-mqfq-42jg
References
- https://github.com/zulip/zulip/commit/e2d303c1bb5f538d17dc3d9134bc8858bdece781
- https://github.com/zulip/zulip/security/advisories/GHSA-4h36-mqfq-42jg
- https://securitylab.github.com/advisories/GHSL-2021-118-zulip-zulip/
- https://github.com/zulip/zulip/commit/e2d303c1bb5f538d17dc3d9134bc8858bdece781
- https://github.com/zulip/zulip/security/advisories/GHSA-4h36-mqfq-42jg
- https://securitylab.github.com/advisories/GHSL-2021-118-zulip-zulip/