# CVE-2022-22976: Integer overflow in BCrypt class in Spring Security

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.33%, higher than 84% of CVEs (2026-12-02)
- Published: 2022-05-19T14:50:46.000Z
- Modified: 2026-06-17T04:29:16.813Z
- Also known as: GHSA-wx54-3278-m5g4
- Weaknesses: CWE-190
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- 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
- org.springframework.security:spring-security-core (Maven): from 5.2.0.RELEASE before 5.5.7; from 5.6.0 before 5.6.4
- vmware spring_security: from 5.2.1 before 5.5.7; from 5.6.0 before 5.6.4; 5.2.0
- oracle financial_services_crime_and_compliance_management_studio: 8.0.8.2.0; 8.0.8.3.0
- netapp active_iq_unified_manager: no versions given

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://tanzu.vmware.com/security/cve-2022-22976> (mitigation, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220707-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-22976> (advisory)
- <https://github.com/spring-projects/spring-security/commit/388a7b62b906bd56deadb7ca45248fa1a63bdf12> (web)
- <https://github.com/spring-projects/spring-security/commit/a40f73521c0dd88b879ff6165d280e78bdf8154f> (web)
- <https://github.com/spring-projects/spring-security> (package)
- <https://security.netapp.com/advisory/ntap-20220707-0003> (web)

## Sources

- CVE List: [CVE-2022-22976](https://www.cve.org/CVERecord?id=CVE-2022-22976), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-wx54-3278-m5g4](https://github.com/advisories/GHSA-wx54-3278-m5g4), CC-BY-4.0, modified 2024-06-13
- NVD: [CVE-2022-22976](https://nvd.nist.gov/vuln/detail/CVE-2022-22976), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-22976 · Whole record: https://cve.day/CVE-2022-22976.json · Rebuilt by cve.day 2026-11-25T22:58:11.812Z
