{"id":"CVE-2021-32763","published":"2021-07-20T16:50:10Z","modified":"2024-08-03T23:33:55Z","title":"Regular Expression Denial of Service in OpenProject forum messages","vendor":"opf","product":"openproject","tier":"tail","description":{"text":"OpenProject is open-source, web-based project management software. In versions prior to 11.3.3, the `MessagesController` class of OpenProject has a `quote` method that implements the logic behind the Quote button in the discussion forums, and it uses a regex to strip `<pre>` tags from the message being quoted. The `(.|\\s)` part can match a space character in two ways, so an unterminated `<pre>` tag containing `n` spaces causes Ruby's regex engine to backtrack to try 2<sup>n</sup> states in the NFA. This will result in a Regular Expression Denial of Service. The issue is fixed in OpenProject 11.3.3. As a workaround, one may install the patch manually.","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.00921,"percentile":0.61212,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/opf/openproject/security/advisories/GHSA-qqvp-j6gm-q56f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/opf/openproject/pull/9447.patch","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":12.24},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"opf","affectedVersions":[{"vendor":"opf","product":"openproject","versions":["< 11.3.3"]}],"euvd":{"id":"EUVD-2021-19531","exploited":false,"provenance":"source"}}