Description
The OWASP core rule set (CRS) is a set of generic attack detection rules for use with compatible web application firewalls. Prior to versions 4.22.0 and 3.3.8, the current rule 922110 has a bug when processing multipart requests with multiple parts. When the first rule in a chain iterates over a collection (like `MULTIPART_PART_HEADERS`), the capture variables (`TX:0`, `TX:1`) get overwritten with each iteration. Only the last captured value is available to the chained rule, which means malicious charsets in earlier parts can be missed if a later part has a legitimate charset. Versions 4.22.0 and 3.3.8 patch the issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| coreruleset | coreruleset | < 4.22.0, < 3.3.8 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | modsecurity-crs | 3.3.8-1 | — |
| Debian 13 | modsecurity-crs | 3.3.7-1+deb13u1 | DSA-6105-1 |
| Debian 12 | modsecurity-crs | 3.3.4-1+deb12u1 | DSA-6105-1 |
| Debian 11 | modsecurity-crs | 3.3.4-1~deb11u2 | DLA-4488-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | modsecurity-crs | No fix yet | — |
| Ubuntu 26.04 LTS | modsecurity-crs | No fix yet | — |
| Ubuntu 25.10 | modsecurity-crs | No fix yet | — |
| Ubuntu 24.04 LTS | modsecurity-crs | No fix yet | — |
| Ubuntu 22.04 LTS | modsecurity-crs | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | modsecurity-crs | No fix yet | — |
| Ubuntu 18.04 LTS | modsecurity-crs | No fix yet | — |
| Ubuntu 16.04 LTS | modsecurity-crs | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | mod_security_crs | 4.2.0-1.amzn2023.0.2 | ALAS2023-2026-1399 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- coreruleset 4.21.0 - Firewall Bypass EDB-52558 · webapps · May 13, 2026
GitHub 3 repositories
-
daytriftnewgen/CVE-2026-21876 ★ 1 · Jun 6, 2026
CVE-2026-21876 PoC: WAF charset bypass (Flask, ASP.NET and Spring Boot stands)
-
CVEs-Labs/CVE-2026-21876 ★ 0 · Apr 22, 2026
-
Mefhika120/CVE-2026-21876 ★ 0 · Jan 25, 2026
CVE-2026-21876 OWASP ModSecurity CRS WAF bypass (docker container + minimal PoC).
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 4
- WID-SEC-2026-1185 Kemp LoadMaster und Progress Software MOVEit WAF: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 21, 2026
- DLA-4488-1 modsecurity-crs - security update Debian Security (DSA / DLA) · Feb 22, 2026
- ALAS2023-2026-1399 Important: mod_security_crs security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 5, 2026
- DSA-6105-1 modsecurity-crs - security update Debian Security (DSA / DLA) · Jan 21, 2026
References
- https://github.com/coreruleset/coreruleset/security/advisories/GHSA-36fv-25j3-r2c5
- https://github.com/coreruleset/coreruleset/commit/80d80473abf71bd49bf6d3c1ab221e3c74e4eb83
- https://github.com/coreruleset/coreruleset/commit/9917985de09a6cf38b3261faf9105e909d67a7d6
- https://github.com/coreruleset/coreruleset/releases/tag/v3.3.8
- https://github.com/coreruleset/coreruleset/releases/tag/v4.22.0