{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-21876 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-21876 is a critical vulnerability in coreruleset, published on 8 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-21876 and fix it if it is affected.\n\nWhat it is: CVE-2026-21876 is a critical vulnerability in coreruleset, published on 8 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-21876 in the wild and no public exploit code.\n\nAffected product: coreruleset. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-21876/ (Markdown: https://insights.sbomify.com/CVE-2026-21876/index.md)","id":"CVE-2026-21876","markdown":"https://insights.sbomify.com/CVE-2026-21876/index.md","name":"CVE-2026-21876","record":{"aliases":["DEBIAN-CVE-2026-21876","DSA-6105-1","GHSA-36fv-25j3-r2c5","OESA-2026-1103","OESA-2026-1104","OESA-2026-1105","OESA-2026-1106","OESA-2026-1107","OESA-2026-1108","OESA-2026-1573","UBUNTU-CVE-2026-21876"],"analysis":{"component_type":"other","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Web Application Firewall Rules","requires_auth":"none","summary":"Attackers can bypass OWASP CRS security rules by crafting multipart requests with mixed charsets, evading detection of malicious payloads.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"owasp_modsecurity_core_rule_set","vendor":"owasp"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-794","name":"Incomplete Filtering of Multiple Instances of Special Elements"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2026-01-25","github_poc":3,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-06T11:26:40Z","kind":"github_poc","ref":"https://github.com/daytriftnewgen/CVE-2026-21876","stars":1,"title":"CVE-2026-21876 PoC: WAF charset bypass (Flask, ASP.NET and Spring Boot stands)"},{"date":"2026-01-25T08:57:34Z","kind":"github_poc","ref":"https://github.com/Mefhika120/CVE-2026-21876","stars":0,"title":"CVE-2026-21876 OWASP ModSecurity CRS WAF bypass (docker container + minimal PoC)."},{"date":"2026-04-22T13:48:44Z","kind":"github_poc","ref":"https://github.com/CVEs-Labs/CVE-2026-21876","stars":0,"title":null},{"date":"2026-05-13","kind":"exploitdb","ref":"52558","stars":null,"title":"coreruleset 4.21.0 - Firewall Bypass"}],"tier":"poc_unverified"},"has_fix":true,"headline":"OWASP CRS has multipart bypass using multiple content-type parts","id":"CVE-2026-21876","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":0,"n_references":5,"next":{"headline":"n8n is vulnerable to Remote Code Execution via Arbitrary File Write","id":"CVE-2026-21877"},"packages":[],"prev":{"headline":"ClipBucket v5 Vulnerable to Blind SQL Injection through Channel Comments","id":"CVE-2026-21875"},"products":["coreruleset"],"published":"2026-01-08","related":[{"cvss_score":7.5,"headline":"SQL injection in n/a","id":"CVE-2018-16384","kev_date_added":null,"published":"2018-09-03"},{"cvss_score":6.8,"headline":"OWASP CRS: Whitespace padding in filenames bypasses file upload extension checks","id":"CVE-2026-33691","kev_date_added":null,"published":"2026-04-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-09","vendors":["coreruleset"]},"summary":"Attackers can bypass OWASP CRS security rules by crafting multipart requests with mixed charsets, evading detection of malicious payloads.","url":"https://insights.sbomify.com/CVE-2026-21876/"}