Loading advisory.
Loading advisory.
Integer overflow in BCrypt class in Spring Security
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.
Published 2022-05-19 14:50 UTC · Modified 2024-08-03 03:28 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.springframework.security:spring-security-core | Maven | >= 5.2.0.RELEASE, < 5.5.7 >= 5.6.0, < 5.6.4 versions 5.2.0.RELEASE, 5.2.1.RELEASE, 5.2.10.RELEASE, 5.2.11.RELEASE, 5.2.12.RELEASE, 5.2.13.RELEASE, 5.2.14.RELEASE, 5.2.15.RELEASE, 5.2.2.RELEASE, 5.2.3.RELEASE, 5.2.4.RELEASE, 5.2.5.RELEASE, 5.2.6.RELEASE, 5.2.7.RELEASE, 5.2.8.RELEASE, 5.2.9.RELEASE, 5.3.0.RELEASE, 5.3.1.RELEASE, 5.3.10.RELEASE, 5.3.11.RELEASE and 33 more | 5.5.7, 5.6.4 | No single command for Maven. Update to 5.5.7, 5.6.4 in your build file. |
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.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.023 on 2026-11-24 to 0.017 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.023 | first score | v2026.06.15 |
| 2026-11-26 | 0.017 | 0.023 | v2026.06.15 |