CVE-2022-22976
Integer overflow in BCrypt class in Spring Security
Reported by vmware · Published May 19, 2022
spring-security-core is fixed in 5.6.4 and 5.5.7 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-core | Maven Central | 5.6.4, 5.5.7 |
| spring_security | vmware | 5.6.4, 5.5.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | 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 |
| Maven | org.springframework.security:spring-security-core | 0, 5.6.0 |
| n/a | 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 |
Timeline
- May 18, 2022 CVE Published
- May 20, 2022 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 17, 2026 Security Advisory (27 in total, the first dated here)
- Jul 5, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (26 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-22976
vulnetix vdb fixes CVE-2022-22976
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-22976/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2022-22976 advisory
- https://github.com/advisories/GHSA-wx54-3278-m5g4 advisory