{"id":"CVE-2022-22976","aliases":["EUVD-2022-5665","GHSA-wx54-3278-m5g4","RHSA-2023:3663","UBUNTU-CVE-2022-22976"],"status":"published","title":"Integer overflow in BCrypt class in Spring Security","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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02344,"percentile":0.83763,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-190"],"published":"2022-05-19T14:50:46Z","modified":"2026-10-28T02:30:24Z","exploits":[{"source":"pocgithub","id":"spring-io/cve-2022-22976-bcrypt-skips-salt","title":"spring-io/cve-2022-22976-bcrypt-skips-salt","date":"2022-05-10","url":"https://github.com/spring-io/cve-2022-22976-bcrypt-skips-salt"}],"fixes":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","fixed_in":["5.6.4","5.5.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.security:spring-security-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.6.0"},{"fixed":"5.6.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.security:spring-security-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0.RELEASE"},{"fixed":"5.5.7"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.security:spring-security-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0.RELEASE"},{"fixed":"5.5.7"}]}],"versions":["5.2.0.RELEASE","5.2.1.RELEASE","5.2.10.RELEASE","5.2.11.RELEASE","5.2.12.RELEASE","5.2.13.RELEASE","5.2.14.RELEASE","5.2.15.RELEASE","5.2.2.RELEASE","5.2.3.RELEASE","5.2.4.RELEASE","5.2.5.RELEASE","5.2.6.RELEASE","5.2.7.RELEASE","5.2.8.RELEASE","5.2.9.RELEASE","5.3.0.RELEASE","5.3.1.RELEASE","5.3.10.RELEASE","5.3.11.RELEASE","5.3.12.RELEASE","5.3.13.RELEASE","5.3.2.RELEASE","5.3.3.RELEASE","5.3.4.RELEASE","5.3.5.RELEASE","5.3.6.RELEASE","5.3.7.RELEASE","5.3.8.RELEASE","5.3.9.RELEASE","5.4.0","5.4.1","5.4.10","5.4.11","5.4.2","5.4.3","5.4.4","5.4.5","5.4.6","5.4.7","5.4.8","5.4.9","5.5.0","5.5.1","5.5.2","5.5.3","5.5.4","5.5.5","5.5.6"]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.security:spring-security-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.6.0"},{"fixed":"5.6.4"}]}],"versions":["5.6.0","5.6.1","5.6.2","5.6.3"]},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.11::el8","package":"jenkins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.401.1.1686831596-3.el8"}]}],"bundled":17},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.11::el8","package":"jenkins-2-plugins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.11.1686831822-1.el8"}]}],"bundled":17},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.6.RELEASE-7","3.0.6.RELEASE-8","3.0.6.RELEASE-9","3.0.6.RELEASE-10","3.0.6.RELEASE-11","3.0.6.RELEASE-12","3.0.6.RELEASE-13","3.0.6.RELEASE-13ubuntu0.1~esm1","3.0.6.RELEASE-13ubuntu0.1~esm2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.13-3","3.2.13-4","3.2.13-5","3.2.13-5ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.11-1","4.3.12-1","4.3.13-2","4.3.14-1","4.3.22-1~18.04","4.3.22-1~18.04.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.22-4","4.3.22-4ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.30-1","4.3.30-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.30-2","4.3.30-2ubuntu0.24.04.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.30-2ubuntu1","4.3.30-3ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.30-3ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libspring-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.30-3ubuntu1"]}],"products":[{"vendor":"netapp","product":"active_iq_unified_manager"},{"vendor":"oracle","product":"financial_services_crime_and_compliance_management_studio"},{"vendor":"spring","product":"spring security"},{"vendor":"vmware","product":"spring_security"}],"references":[{"url":"https://tanzu.vmware.com/security/cve-2022-22976","tags":["x_refsource_MISC","x_transferred","Mitigation","Vendor Advisory","web","article","report"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20220707-0003/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22976","tags":["advisory"]},{"url":"https://github.com/spring-projects/spring-security/commit/388a7b62b906bd56deadb7ca45248fa1a63bdf12","tags":["web"]},{"url":"https://github.com/spring-projects/spring-security/commit/a40f73521c0dd88b879ff6165d280e78bdf8154f","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20220707-0003","tags":["web"]},{"url":"https://github.com/advisories/GHSA-wx54-3278-m5g4"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22976.json","tags":["advisory"]},{"url":"https://github.com/spring-projects/spring-security","tags":["package"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3663","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2087214","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2116952","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2135244","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2135247","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2135770","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2135771","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2170431","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2177626","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2177629","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2177632","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2177634","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2180528","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2182788","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2182864","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2188542","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2207830","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2207835","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3663.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-2048","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-2048","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2048","tags":["advisory"]},{"url":"https://github.com/eclipse/jetty.project/security/advisories/GHSA-wgmr-mf83-7x4j","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-22976","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-22976","tags":["advisory","report"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-40149","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-40149","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40149","tags":["advisory"]},{"url":"https://github.com/jettison-json/jettison/releases/tag/jettison-1.5.1","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-40150","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-40150","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40150","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-41966","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41966","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41966","tags":["advisory"]},{"url":"https://github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-42003","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42003","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42003","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-42004","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42004","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42004","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-1370","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-1370","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1370","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-493p-pfq6-5258","tags":["advisory"]},{"url":"https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-1436","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-1436","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1436","tags":["advisory"]},{"url":"https://research.jfrog.com/vulnerabilities/jettison-json-array-dos-xray-427911/","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-20860","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-20860","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20860","tags":["advisory"]},{"url":"https://spring.io/blog/2023/03/20/spring-framework-6-0-7-and-5-3-26-fix-cve-2023-20860-and-cve-2023-20861","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-26464","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-26464","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26464","tags":["advisory"]},{"url":"https://www.ibm.com/support/pages/security-bulletin-vulnerability-log4j-1216jar-affect-ibm-operations-analytics-log-analysis-cve-2023-26464","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-27898","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-27898","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27898","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-3037","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-27899","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-27899","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27899","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-2823","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-27903","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-27903","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27903","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-3058","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-27904","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-27904","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27904","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-2120","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-32977","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-32977","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32977","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2023-05-16/#SECURITY-3042","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-32981","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-32981","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32981","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2023-05-16/#SECURITY-2196","tags":["article"]},{"url":"https://ubuntu.com/security/CVE-2022-22976","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-22976","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.","status":"published","published":"2022-05-19T14:50:46Z","modified":"2024-08-03T03:28:42.454Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:34:26.645563Z"}],"euvd":[{"id":"EUVD-2022-5665","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.","status":"published","published":"2022-05-19T14:50:46Z","modified":"2024-08-03T03:28:42Z","updated_at":"2026-11-03T03:25:51.741657Z"}],"ghsa":[{"id":"GHSA-wx54-3278-m5g4","title":"Integer overflow in BCrypt class in Spring Security","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.","status":"published","published":"2022-05-20T00:00:38Z","modified":"2024-06-13T21:48:36Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:37:54.624184Z"}],"nvd":[{"id":"CVE-2022-22976","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.","status":"published","published":"2022-05-19T15:15:08Z","modified":"2026-06-17T04:29:16.813Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:07:20.264424Z"}],"osv":[{"id":"GHSA-wx54-3278-m5g4","title":"Integer overflow in BCrypt class in Spring Security","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.","status":"published","published":"2022-05-20T00:00:38Z","modified":"2024-06-13T22:00:44.940574Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"RHSA-2023:3663","title":"Red Hat Security Advisory: jenkins and jenkins-2-plugins security update","status":"published","published":"2024-09-30T16:35:09Z","modified":"2026-10-13T10:04:28Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:11.154197Z"},{"id":"UBUNTU-CVE-2022-22976","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.","status":"published","published":"2022-05-19T15:15:00Z","modified":"2026-10-17T12:56:02.259940694Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T16:53:53.13624Z"},{"id":"CVE-2022-22976","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.","status":"published","published":"2022-05-19T14:50:46Z","modified":"2026-10-28T02:30:24.320399272Z","cwes":["CWE-190"],"updated_at":"2026-11-02T15:44:24.061177Z"}]}}
