Vulnerability · Published Aug 6, 2025 · Assigned by redhat
CVE-2025-8419Org.keycloak/keycloak-services: keycloak smtp inject vulnerability
Medium 5.3
In plain English
A medium-severity security flaw in keycloak from Keycloak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-services | 26.2.8 | GHSA-m4j5-5x4r-2xp9 |
| Maven | org.keycloak:keycloak-services | 26.3.3 | GHSA-m4j5-5x4r-2xp9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Keycloak | keycloak | 0 – before 26.3.3 |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat Build of Keycloak | see references |
Weakness: CWE-93 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- RHSA-2025:15336 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:15337 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:15338 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:15339 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-8419 vdb-entry, x_refsource_REDHAT
- RHBZ#2385776 issue-tracking, x_refsource_REDHAT