VDB
Sign up
MEDIUM5.3

GHSA-wx54-3278-m5g4

Integer overflow in BCrypt class in Spring Security

Quick fix

GHSA-wx54-3278-m5g4 — org.springframework.security:spring-security-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>5.5.7</version> for org.springframework.security:spring-security-core

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework.security:spring-security-core
Introduced in: 5.2.0.RELEASEFixed in: 5.5.7
Fix# pom.xml: bump <version>5.5.7</version> for org.springframework.security:spring-security-core
Maven/org.springframework.security:spring-security-core
Introduced in: 5.6.0Fixed in: 5.6.4
Fix# pom.xml: bump <version>5.6.4</version> for org.springframework.security:spring-security-core

References