Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.security/spring-security-web
  4. ›
  5. CVE-2022-22978

CVE-2022-22978: Authorization bypass in Spring Security

May 20, 2022 (updated October 4, 2024)

In Spring Security versions 5.5.6 and 5.5.7 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.

References

  • github.com/advisories/GHSA-hh32-7344-cg2f
  • github.com/anchore/grype/issues/2158
  • github.com/spring-projects/spring-security
  • github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java
  • nvd.nist.gov/vuln/detail/CVE-2022-22978
  • security.netapp.com/advisory/ntap-20220707-0003
  • spring.io/security/cve-2022-22978
  • tanzu.vmware.com/security/cve-2022-22978
  • www.oracle.com/security-alerts/cpujul2022.html

Code Behaviors & Features

Detect and mitigate CVE-2022-22978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.4.11, all versions starting from 5.5.0 before 5.5.7, all versions starting from 5.6.0 before 5.6.4

Fixed versions

  • 5.5.7
  • 5.6.4
  • 5.4.11

Solution

Upgrade to versions 5.4.11, 5.5.7, 5.6.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-863: Incorrect Authorization

Source file

maven/org.springframework.security/spring-security-web/CVE-2022-22978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.