CVE-2022-22976
Integer overflow in BCrypt class in 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 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.3
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.
- Record
CVE-2022-22976- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2022-22976- Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2022-5665 No score
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.
- Record
EUVD-2022-5665- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-wx54-3278-m5g4
5.3
Integer overflow in BCrypt class in 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 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.
- Record
GHSA-wx54-3278-m5g4- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVGHSA-wx54-3278-m5g4
5.3
Integer overflow in BCrypt class in 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 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.
- Record
GHSA-wx54-3278-m5g4- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVRHSA-2023:3663
8.8
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- Record
RHSA-2023:3663- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-22976
5.3
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.
- Record
UBUNTU-CVE-2022-22976- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2022-22976- Weakness
- CWE-190
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-coreMaven |
5.6.0 up to 5.6.4 | 5.6.4 |
org.springframework.security:spring-security-coreMaven |
5.2.0.RELEASE up to 5.5.7 | 5.5.7 |
org.springframework.security:spring-security-coreMaven |
5.2.0.RELEASE up to 5.5.7, plus listed versions 5.2.1.RELEASE5.2.10.RELEASE5.2.11.RELEASE5.2.12.RELEASE5.2.13.RELEASE Show 43 moreShow less5.2.14.RELEASE5.2.15.RELEASE5.2.2.RELEASE5.2.3.RELEASE5.2.4.RELEASE5.2.5.RELEASE5.2.6.RELEASE5.2.7.RELEASE5.2.8.RELEASE5.2.9.RELEASE5.3.0.RELEASE5.3.1.RELEASE5.3.10.RELEASE5.3.11.RELEASE5.3.12.RELEASE5.3.13.RELEASE5.3.2.RELEASE5.3.3.RELEASE5.3.4.RELEASE5.3.5.RELEASE5.3.6.RELEASE5.3.7.RELEASE5.3.8.RELEASE5.3.9.RELEASE5.4.05.4.15.4.105.4.115.4.25.4.35.4.45.4.55.4.65.4.75.4.85.4.95.5.05.5.15.5.25.5.35.5.45.5.55.5.6 |
5.5.7 |
org.springframework.security:spring-security-coreMaven |
5.6.0 up to 5.6.4, plus listed versions 5.6.15.6.25.6.3 |
5.6.4 |
jenkinsRed Hat:ocp_tools:4.11::el8 |
before 0:2.401.1.1686831596-3.el8 | 0:2.401.1.1686831596-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.11::el8 |
before 0:4.11.1686831822-1.el8 | 0:4.11.1686831822-1.el8 |
libspring-javaUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 3.0.6.RELEASE-73.0.6.RELEASE-83.0.6.RELEASE-93.0.6.RELEASE-103.0.6.RELEASE-11 Show 4 moreShow less3.0.6.RELEASE-123.0.6.RELEASE-133.0.6.RELEASE-13ubuntu0.1~esm13.0.6.RELEASE-13ubuntu0.1~esm2 |
None known |
libspring-javaUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.2.13-33.2.13-43.2.13-53.2.13-5ubuntu0.1~esm1 |
None known |
libspring-javaUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 4.3.11-14.3.12-14.3.13-24.3.14-14.3.22-1~18.044.3.22-1~18.04.1~esm1 |
None known |
libspring-javaUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 4.3.22-44.3.22-4ubuntu0.1~esm1 |
None known |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libspring-javaUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 4.3.30-14.3.30-1ubuntu0.1~esm1 |
None known |
libspring-javaUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 4.3.30-24.3.30-2ubuntu0.24.04.1~esm1 |
None known |
libspring-javaUbuntu:25.10 |
All versions, plus listed versions 4.3.30-2ubuntu14.3.30-3ubuntu1 |
None known |
libspring-javaUbuntu:26.10 |
All versions, plus listed versions 4.3.30-3ubuntu1 |
None known |
libspring-javaUbuntu:26.04:LTS |
All versions, plus listed versions 4.3.30-3ubuntu1 |
None known |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | spring-io/cve-2022-22976-bcrypt-skips-salt | 2022-05-10 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-22976 is a medium vulnerability (CVSS 5.3) in Spring Security, published May 19, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.34%, the 83rd percentile. Fixed in org.springframework.security:spring-security-core 5.6.4.
References
tanzu.vmware.com/security/cve-2022-22976
oracle.com/security-alerts/cpujul2022.html
security.netapp.com/advisory/ntap-20220707-0003
nvd.nist.gov/vuln/detail/CVE-2022-22976
github.com/spring-projects/spring-security/commit/388a7b62b906bd56deadb7ca45248fa1a63bdf12
github.com/spring-projects/spring-security/commit/a40f73521c0dd88b879ff6165d280e78bdf8154f
Show 84 moreShow less
github.com/advisories/GHSA-wx54-3278-m5g4
github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22976.json
github.com/spring-projects/spring-security
access.redhat.com/errata/RHSA-2023:3663
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2087214
bugzilla.redhat.com/show_bug.cgi?id=2116952
bugzilla.redhat.com/show_bug.cgi?id=2135244
bugzilla.redhat.com/show_bug.cgi?id=2135247
bugzilla.redhat.com/show_bug.cgi?id=2135770
bugzilla.redhat.com/show_bug.cgi?id=2135771
bugzilla.redhat.com/show_bug.cgi?id=2170431
bugzilla.redhat.com/show_bug.cgi?id=2177626
bugzilla.redhat.com/show_bug.cgi?id=2177629
bugzilla.redhat.com/show_bug.cgi?id=2177632
bugzilla.redhat.com/show_bug.cgi?id=2177634
bugzilla.redhat.com/show_bug.cgi?id=2180528
bugzilla.redhat.com/show_bug.cgi?id=2182788
bugzilla.redhat.com/show_bug.cgi?id=2182864
bugzilla.redhat.com/show_bug.cgi?id=2188542
bugzilla.redhat.com/show_bug.cgi?id=2207830
bugzilla.redhat.com/show_bug.cgi?id=2207835
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3663.json
access.redhat.com/security/cve/CVE-2022-2048
cve.org/CVERecord?id=CVE-2022-2048
nvd.nist.gov/vuln/detail/CVE-2022-2048
github.com/eclipse/jetty.project/security/advisories/GHSA-wgmr-mf83-7x4j
access.redhat.com/security/cve/CVE-2022-22976
cve.org/CVERecord?id=CVE-2022-22976
access.redhat.com/security/cve/CVE-2022-40149
cve.org/CVERecord?id=CVE-2022-40149
nvd.nist.gov/vuln/detail/CVE-2022-40149
github.com/jettison-json/jettison/releases/tag/jettison-1.5.1
access.redhat.com/security/cve/CVE-2022-40150
cve.org/CVERecord?id=CVE-2022-40150
nvd.nist.gov/vuln/detail/CVE-2022-40150
access.redhat.com/security/cve/CVE-2022-41966
cve.org/CVERecord?id=CVE-2022-41966
nvd.nist.gov/vuln/detail/CVE-2022-41966
github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv
access.redhat.com/security/cve/CVE-2022-42003
cve.org/CVERecord?id=CVE-2022-42003
nvd.nist.gov/vuln/detail/CVE-2022-42003
access.redhat.com/security/cve/CVE-2022-42004
cve.org/CVERecord?id=CVE-2022-42004
nvd.nist.gov/vuln/detail/CVE-2022-42004
access.redhat.com/security/cve/CVE-2023-1370
cve.org/CVERecord?id=CVE-2023-1370
nvd.nist.gov/vuln/detail/CVE-2023-1370
github.com/advisories/GHSA-493p-pfq6-5258
research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633
access.redhat.com/security/cve/CVE-2023-1436
cve.org/CVERecord?id=CVE-2023-1436
nvd.nist.gov/vuln/detail/CVE-2023-1436
research.jfrog.com/vulnerabilities/jettison-json-array-dos-xray-427911
access.redhat.com/security/cve/CVE-2023-20860
cve.org/CVERecord?id=CVE-2023-20860
nvd.nist.gov/vuln/detail/CVE-2023-20860
spring.io/blog/2023/03/20/spring-framework-6-0-7-and-5-3-26-fix-cve-2023-20860-and-cve-2023-20861
access.redhat.com/security/cve/CVE-2023-26464
cve.org/CVERecord?id=CVE-2023-26464
nvd.nist.gov/vuln/detail/CVE-2023-26464
ibm.com/support/pages/security-bulletin-vulnerability-log4j-1216jar-affect-ibm-operations-analytics-log-analysis-cve-2023-26464
access.redhat.com/security/cve/CVE-2023-27898
cve.org/CVERecord?id=CVE-2023-27898
nvd.nist.gov/vuln/detail/CVE-2023-27898
jenkins.io/security/advisory/2023-03-08
access.redhat.com/security/cve/CVE-2023-27899
cve.org/CVERecord?id=CVE-2023-27899
nvd.nist.gov/vuln/detail/CVE-2023-27899
access.redhat.com/security/cve/CVE-2023-27903
cve.org/CVERecord?id=CVE-2023-27903
nvd.nist.gov/vuln/detail/CVE-2023-27903
access.redhat.com/security/cve/CVE-2023-27904
cve.org/CVERecord?id=CVE-2023-27904
nvd.nist.gov/vuln/detail/CVE-2023-27904
access.redhat.com/security/cve/CVE-2023-32977
cve.org/CVERecord?id=CVE-2023-32977
nvd.nist.gov/vuln/detail/CVE-2023-32977
jenkins.io/security/advisory/2023-05-16
access.redhat.com/security/cve/CVE-2023-32981
cve.org/CVERecord?id=CVE-2023-32981
nvd.nist.gov/vuln/detail/CVE-2023-32981
ubuntu.com/security/CVE-2022-22976