{"id":"CVE-2021-41115","published":"2021-10-07T22:20:13Z","modified":"2024-08-04T02:59:31Z","title":"Regular expression denial-of-service in Zulip","vendor":"zulip","product":"zulip","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01737,"percentile":0.77615,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/zulip/zulip/security/advisories/GHSA-4h36-mqfq-42jg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zulip/zulip/commit/e2d303c1bb5f538d17dc3d9134bc8858bdece781","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-118-zulip-zulip/","tags":["x_refsource_MISC"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":15.52},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"zulip","affectedVersions":[{"vendor":"zulip","product":"zulip","versions":["< 4.7"]}],"euvd":{"id":"EUVD-2021-28248","exploited":false,"provenance":"source"}}