Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2022-22978 EUVD-2022-4151GHSA-hh32-7344-cg2f

Authorization bypass in Spring Security

Published May 19, 2022 · Updated Aug 3, 2024 · Assigned by vmware

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 7 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

Advisories 6

References