CVE-2025-7365: A flaw was found in Keycloak.
High CVSS 7.1
- CVE id
- CVE-2025-7365
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Keycloak Runtimes and servers |
see the advisory | not fixed yet |
How to fix it
No fix yet. No fixed Keycloak release is listed yet.
- Check the advisory and its references below for a workaround or a configuration change that turns off the affected feature.
- Limit exposure: don't pass untrusted input to the affected code path, and keep it off public endpoints if you can.
- Upgrade Keycloak (the quay.io/keycloak/keycloak image tag) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
A flaw was found in Keycloak. When an authenticated attacker attempts to merge accounts with another existing account during an identity provider (IdP) login, the attacker will subsequently be prompted to "review profile" information. This vulnerability allows the attacker to modify their email address to match that of a victim's account, triggering a verification email sent to the victim's email address. The attacker's email address is not present in the verification email content, making it a potential phishing opportunity. If the victim clicks the verification link, the attacker can gain access to the victim's account.
References
- CVE-2025-7365 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-7365
- Web: https://access.redhat.com/errata/RHSA-2025:11986
- Web: https://access.redhat.com/errata/RHSA-2025:11987
- Web: https://access.redhat.com/errata/RHSA-2025:12015
- Web: https://access.redhat.com/errata/RHSA-2025:12016
- Web: https://access.redhat.com/security/cve/CVE-2025-7365
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2378852
- Web: https://github.com/keycloak/keycloak/issues/40446
- Web: https://github.com/keycloak/keycloak/pull/40520
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.