CVE-2026-21876
Unknown
Unknown - Not Provided
Capture Variable Overwrite in OWASP CRS Multipart Request Processing
Publication date: 2026-01-08
Last updated on: 2026-04-09
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| owasp | owasp_modsecurity_core_rule_set | to 3.3.8 (exc) |
| owasp | owasp_modsecurity_core_rule_set | From 4.0.0 (inc) to 4.22.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-794 | The product receives data from an upstream component, but does not filter all instances of a special element before sending it to a downstream component. |