CVE-2022-22976 Integer overflow in BCrypt class in Spring Security

Medium 5.3 Published Updated

An integer overflow in Spring Security's BCrypt encoder with maximum work factor skips salt rounds, weakening password hashing security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-22976?

CVE-2022-22976 is a medium-severity vulnerability in Netapp Active Iq Unified Manager, published on 19 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-190

Which versions are affected by CVE-2022-22976?

4 open source packages ship an affected version, including org.springframework.security:spring-security-core. It affects 3 products.

PackageAffectedFixed in
org.springframework.security:spring-security-core MavenFrom 5.2.0.RELEASE5.5.7
org.springframework.security:spring-security-core MavenFrom 5.2.0.RELEASE5.5.7
org.springframework.security:spring-security-core MavenFrom 5.6.05.6.4
org.springframework.security:spring-security-core MavenFrom 5.6.05.6.4

Products include Netapp Active Iq Unified Manager, Oracle Financial Services Crime and Compliance Management Studio, Vmware Spring Security.

How do I fix CVE-2022-22976?

Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 5.5.7 or 5.6.4.

Is CVE-2022-22976 being exploited?

There is no known exploitation of CVE-2022-22976 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Netapp Active Iq Unified Manager vulnerabilities

Sources

Also known as GHSA-wx54-3278-m5g4, UBUNTU-CVE-2022-22976.

Is CVE-2022-22976 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free