CVE-2022-22976

springframework: BCrypt skips salt rounds for work factor of 31

Published May 19, 2022 CVSS 3.1 · 5.3 Medium EPSS 2.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-5665 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.
Github GHSA Github GHSA GHSA-wx54-3278-m5g4 Integer overflow in BCrypt class in Spring Security
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Aug 3, 2024, 3:28 AM
Reserved
Jan 10, 2022, 12:00 AM
Status
Modified
Published
May 19, 2022, 3:15 PM
Modified
Jun 17, 2026, 4:29 AM
Severity
Moderate
Public date
May 17, 2022, 12:00 AM