CVE-2022-22976: Integer Overflow

Published May 17, 2022
·
Updated

A flaw was found in Spring Framework. The encoder does not perform any salt rounds when using the BCrypt class with the maximum work factor (31) due to an integer overflow error.

Other sources

Spring Security could provide weaker than expected security, caused by an integer overflow vulnerability which results in a lack of salt rounds when using the BCrypt class with the maximum work factor. A local authenticated attacker could exploit this vulnerability to launch further attacks on the system.

IBM

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.

Only in circumstances where the BCryptPasswordEncoder has been configured with the maximum work factor are affected. Due to current limitations in computer hardware, the use of such a high work factor is computationally impractical.

https://tanzu.vmware.com/security/cve-2022-22976

Red Hat

Affected Software

15 affected componentsFixes available
redhat/jenkins<0:2.401.1.1686831596-3.el8
0:2.401.1.1686831596-3.el8
redhat/spring-security<5.5.7
5.5.7
redhat/spring-security<5.6.4
5.6.4
redhat/spring-security<5.7.0
5.7.0
maven/org.springframework.security:spring-security-core>=5.2.0.RELEASE<5.5.7
5.5.7
maven/org.springframework.security:spring-security-core>=5.6.0<5.6.4
5.6.4
VMware Spring Security>=5.2.1<5.5.7
VMware Spring Security>=5.6.0<5.6.4
VMware Spring Security=5.2.0
Oracle Financial Services Crime And Compliance Management Studio=8.0.8.2.0
Oracle Financial Services Crime And Compliance Management Studio=8.0.8.3.0
NetApp Active Iq Unified Manager Linux
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Active Iq Unified Manager Windows
VMware Spring Security<5.5.7

Event History

May 17, 2022
CVE Published
12:00 AM
May 19, 2022
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
May 20, 2022
Advisory Published
via GitHub·12:00 AM
Mar 20, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-22976?

CVE-2022-22976 is a vulnerability found in Spring Framework that allows an attacker to bypass salt rounds during encoding.

2

What versions of Spring Security are affected by CVE-2022-22976?

Spring Security versions 5.5.x prior to 5.5.7, 5.6.x prior to 5.6.4, and earlier unsupported versions are affected.

3

How severe is CVE-2022-22976?

CVE-2022-22976 has a severity rating of 5.3, which is considered medium.

4

What is the official reference for CVE-2022-22976?

The official references for CVE-2022-22976 are: https://tanzu.vmware.com/security/cve-2022-22976, https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2087921, and https://access.redhat.com/errata/RHSA-2022:5532.

5

How can I fix CVE-2022-22976?

To fix CVE-2022-22976, upgrade to Spring Security versions 5.5.7, 5.6.4, or 5.7.0 which contain the necessary patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203