CVE-2025-8419: Org.keycloak/keycloak-services: keycloak smtp inject vulnerability

Published Jul 31, 2025
·
Updated

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.

Other sources

Email injection that can send a spam message (very short) to an email eddress.

1. Using for example the email registration the attacker uses a crafted email address with UTF-8 characters like: 甲申申甶甴甸电甹甸甸畀畱畱瘮畣畯畭甾瘍瘊畄畁畔畁瘍瘊畓畵畢番略畣畴町畐畗畎畅畄瘍瘊瘍瘊畈畡畣畫瘡瘍瘊瘮瘍瘊畑畕畉畔瘍瘊 2. The special chars in UTF-8 have in lower byte the value: 2336485988>\r\nDATA\r\nSubject:PWNED\r\n\r\nHack!\r\n.\r\nQUIT\r\n 3. This creates the email injection that sends the email to the address 2336485988

Red Hat

Affected Software

5 affected componentsFixes available
Keycloak keycloak-services
maven/org.keycloak:keycloak-services<=26.3.2
redhat keycloak
maven/org.keycloak:keycloak-services>=26.3.0<26.3.3
26.3.3
maven/org.keycloak:keycloak-services<26.2.8
26.2.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.keycloak:keycloak-services to a version that resolves this vulnerability.

    Fixed in 26.3.3
  2. Upgrade

    Upgrade maven/org.keycloak:keycloak-services to a version that resolves this vulnerability.

    Fixed in 26.2.8

Event History

Jul 31, 2025
Data Sourced
via Red Hat·02:29 PM
DescriptionSeverityAffected Software
Aug 6, 2025
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:31 PM
Data Sourced
via GitHub·06:31 PM
DescriptionSeverityWeaknessAffected Software
Sep 17, 2025
Updated
via GitHub·08:24 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-8419?

CVE-2025-8419 is considered a moderate severity vulnerability due to its potential for SMTP injection during e-mail registration.

2

How do I fix CVE-2025-8419?

To mitigate CVE-2025-8419, update Keycloak-services to version 26.3.3 or later, which addresses the SMTP injection issue.

3

What impact does CVE-2025-8419 have on email functionality?

CVE-2025-8419 may allow attackers to send short unwanted emails through SMTP injection during user registration.

4

Which versions of Keycloak-services are affected by CVE-2025-8419?

CVE-2025-8419 affects Keycloak-services versions up to and including 26.3.2.

5

Is CVE-2025-8419 a remote or local vulnerability?

CVE-2025-8419 is a remote vulnerability, as it can be exploited over the network during the email registration process.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203