GitHub Advisoryadvisory · Maven

GHSA-wx54-3278-m5g4 Integer overflow in BCrypt class in Spring Security

MEDIUM Published 2022-05-20 Modified 2024-06-13 Official page ↗
Aliases
CVE-2022-22976
Ecosystem
Maven
Packages
org.springframework.security:spring-security-core
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-190
Reviewed
2022-05-25

Affected packages

• Maven org.springframework.security:spring-security-core: >= 5.2.0.RELEASE, < 5.5.7 → fixed in 5.5.7 • Maven org.springframework.security:spring-security-core: >= 5.6.0, < 5.6.4 → fixed in 5.6.4

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.

Related

Alias · CVE (1)

  • CVE-2022-22976 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

Weakness · CWE (1)

  • CWE-190 Integer Overflow or Wraparound weakness

References