SMTP Injection in Keycloak Services via Email Registration
CVE-2025-8419 Published on August 6, 2025
Org.keycloak/keycloak-services: keycloak smtp inject vulnerability
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.
Vulnerability Analysis
CVE-2025-8419 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, with no impact on integrity, and no impact on availability.
Timeline
Reported to Red Hat.
Made public. 6 days later.
Weakness Type
What is a CRLF Injection Vulnerability?
The software uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
CVE-2025-8419 has been classified to as a CRLF Injection vulnerability or weakness.
Products Associated with CVE-2025-8419
stack.watch emails you whenever new vulnerabilities are published in Red Hat Keycloak or Red Hat Build Keycloak. Just hit a watch button to start following.
Affected Versions
keycloak:- Before 26.3.3 is affected.
- Version 26.0.15-1 and below * is unaffected.
- Version 26.0-18 and below * is unaffected.
- Version 26.0-19 and below * is unaffected.
- Version 26.2.8-1 and below * is unaffected.
- Version 26.2-8 and below * is unaffected.
- Version 26.2-8 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.