Integer overflowin the org.springframework.security:spring-security-core package.
Proof of concept public (GitHub).
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.
- Upgrade org.springframework.security:spring-security-core (Maven) to 5.5.7, 5.6.4 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 10 Jan 2022CVE ID reserved by vmware.
- 10 May 2022First public proof of concept on GitHub.
- 19 May 2022Published in the CVE List.
- 3 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
Same weakness: Integer overflow
- tanzu.vmware.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
Patchminder. CVE-2022-22976: Integer overflow in the org.springframework.security:spring-security-core package. https://patchminder.com/cve/cve-2022-22976/ (accessed 5 December 2026).