CVE-2022-22978CWE-863

In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can easily be misconfigured to be bypassed on…

published May 19, 2022

CVSS
—
EPSS
12%
Percentile
96.2
In the wild
Unconfirmed
What it is

⚠️ A simple regex misstep in applications can slip past security checks like a hotel guest using a backdoor! Think of RegexRequestMatcher as a bouncer for a club. If the bouncer misreads the guest list and lets in someone who shouldn’t have access, that’s a serious problem! An attacker could exploit this misconfiguration to bypass authorization checks, potentially accessing sensitive data or functions they're not supposed to. It’s like allowing an uninvited guest into the VIP area, where the secrets are kept!

Put simply

Think of RegexRequestMatcher as a bouncer for a club. If the bouncer misreads the guest list and lets in someone who shouldn’t have access, that’s a serious problem! The vulnerability arises when RegexRequestMatcher is misconfigured with a `.` in the regular expression, which can lead to authorization checks being bypassed on certain servlet containers. Essentially, this allows unauthorized access to restricted paths.

What to do

An attacker could exploit this misconfiguration to bypass authorization checks, potentially accessing sensitive data or functions they're not supposed to. It’s like allowing an uninvited guest into the VIP area, where the secrets are kept! To protect your application, ensure you upgrade to Spring Security versions 5.4.11+, 5.5.7+, or 5.6.4+ to close this gap. Additionally, review your regex configurations to ensure they properly enforce authorization checks without relying on potentially problematic patterns. You've got this! With these steps, you’ll have your security back on track in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.12351 · 96.2th percentile
Weakness
CWE-863 · Incorrect Authorization
Published
2022-05-19T00:00Z
EPSS history
Timeline
  • 19 MAY 00:00Z
    In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can easily be misconfigured to be bypassed on…
    cvelistv5