CVE-2025-8419

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.

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.

Mitigation

Currently, no mitigation is available for this vulnerability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.35.35.3
Attack VectorNetworkNetworkNetwork
Attack ComplexityLowLowLow
Privileges RequiredNoneNoneNone
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityNoneNoneNone
Integrity ImpactLowLowLow
Availability ImpactNoneNoneNone

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

NVD: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Application Data

Frequently Asked Questions

Want to get errata notifications? Sign up here.