Skip to content
Fencer Vulns
medium 5.3

CVE-2022-22976 json

Integer overflow in BCrypt class in Spring Security

published 2022-05-19 4 y ago modified 2026-06-17 4 mo ago also GHSA-wx54-3278-m5g4 , EUVD-2022-5665

cvss
5.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.springframework.security:spring-security-core 5.5.7, 5.6.4
  • vmware spring_security 5.5.7, 5.6.4
  • jenkins ocp tools 4.11 2.401.1.1686831596-3.el8
  • jenkins-2-plugins ocp tools 4.11 4.11.1686831822-1.el8

red hat advisories RHSA-2023:3663

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-22976 updated cvss 5.3

springframework: BCrypt skips salt rounds for work factor of 31

  • Red Hat Decision Manager 7 springframework springframework
    affected: no fix available “Fix deferred”
  • Red Hat Integration Data Virtualisation Operator springframework springframework Red Hat JBoss BRMS 5 springframework springframework Red Hat JBoss Data Grid 7 springframework springframework Red Hat JBoss Data Virtualization 6 springframework springframework Red Hat JBoss Enterprise Application Platform 6 springframework springframework Red Hat JBoss Fuse 6 springframework springframework
    +3 more products
    Red Hat JBoss Fuse Service Works 6 springframework springframework Red Hat JBoss SOA Platform 5 springframework springframework Red Hat OpenShift Container Platform 3.11 jenkins
    affected: no fix planned “Out of support scope”
  • Red Hat Process Automation 7 springframework springframework
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift Developer Tools and Services for OCP 4.11 for RHEL 8 jenkins 2.401.1.1686831596-3.el8
    fixed: vendor fix RHSA-2023:3663
  • Red Hat Fuse 7.11
    fixed: vendor fix RHSA-2022:5532
  • Red Hat A-MQ Clients 2 springframework springframework Red Hat OpenShift Developer Tools and Services for OCP 4.11 for RHEL 8 jenkins-2-plugins 4.11.1686831822-1.el8 Red Hat build of Quarkus springframework springframework Red Hat Data Grid 8 springframework springframework Red Hat Integration Camel K 1 springframework springframework Red Hat Integration Camel Quarkus 1 springframework springframework
    +6 more products
    Red Hat JBoss Enterprise Application Platform 7 springframework springframework Red Hat JBoss Enterprise Application Platform Expansion Pack springframework springframework Red Hat OpenShift Container Platform 4 jenkins Red Hat Single Sign-On 7 springframework springframework Red Hat support for Spring Boot springframework springframework Red Hat streams for Apache Kafka springframework springframework
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.34% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
maven org.springframework.security:spring-security-core
>=5.2.0.RELEASE, <5.5.7
>=5.6.0, <5.6.4
5.5.7
5.6.4

Affected products

  • n/a Spring Security

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.