Integer Overflow or Wraparound Affecting org.springframework.security:spring-security-crypto package, versions [,5.5.7)[5.6.0,5.6.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.16% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-2833360
  • published18 May 2022
  • disclosed18 May 2022
  • creditEyal Kaspi

Introduced: 18 May 2022

CVE-2022-22976  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-crypto to version 5.5.7, 5.6.4 or higher.

Overview

org.springframework.security:spring-security-crypto is a spring-security-crypto library for Spring Security.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound when using the BCrypt class with the maximum work factor (31). In such a case, the encoder does not perform any salt rounds due to the overflow.

Note:

The default settings are not affected by this CVE.

CVSS Scores

version 3.1