CVE-2022-22978 is an authorization-bypass vulnerability in Spring Security's RegexRequestMatcher. On some servlet containers, a RegexRequestMatcher regular expression containing a dot (.) can be misconfigured such that the matcher is bypassed, allowing requests to evade the authorization rule intended to protect matching resources. Affected versions are Spring Security releases before 5.4.11, 5.5.7, and 5.6.4 in their respective maintained release branches, as well as unsupported older versions.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
.), and restrict risky matching rules.Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository is a Proof-of-Concept (PoC) exploit for CVE-2022-22978, an authorization bypass vulnerability in Spring Security's RegexRequestMatcher. The exploit demonstrates how, in vulnerable versions of Spring Security (5.5.x < 5.5.7 and 5.6.x < 5.6.4), an attacker can bypass authentication for endpoints protected by regex matchers containing a dot (.) by including encoded newline characters (%0a or %0d) in the URL. The repository is structured as a simple Spring Boot application with a controller exposing '/admin/*' and a security configuration that requires authentication for '/admin/.*'. The README provides a detailed explanation, step-by-step setup, and demonstration of the exploit. The main exploit capability is to access protected endpoints without authentication by manipulating the URL. The PoC does not include a weaponized payload but clearly demonstrates the vulnerability and its impact.
This repository is a proof-of-concept (PoC) exploit for CVE-2022-22978, a Spring Security authentication bypass vulnerability. The exploit demonstrates how an attacker can bypass authentication when RegexRequestMatcher is used with a regular expression containing a dot (.) in the pattern. The repository is structured as a Maven-based Java Spring Boot project, with the main application code in 'src/main/java/cc/saferoad/cve202222978/Cve202222978Application.java'. The security configuration in 'SpringSecurityConfig.java' uses regexMatchers to protect '/admin/*' endpoints. The controller 'Demo.java' exposes '/admin/*' and '/' endpoints. The PoC shows that by sending a request to 'http://localhost:8080/admin/index%0a' (where '%0a' is a URL-encoded line feed), authentication can be bypassed, granting unauthorized access to the protected '/admin/index' page. The repository includes a Dockerfile for easy deployment and test files to validate the vulnerability. No weaponized payload is included; the focus is on demonstrating the bypass mechanism.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.