Org.keycloak/keycloak-services: keycloak smtp inject vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Keycloak | keycloak | before 26.3.3 | 26.3.3 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0.15-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0-18 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0-19 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | 26.2.8-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | 26.2-8 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | 26.2-8 | Patch available | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | No fix listed | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 26.2.8 | 26.2.8 | Patch available | GHSA-m4j5-5x4r-2xp9 |
| — | org.keycloak:keycloak-services (Maven) | 26.3.0 to before 26.3.3 | 26.3.3 | Patch available | GHSA-m4j5-5x4r-2xp9 |
- keycloak VendorKeycloak Affected before 26.3.3 Fixed in 26.3.3 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0.15-1 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-18 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-19 Patch available CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2.8-1 Patch available CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-8 Patch available CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-8 Patch available CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — No fix listed CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 26.2.8 Fixed in 26.2.8 Patch available GHSA-m4j5-5x4r-2xp9
- org.keycloak:keycloak-services (Maven) Vendor— Affected 26.3.0 to before 26.3.3 Fixed in 26.3.3 Patch available GHSA-m4j5-5x4r-2xp9
Remediation
- Fix · CNA keycloak (Keycloak) Fixed in 26.3.3
- Fix · GHSA-m4j5-5x4r-2xp9 org.keycloak:keycloak-services (Maven) Fixed in 26.2.8 Advisory →
- Fix · GHSA-m4j5-5x4r-2xp9 org.keycloak:keycloak-services (Maven) Fixed in 26.3.3 Advisory →
Red Hat 4 advisories
- RHSA-2025:15337 Released 2025-09-04 · Red Hat rating ModerateRed Hat build of Keycloak 26.0.15 Images Update
- Red Hat build of Keycloak 26.0 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2025:15338 Released 2025-09-04 · Red Hat rating ModerateRed Hat build of Keycloak 26.2.8 Images Security Update
- Red Hat build of Keycloak 26.2 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2025:15339 Released 2025-09-04 · Red Hat rating ModerateRed Hat build of Keycloak 26.2.8 Security Update
- Red Hat build of Keycloak 26.2
Show 1 more Red Hat advisories
- RHSA-2025:15336 Released 2025-09-04 · Red Hat rating ModerateRed Hat build of Keycloak 26.0.15 Update
- Red Hat build of Keycloak 26.0
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Affected | No fix planned: Will not fix |
| Red Hat build of Keycloak 26.0 | Fixed | RHSA-2025:15336, RHSA-2025:15337 |
| Red Hat build of Keycloak 26.2 | Fixed | RHSA-2025:15338, RHSA-2025:15339 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-8419
- 2026-10-03 Alias added: GHSA-m4j5-5x4r-2xp9
References
More Keycloak vulnerabilities
- TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
- TI-2017-05120 It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens… CVSS 3.0CRITICAL 9.8
- TI-2017-08952 Weak password recovery in Red Hat Keycloak CVSS 3.0HIGH 8.8
- TI-2014-03024 The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak… CVSS 3.0HIGH 8.8
- TI-2026-01295 Org.keycloak/keycloak-quarkus-server: keycloak: unauthorized access via jwt authorization grant with disabled users CVSS 3.1HIGH 8.1
- TI-2017-08950 Insufficient session expiration in Red Hat keycloak CVSS 3.0HIGH 7.5
Sources
- CVE-2025-8419 · CVE Program
- CVE-2025-8419 · NVD
- FIRST EPSS
- GHSA-m4j5-5x4r-2xp9 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-8419 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences