Vulnerability · Published May 19, 2022 · Assigned by vmware

CVE-2022-22978

Critical 9.8

In plain English

A critical-severity incorrect authorization in Spring Security. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 12.4% (higher than 96% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)12.4%top 3.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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 some servlet containers. Applications using RegexRequestMatcher with `.` in the regular expression are possibly vulnerable to an authorization bypass.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.security:spring-security-core5.6.4GHSA-hh32-7344-cg2f
Mavenorg.springframework.security:spring-security-core5.5.7GHSA-hh32-7344-cg2f
Mavenorg.springframework.security:spring-security-core5.4.11GHSA-hh32-7344-cg2f
Mavenorg.springframework.security:spring-security-web5.6.4GHSA-hh32-7344-cg2f
Mavenorg.springframework.security:spring-security-web5.5.7GHSA-hh32-7344-cg2f
Mavenorg.springframework.security:spring-security-web5.4.11GHSA-hh32-7344-cg2f
Ubuntu:25.10libspring-javano fix listedUBUNTU-CVE-2022-22978
Ubuntu:26.04:LTSlibspring-javano fix listedUBUNTU-CVE-2022-22978
Ubuntu:26.10libspring-javano fix listedUBUNTU-CVE-2022-22978

Affected products (as reported)

VendorProductVersions
n/a Spring Security Spring security versions 5.4.x prior to 5.4.11+,5.5.x prior to 5.5.7+,5.6.x prior to 5.6.4+ and all earlier unsupported versions

Weakness: CWE-863

References