{
  "id": "CVE-2025-22228",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-22228",
  "published_at": "2025-03-20T05:49:19.275Z",
  "title": "CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length",
  "vendor": "Spring",
  "product": "Spring Security",
  "cvss": {
    "score": 7.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-287",
  "cvss_by_source": {
    "cna": 7.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Spring",
        "product": "Spring Security",
        "ranges": [
          "\u003e= 5.7.x, \u003c 5.7.16",
          "\u003e= 5.8.x, \u003c 5.8.18",
          "\u003e= 6.0.x, \u003c 6.0.16",
          "\u003e= 6.1.x, \u003c 6.1.14",
          "\u003e= 6.2.x, \u003c 6.2.10",
          "\u003e= 6.3.x, \u003c 6.3.8",
          "\u003e= 6.4.x, \u003c 6.4.4"
        ],
        "fixed_in": [
          "5.7.16",
          "5.8.18",
          "6.0.16",
          "6.1.14",
          "6.2.10",
          "6.3.8",
          "6.4.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Spring Security to 5.7.16 or 5.8.18 or 6.0.16 or 6.1.14 or 6.2.10 or 6.3.8 or 6.4.4 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
