VDB

CVE-2022-22976

CVE-2022-22976 PUBLISHED CVSS 5.300000190734863 MEDIUM

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.

PackageEcosystemFixed in
org.springframework.security:spring-security-coreMaven Central5.6.4, 5.5.7
spring_securityvmware5.6.4, 5.5.7

Risk scores

CVSS 3.1
5.300000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
n/aSpring SecuritySpring Security versions 5.5.x prior to 5.5.7, 5.6.x prior to 5.6.4, and earlier unsupported versions
Mavenorg.springframework.security:spring-security-core0, 5.6.0
n/aSpring SecuritySpring 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›