Advisory record · GHSA-wx54-3278-m5g4

Integer overflow in BCrypt class in Spring Security

CVSS 5.3 MediumEPSS 0.023 · 83rd percentile

Published by the GitHub Advisory Database at 20 May 2022, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
org.springframework.security:spring-security-coreMaven>=5.2.0.RELEASE, <5.5.7 || >=5.6.0, <5.6.45.5.7, 5.6.4
Identifiers
GHSA-wx54-3278-m5g4 · CVE-2022-22976
Weakness (CWE)
CWE-190
Published
20 May 2022
Updated
13 Jun 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Spring Security's spring-security-core package is affected in versions 5.2.0.RELEASE through before 5.5.7 and from 5.6.0 through before 5.6.4. When the BCrypt class is used with the maximum work factor of 31, an integer overflow causes the encoder to perform no salt rounds, weakening password hashing. The default settings are not affected. Upgrade to version 5.5.7 or 5.6.4 or later.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.023, the 83rd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:13 UTC First seen by agentprime
  2. 31 Oct 2026, 15:13 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.