{"id":"CVE-2022-22976","published":"2022-05-19T14:50:46Z","modified":"2024-08-03T03:28:42Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02335,"percentile":0.84003,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://tanzu.vmware.com/security/cve-2022-22976","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220707-0003/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":16.8},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-05-10","earliestUrl":"https://github.com/spring-io/cve-2022-22976-bcrypt-skips-salt","repos":[{"name":"spring-io/cve-2022-22976-bcrypt-skips-salt","url":"https://github.com/spring-io/cve-2022-22976-bcrypt-skips-salt","stars":1,"created":"2022-05-10"}]},"first":{"date":"2022-05-10","source":"PoC-in-GitHub","url":"https://github.com/spring-io/cve-2022-22976-bcrypt-skips-salt"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"Spring Security","versions":["Spring Security versions 5.5.x prior to 5.5.7, 5.6.x prior to 5.6.4, and earlier unsupported versions"]}],"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=5.2.0.RELEASE, <5.5.7",">=5.6.0, <5.6.4"],"patched":["5.5.7","5.6.4"],"from":["GHSA-wx54-3278-m5g4"],"provenance":"source"}],"summary":{"text":"The flaw is an integer overflow in the BCrypt implementation of Spring Security, affecting 5.5.x releases before 5.5.7, 5.6.x releases before 5.6.4, and earlier unsupported versions. When the BCrypt encoder is configured with the maximum work factor of 31, the overflow causes it to skip all salt rounds, and the default settings are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:19Z"},"euvd":{"id":"EUVD-2022-5665","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2022-22976","children":[{"from":"CVE-2022-22976","to":"CVE-2025-22228","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java"],"commits":["https://github.com/spring-projects/spring-security/commit/388a7b62b906bd56deadb7ca45248fa1a63bdf12","https://github.com/spring-projects/spring-security/commit/a40f73521c0dd88b879ff6165d280e78bdf8154f","https://github.com/spring-projects/spring-security/commit/46f0dc6dfc8402cd556c598fdf2d31f9d46cdbf3"],"basis":"shared function","functions":["hashpw"]}]}],"packageHistory":[{"cve":"CVE-2020-5407","published":"2020-05-13","fixed":"5.3.2","kev":false},{"cve":"CVE-2020-5408","published":"2020-05-14","fixed":"5.3.2","kev":false},{"cve":"CVE-2021-22119","published":"2021-06-29","fixed":"5.5.1","kev":false,"link":{"from":"CVE-2021-22119","to":"CVE-2022-22976","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"5.5.1","toFixed":"5.5.7","daysApart":324}]}},{"cve":"CVE-2022-22976","published":"2022-05-19","fixed":"5.6.4","kev":false},{"cve":"CVE-2022-22978","published":"2022-05-19","fixed":"5.6.4","kev":false},{"cve":"CVE-2022-31692","published":"2022-10-31","fixed":"5.7.5","kev":false},{"cve":"CVE-2023-20862","published":"2023-04-19","fixed":"6.0.3","kev":false}],"package":"Maven:org.springframework.security:spring-security-core"}}