Skip to main content
CVE-2024-4028VulnerabilityPublished Updated

CVE-2024-4028: keycloak · Improper Input Validation

Affects keycloakSource CVE Database V5

0

Not known to be exploited · CVSS 3.8 Low.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
3.8Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Feb 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
Mavenorg.keycloak/keycloakpkg:maven/org.keycloak/keycloakOther threatsAffected
  • =18.0.8
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-4028, organizations should first verify if they are running the affected Keycloak version 18.0.8 and plan to upgrade to a patched version once available. In the absence of an official patch, administrators should restrict access to the Keycloak admin console to trusted personnel only and enforce strict privilege management to limit the number of users with permission creation capabilities. Implementing web application firewalls (WAFs) with rules to detect and block XSS payloads targeting the admin console can provide additional protection. Regularly audit permissions and resource configurations for suspicious entries that may indicate exploitation attempts. Employ Content Security Policy (CSP) headers to reduce the impact of potential XSS attacks by restricting script execution sources. Monitoring and logging administrative actions can help detect anomalous behavior early. Finally, coordinate with Keycloak maintainers and security advisories to apply official patches promptly once released.

Description

A vulnerability was found in Keycloak. This issue may allow a privileged attacker to use a malicious payload as the permission while creating items (Resource and Permissions) from the admin console, leading to a stored cross-site scripting (XSS) attack.

References

Community reviews

Loading reviews…