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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libspring-java | No fix yet | — |
| Ubuntu 26.04 LTS | libspring-java | No fix yet | — |
| Ubuntu 25.10 | libspring-java | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ocp Tools 4 | jenkins | 2.387.3.1684911776-3.el8 | RHSA-2023:3299 |
| Red Hat Ocp Tools 4 | jenkins-2-plugins | 4.13.1684911916-1.el8 | RHSA-2023:3299 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 7 repositories
-
DeEpinGh0st/CVE-2022-22978 ★ 15 · May 31, 2022
CVE-2022-22978 Spring-Security bypass Demo
-
ducluongtran9121/CVE-2022-22978-PoC ★ 13 · Jun 4, 2022
PoC of CVE-2022-22978 vulnerability in Spring Security framework
-
aeifkz/CVE-2022-22978 ★ 5 · Jul 13, 2022
CVE-2022-22978 POC Project
-
umakant76705/CVE-2022-22978 ★ 2 · Mar 1, 2023
-
he-ewo/CVE-2022-22978 ★ 0 · Apr 6, 2025
-
wan9xx/CVE-2022-22978-demo ★ 0 · May 17, 2024
CVE-2022-22978漏洞实例代码
-
Raghvendra1207/CVE-2022-22978 ★ 0 · Mar 16, 2023
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework.security:spring-security-core | >= 5.5.0, < 5.5.7 | 5.5.7 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-core | >= 5.6.0, < 5.6.4 | 5.6.4 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-core | < 5.4.11 | 5.4.11 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-web | >= 5.5.0, < 5.5.7 | 5.5.7 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-web | >= 5.6.0, < 5.6.4 | 5.6.4 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-web | < 5.4.11 | 5.4.11 | GHSA-hh32-7344-cg2f |
Advisories 6
- RHSA-2023:3299 Red Hat Security Advisory: jenkins and jenkins-2-plugins security update Red Hat Security Advisories (RHSA) · Oct 13, 2026
- WID-SEC-2026-1955 Atlassian Bamboo, Bitbucket, Confluence, Fisheye, Crucible, Jira und Jira Service Management: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 23, 2026
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- WID-SEC-2022-0607 Red Hat FUSE: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 9, 2026
- WID-SEC-2023-0138 Oracle Communications Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 15, 2025
- WID-SEC-2023-1017 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 18, 2023