CVE-2025-8419
Org.keycloak/keycloak-services: keycloak smtp inject vulnerability
Also known as GHSA-m4j5-5x4r-2xp9
Mitigation
- Upgrade org.keycloak:keycloak-services to one of 26.2.8, 26.3.3 (or later in the same release line).
- Vendor workaround: Currently, no mitigation is available for this vulnerability.
Who should check
- Projects that depend on Maven package org.keycloak:keycloak-services (< 26.2.8)
- Anyone running keycloak < 26.3.3
- Anyone running Red Hat build of Keycloak 26.0 (versions: see the vendor advisory)
- Anyone running Red Hat build of Keycloak 26.0 all versions
- Anyone running Red Hat build of Keycloak 26.2 (versions: see the vendor advisory)
- Anyone running Red Hat build of Keycloak 26.2 all versions
- Anyone running Red Hat Build of Keycloak all versions
Vulnerability facts
- Affected
- org.keycloak:keycloak-services < 26.2.8
- Fixed in
- 26.2.8, 26.3.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.80% chance of exploitation in 30 days (percentile 54, 2026-11-26)
- CWE
- CWE-93
- Modified
Description
A vulnerability was found in Keycloak-services. Special characters used during e-mail registration may perform SMTP Injection and unexpectedly send short unwanted e-mails. The email is limited to 64 characters (limited local part of the email), so the attack is limited to very shorts emails (subject and little data, the example is 60 chars). This flaw's only direct consequence is an unsolicited email being sent from the Keycloak server. However, this action could be a precursor for more sophisticated attacks.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.keycloak:keycloak-services | < 26.2.8 | 26.2.8, 26.3.3 | osv |
| keycloak | < 26.3.3 | — | cvelist |
| Red Hat build of Keycloak 26.0 | — | — | cvelist |
| Red Hat build of Keycloak 26.0 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.0 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.0 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.2 | — | — | cvelist |
| Red Hat build of Keycloak 26.2 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.2 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.2 | all versions | — | cvelist |
| Red Hat Build of Keycloak | all versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-8419. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-8419.md Affected: org.keycloak:keycloak-services < 26.2.8 Fixed in: 26.2.8, 26.3.3 Steps: 1. Search this machine and project for org.keycloak:keycloak-services (Maven), keycloak, Red Hat build of Keycloak 26.0, Red Hat build of Keycloak 26.2, Red Hat Build of Keycloak: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/errata/RHSA-2025:15336
- https://access.redhat.com/errata/RHSA-2025:15337
- https://access.redhat.com/errata/RHSA-2025:15338
- https://access.redhat.com/errata/RHSA-2025:15339
- https://access.redhat.com/security/cve/CVE-2025-8419
- https://bugzilla.redhat.com/show_bug.cgi?id=2385776
- https://github.com/keycloak/keycloak/security/advisories/GHSA-m4j5-5x4r-2xp9
- https://nvd.nist.gov/vuln/detail/CVE-2025-8419
FAQ
Is CVE-2025-8419 being exploited?
There is no confirmed exploitation: CVE-2025-8419 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-8419?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-8419?
org.keycloak:keycloak-services < 26.2.8.
Is there a fix for CVE-2025-8419?
Yes. Fixed in 26.2.8, 26.3.3. Upgrade org.keycloak:keycloak-services to one of 26.2.8, 26.3.3 (or later in the same release line). Vendor workaround: Currently, no mitigation is available for this vulnerability.
How do I check if I'm affected by CVE-2025-8419?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.