{"id":"CVE-2025-22228","state":"PUBLISHED","title":"CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length","description":"BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.","publishedAt":"2025-03-20T05:49:19.275Z","updatedAt":"2026-02-26T19:09:20.934Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"vmware"},"assigner":"vmware","products":["Spring Spring Security"],"affected":[{"vendor":"Spring","product":"Spring Security","packageName":"Spring Security","defaultStatus":"affected","versions":[{"version":"5.7.x","status":"affected","lessThan":"5.7.16","versionType":"Enterprise Support Only"},{"version":"5.8.x","status":"affected","lessThan":"5.8.18","versionType":"Enterprise Support Only"},{"version":"6.0.x","status":"affected","lessThan":"6.0.16","versionType":"Enterprise Support Only"},{"version":"6.1.x","status":"affected","lessThan":"6.1.14","versionType":"Enterprise Support Only"},{"version":"6.2.x","status":"affected","lessThan":"6.2.10","versionType":"Enterprise Support Only"},{"version":"6.3.x","status":"affected","lessThan":"6.3.8","versionType":"OSS"},{"version":"6.4.x","status":"affected","lessThan":"6.4.4","versionType":"OSS"}]}],"references":["https://spring.io/security/cve-2025-22228","https://security.netapp.com/advisory/ntap-20250425-0009/"],"weaknesses":["CWE-287"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22228.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22228","state":"PUBLISHED","datePublished":"2025-03-20T05:49:19.275Z","dateUpdated":"2026-02-26T19:09:20.934Z","assignerShortName":"vmware","assignerOrgId":"dcf2e128-44bd-42ed-91e8-88f912c1401d","dateReserved":"2025-01-02T04:29:59.191Z"},"containers":{"cna":{"title":"CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length","descriptions":[{"lang":"en","value":"BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same."}],"affected":[{"vendor":"Spring","product":"Spring Security","packageName":"Spring Security","defaultStatus":"affected","versions":[{"version":"5.7.x","status":"affected","lessThan":"5.7.16","versionType":"Enterprise Support Only"},{"version":"5.8.x","status":"affected","lessThan":"5.8.18","versionType":"Enterprise Support Only"},{"version":"6.0.x","status":"affected","lessThan":"6.0.16","versionType":"Enterprise Support Only"},{"version":"6.1.x","status":"affected","lessThan":"6.1.14","versionType":"Enterprise Support Only"},{"version":"6.2.x","status":"affected","lessThan":"6.2.10","versionType":"Enterprise Support Only"},{"version":"6.3.x","status":"affected","lessThan":"6.3.8","versionType":"OSS"},{"version":"6.4.x","status":"affected","lessThan":"6.4.4","versionType":"OSS"}]}],"references":[{"url":"https://spring.io/security/cve-2025-22228"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"shortName":"vmware","orgId":"dcf2e128-44bd-42ed-91e8-88f912c1401d","dateUpdated":"2025-03-20T05:49:19.275Z"},"datePublic":"2025-03-19T08:44:00.000Z","source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-22228","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-03-21T03:55:17.357088Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","lang":"en","type":"CWE","description":"CWE-287 Improper Authentication"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T19:09:20.934Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20250425-0009/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-04-25T23:03:00.421Z"}}]}}}