Description
Spring Security versions 5.5.x prior to 5.5.7, 5.6.x prior to 5.6.4, and earlier unsupported versions contain an integer overflow vulnerability. When using the BCrypt class with the maximum work factor (31), the encoder does not perform any salt rounds, due to an integer overflow error. The default settings are not affected by this CVE.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Spring Security | Spring Security versions 5.5.x prior to 5.5.7, 5.6.x prior to 5.6.4, and 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 | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 22.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 20.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libspring-java | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ocp Tools 4 | jenkins | 2.401.1.1686831596-3.el8 | RHSA-2023:3663 |
| Red Hat Ocp Tools 4 | jenkins-2-plugins | 4.11.1686831822-1.el8 | RHSA-2023:3663 |
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 1 repository
-
spring-io/cve-2022-22976-bcrypt-skips-salt ★ 1 · May 10, 2022
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.2.0.RELEASE, < 5.5.7 | 5.5.7 | GHSA-wx54-3278-m5g4 |
| Maven | org.springframework.security:spring-security-core | >= 5.6.0, < 5.6.4 | 5.6.4 | GHSA-wx54-3278-m5g4 |
Advisories 3
- RHSA-2023:3663 Red Hat Security Advisory: jenkins and jenkins-2-plugins security update Red Hat Security Advisories (RHSA) · Oct 13, 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