Incorrect authorization in Spring Security
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 10 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-863.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | 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 | — | No fix listed | CNA |
| — | org.springframework.security:spring-security-core (Maven) | 5.5.0 to before 5.5.7 | 5.5.7 | Patch available | GHSA-hh32-7344-cg2f |
| — | org.springframework.security:spring-security-core (Maven) | 5.6.0 to before 5.6.4 | 5.6.4 | Patch available | GHSA-hh32-7344-cg2f |
| — | org.springframework.security:spring-security-core (Maven) | before 5.4.11 | 5.4.11 | Patch available | GHSA-hh32-7344-cg2f |
| — | org.springframework.security:spring-security-web (Maven) | 5.5.0 to before 5.5.7 | 5.5.7 | Patch available | GHSA-hh32-7344-cg2f |
| — | org.springframework.security:spring-security-web (Maven) | 5.6.0 to before 5.6.4 | 5.6.4 | Patch available | GHSA-hh32-7344-cg2f |
| — | org.springframework.security:spring-security-web (Maven) | before 5.4.11 | 5.4.11 | Patch available | GHSA-hh32-7344-cg2f |
- Spring Security Vendor— Affected 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 Fixed in — No fix listed CNA
- org.springframework.security:spring-security-core (Maven) Vendor— Affected 5.5.0 to before 5.5.7 Fixed in 5.5.7 Patch available GHSA-hh32-7344-cg2f
- org.springframework.security:spring-security-core (Maven) Vendor— Affected 5.6.0 to before 5.6.4 Fixed in 5.6.4 Patch available GHSA-hh32-7344-cg2f
- org.springframework.security:spring-security-core (Maven) Vendor— Affected before 5.4.11 Fixed in 5.4.11 Patch available GHSA-hh32-7344-cg2f
- org.springframework.security:spring-security-web (Maven) Vendor— Affected 5.5.0 to before 5.5.7 Fixed in 5.5.7 Patch available GHSA-hh32-7344-cg2f
- org.springframework.security:spring-security-web (Maven) Vendor— Affected 5.6.0 to before 5.6.4 Fixed in 5.6.4 Patch available GHSA-hh32-7344-cg2f
- org.springframework.security:spring-security-web (Maven) Vendor— Affected before 5.4.11 Fixed in 5.4.11 Patch available GHSA-hh32-7344-cg2f
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* | before 5.5.7; 5.6.0 to before 5.6.4 | Vulnerable | VMware |
| cpe:2.3:a:oracle:financial_services_crime_and_compliance_management_studio:8.0.8.2.0:*:*:*:*:*:*:* | 8.0.8.2.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:financial_services_crime_and_compliance_management_studio:8.0.8.3.0:*:*:*:*:*:*:* | 8.0.8.3.0 | Vulnerable | Oracle |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* | not specified by NVD | Vulnerable | NetApp |
- cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* Versions before 5.5.7; 5.6.0 to before 5.6.4 Vulnerable ·VMware
- cpe:2.3:a:oracle:financial_services_crime_and_compliance_management_studio:8.0.8.2.0:*:*:*:*:*:*:* Versions 8.0.8.2.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:financial_services_crime_and_compliance_management_studio:8.0.8.3.0:*:*:*:*:*:*:* Versions 8.0.8.3.0 Vulnerable ·Oracle
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* Versions not specified by NVD Vulnerable ·NetApp
Remediation
- Fix · GHSA-hh32-7344-cg2f org.springframework.security:spring-security-core (Maven) Fixed in 5.5.7 Advisory →
- Fix · GHSA-hh32-7344-cg2f org.springframework.security:spring-security-core (Maven) Fixed in 5.6.4 Advisory →
- Fix · GHSA-hh32-7344-cg2f org.springframework.security:spring-security-core (Maven) Fixed in 5.4.11 Advisory →
- Fix · GHSA-hh32-7344-cg2f org.springframework.security:spring-security-web (Maven) Fixed in 5.5.7 Advisory →
- Fix · GHSA-hh32-7344-cg2f org.springframework.security:spring-security-web (Maven) Fixed in 5.6.4 Advisory →
- Fix · GHSA-hh32-7344-cg2f org.springframework.security:spring-security-web (Maven) Fixed in 5.4.11 Advisory →
Red Hat 2 advisories
- RHSA-2023:3299 Released 2023-05-24 · Red Hat rating Importantjenkins and jenkins-2-plugins security update
- OpenShift Developer Tools and Services for OCP 4.13 jenkins-2-plugins-4.13.1684911916-1.el8, jenkins-2.387.3.1684911776-3.el8
- RHSA-2022:5532 Released 2022-07-07 · Red Hat rating ImportantRed Hat Fuse 7.11.0 release and security update
- Red Hat Fuse 7.11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Decision Manager 7 | Affected | No fix yet: Fix deferred |
| Red Hat Integration Data Virtualisation Operator | Affected | No fix planned: Out of support scope |
| Red Hat JBoss BRMS 5 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Virtualization 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse Service Works 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss SOA Platform 5 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat Process Automation 7 | Affected | No fix yet: Fix deferred |
| OpenShift Developer Tools and Services for OCP 4.13 | Fixed | RHSA-2023:3299 |
| Red Hat Fuse 7.11 | Fixed | RHSA-2022:5532 |
Not affected: 9 products
- A-MQ Clients 2
- OpenShift Developer Tools and Services for OCP 4.13
- Red Hat Data Grid 8
- Red Hat Integration Camel K 1
- Red Hat Integration Camel Quarkus 1
- Red Hat Single Sign-On 7
- Red Hat build of Quarkus
- Red Hat support for Spring Boot
- streams for Apache Kafka
Timeline
- 2026-10-02 Threatist record created from CVE-2022-22978
- 2026-10-03 Alias added: GHSA-hh32-7344-cg2f
References
Other 7
- https://spring.io/security/cve-2022-22978
- https://github.com/anchore/grype/issues/2158
- https://github.com/spring-projects/spring-security
- https://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java
- https://security.netapp.com/advisory/ntap-20220707-0003
- https://tanzu.vmware.com/security/cve-2022-22978
- https://www.oracle.com/security-alerts/cpujul2022.html
Sources
- CVE-2022-22978 · CVE Program
- CVE-2022-22978 · NVD
- FIRST EPSS
- GHSA-hh32-7344-cg2f · GitHub Advisory Database · CC BY 4.0
- CVE-2022-22978 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences