CVE Vulnerabilities

CVE-2024-10270

Inefficient Regular Expression Complexity

Published: Nov 25, 2024 | Modified: Nov 25, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Ubuntu
root.io logo minimus.io logo echo.ai logo

A vulnerability was found in the Keycloak-services package. If untrusted data is passed to the SearchQueryUtils method, it could lead to a denial of service (DoS) scenario by exhausting system resources due to a Regex complexity.

Weakness

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Affected Software

NameVendorStart VersionEnd Version
Red Hat build of Keycloak 24RedHatrhbk/keycloak-operator-bundle:24.0.9-1*
Red Hat build of Keycloak 24RedHatrhbk/keycloak-rhel9:24-18*
Red Hat build of Keycloak 24RedHatrhbk/keycloak-rhel9-operator:24-18*
Red Hat build of Keycloak 24.0.9RedHatorg.keycloak/keycloak-services*
Red Hat build of Keycloak 26.0RedHatrhbk/keycloak-operator-bundle:26.0.6-2*
Red Hat build of Keycloak 26.0RedHatrhbk/keycloak-rhel9:26.0-5*
Red Hat build of Keycloak 26.0RedHatrhbk/keycloak-rhel9-operator:26.0-6*
Red Hat build of Keycloak 26.0.6RedHatorg.keycloak/keycloak-services*

Extended Description

	  Attackers can create crafted inputs that
	  intentionally cause the regular expression to use
	  excessive backtracking in a way that causes the CPU
	  consumption to spike.

Potential Mitigations

References