Every CVE Search/ Get API key

CVE-2022-22976

Integer overflow in BCrypt class in Spring Security

5.3 MediumPublic exploitFix available

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

2.34%Up 1.5 points since May 20, 2022
90%50%10%1%

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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
org.springframework.security:spring-security-core
Maven
5.6.0 up to 5.6.4
5.6.4
org.springframework.security:spring-security-core
Maven
5.2.0.RELEASE up to 5.5.7
5.5.7
org.springframework.security:spring-security-core
Maven
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 less
5.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-core
Maven
5.6.0 up to 5.6.4, plus listed versions
5.6.15.6.25.6.3
5.6.4
jenkins
Red Hat:ocp_tools:4.11::el8
before 0:2.401.1.1686831596-3.el8
0:2.401.1.1686831596-3.el8
jenkins-2-plugins
Red Hat:ocp_tools:4.11::el8
before 0:4.11.1686831822-1.el8
0:4.11.1686831822-1.el8
libspring-java
Ubuntu: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 less
3.0.6.RELEASE-123.0.6.RELEASE-133.0.6.RELEASE-13ubuntu0.1~esm13.0.6.RELEASE-13ubuntu0.1~esm2
None known
libspring-java
Ubuntu: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-java
Ubuntu: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-java
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
4.3.22-44.3.22-4ubuntu0.1~esm1
None known
Show 5 moreShow less
Affected packages
PackageAffectedFixed
libspring-java
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
4.3.30-14.3.30-1ubuntu0.1~esm1
None known
libspring-java
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
4.3.30-24.3.30-2ubuntu0.24.04.1~esm1
None known
libspring-java
Ubuntu:25.10
All versions, plus listed versions
4.3.30-2ubuntu14.3.30-3ubuntu1
None known
libspring-java
Ubuntu:26.10
All versions, plus listed versions
4.3.30-3ubuntu1
None known
libspring-java
Ubuntu:26.04:LTS
All versions, plus listed versions
4.3.30-3ubuntu1
None known

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubspring-io/cve-2022-22976-bcrypt-skips-salt2022-05-10

History

History
RecordedChangedSources
aliases, productsEUVD
first indexedCVE 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

Show 84 moreShow less
MoveEnter Open