patchminder
Proof of concept · GitHub CVE-2022-22976

Integer overflowin the org.springframework.security:spring-security-core package.

Published 19 May 2022 · Updated 3 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 5.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 5.5.7, 5.6.4
In plain words

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.

What to do now
  • Upgrade org.springframework.security:spring-security-core (Maven) to 5.5.7, 5.6.4 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Spring Security
Not confirmed
Not confirmed
CVE record
org.springframework.security:spring-security-core (Maven)
5.2.0.RELEASE to before 5.5.7
5.5.7
GitHub advisory
org.springframework.security:spring-security-core (Maven)
5.6.0 to before 5.6.4
5.6.4
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 10 Jan 2022
    CVE ID reserved by vmware.
  2. 10 May 2022
    First public proof of concept on GitHub.
  3. 19 May 2022
    Published in the CVE List.
  4. 3 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundspring-io/cve-2022-22976-bcrypt-skips-salt1 stars · created 10 May 2022

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.

Related

Other vulnerabilities in this package

Same weakness: Integer overflow

All CWE-190 vulnerabilities

References
Cite this page

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).