Integer Overflow or Wraparound Affecting org.springframework.security:spring-security-crypto Open this link in a new tab package, versions [,5.5.7) [5.6.0,5.6.4)


0.0
medium
  • Exploit Maturity

    Proof of concept

  • Attack Complexity

    High

  • Privileges Required

    High

  • Scope

    Changed

  • Confidentiality

    High

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-id

    SNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-2833360

  • published

    18 May 2022

  • disclosed

    18 May 2022

  • credit

    Eyal Kaspi

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.