CVE-2025-8419

Org.keycloak/keycloak-services: keycloak smtp inject vulnerability

Published Aug 6, 2025 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Workaround

Currently, no mitigation is available for this vulnerability.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-23863 Keycloak SMTP Inject Vulnerability
Github GHSA Github GHSA GHSA-m4j5-5x4r-2xp9 Keycloak SMTP Inject Vulnerability
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak:
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.0
cpe:/a:redhat:build_keycloak:26.0::el9
cpe:/a:redhat:build_keycloak:26.2
cpe:/a:redhat:build_keycloak:26.2::el9
References
Type Values Removed Values Added
First Time appeared Redhat keycloak
CPEs cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:*
Vendors & Products Redhat keycloak
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Org.keycloak/keycloak-services: keycloak smtp inject vulnerability
First Time appeared Redhat
Redhat build Keycloak
Weaknesses CWE-93
CPEs cpe:/a:redhat:build_keycloak:
Vendors & Products Redhat
Redhat build Keycloak
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 31, 2026, 12:28 AM
Reserved
Jul 31, 2025, 2:26 PM
Status
Modified
Published
Aug 6, 2025, 5:15 PM
Modified
Aug 31, 2026, 1:16 AM
Severity
Moderate
Public date
Aug 6, 2025, 12:00 AM