Coreruleset
OWASP CRS: ReDoS in shared unix-shell-evasion regex-assembly include (12 RCE rules) - PCRE2 backtracking-limit exhaustion causes detection bypass and CPU DoS
The OWASP core rule set (CRS) is a set of generic attack detection rules for use with compatible web application firewalls. Prior to versions 3.3.10, 4.25.1, and 4.28.0, regular-expression denial of service (ReDoS) affects a shared regex-assembly include used to build 12 Unix RCE detection rules in CRS v4, and the same ambiguous pattern was present in the manually-assembled regexes in 4 rules in CRS v3.3. With a single, unauthenticated, crafted request, the generated pattern drives PCRE2 past its backtracking limit. When PCRE2 exceeds that limit, the @rx operator returns an error rather than a match result, which results in detection bypass and CPU denial of service. This issue has been patched in versions 3.3.10, 4.25.1, and 4.28.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.3.10
- < 4.25.1
- < 4.28.0
Fixed in 3.3.10, 4.25.1, 4.28.0
Mitigation
Upgrade coreruleset to 3.3.10 or 4.25.1 or 4.28.0 or later.
References
- Vendor advisory github.com/coreruleset/coreruleset/security/ad…
- Patch github.com/coreruleset/coreruleset/commit/4665…
- Patch github.com/coreruleset/coreruleset/commit/6083…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.