cve.bz

CVE-2025-8419 redhat keycloak: CRLF Injection

5.3 mediumEPSS 0.6%Fix available

Medium (5.3) in redhat keycloak. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-services 26.2.8, 26.3.3.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-08-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-8419 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-8419?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-8419?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-8419 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
keycloakbefore 26.3.3

Fixed in

ProductFixed in
Red Hat build of Keycloak 26.026.0.15-1
Red Hat build of Keycloak 26.026.0-18
Red Hat build of Keycloak 26.026.0-19
Red Hat build of Keycloak 26.226.2.8-1
Red Hat build of Keycloak 26.226.2-8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m4j5-5x4r-2xp9Mavenorg.keycloak:keycloak-services<26.2.826.2.8
GHSA-m4j5-5x4r-2xp9Mavenorg.keycloak:keycloak-services>=26.3.0 <26.3.326.3.3

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A moderate-severity SMTP injection flaw was found in the Red Hat Build of Keycloak (RHBK) keycloak-services component (CVSS 3.1 score 5.3, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N). During email registration, an unauthenticated remote attacker can supply an email address containing specially crafted UTF-8 characters whose encoded bytes inject raw SMTP commands into the outgoing mail session, causing the Keycloak server to send a short unsolicited email to an address of the attacker's choosing. Because the local part of the email address is limited to 64 characters, the injected message content is very short. The direct consequence is limited to integrity impact - an unwanted email originating from the Keycloak server, which could serve as a precursor to more sophisticated phishing or spam attacks; there is no impact on confidentiality or availability. Red Hat's severity assessment is consistent with the upstream NIST rating. Remediation for the affected Red Hat Build of Keycloak streams is handled through the delegated process, with a fix being pursued for the affected stream.

Red Hat's mitigation

Currently, no mitigation is available for this vulnerability.

ProductPackageStateAdvisory
Red Hat build of Keycloak 26.0Fixed 2025-09-04RHSA-2025:15336
Red Hat build of Keycloak 26.0rhbk/keycloak-operator-bundle:26.0.15-1Fixed 2025-09-04RHSA-2025:15337
Red Hat build of Keycloak 26.0rhbk/keycloak-rhel9:26.0-18Fixed 2025-09-04RHSA-2025:15337
Red Hat build of Keycloak 26.0rhbk/keycloak-rhel9-operator:26.0-19Fixed 2025-09-04RHSA-2025:15337
Red Hat build of Keycloak 26.2Fixed 2025-09-04RHSA-2025:15339
Red Hat build of Keycloak 26.2rhbk/keycloak-operator-bundle:26.2.8-1Fixed 2025-09-04RHSA-2025:15338
Red Hat build of Keycloak 26.2rhbk/keycloak-rhel9:26.2-8Fixed 2025-09-04RHSA-2025:15338
Red Hat build of Keycloak 26.2rhbk/keycloak-rhel9-operator:26.2-8Fixed 2025-09-04RHSA-2025:15338
Red Hat Build of Keycloakkeycloak-servicesWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-8419.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON