MODERATE 5.3

CVE-2022-22976

Integer overflow in BCrypt class in Spring Security

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.security » spring-security-core
>= 5.2.0.RELEASE, < 5.5.7>= 5.6.0, < 5.6.4
5.5.7, 5.6.4

Blast radius

1affected artifacts
63affected versions
5,341dependent artifacts (est.)
286,560dependent versions

40% of the dependent artifacts (2,154) still pull an affected version in their latest release.

DepthDependent versions
Direct
50,870
2 hops
93,081
3 hops
74,471
4 hops
44,593
5 hops
19,682
6 hops
3,863

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.