Keycloak <= 26.3.3 Code Injection (GHSA-w2wj-hw98-233h)

medium Nessus Plugin ID 256694

Synopsis

The remote host is missing one or more security updates.

Description

The version of Keycloak installed on the remote host is prior or equal to 26.3.3. It is, therefore, affected by code injection vulnerability as reference in GHSA-w2wj-hw98-233h advisory.

- A flaw was found in org.keycloak/keycloak-model-storage-service. The KeycloakRealmImport custom resource substitutes placeholders within imported realm documents, potentially referencing environment variables. This substitution process allows for injection attacks when crafted realm documents are processed. An attacker can leverage this to inject malicious content during the realm import procedure. This can lead to unintended consequences within the Keycloak environment. (CVE-2025-9162)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

See vendor advisory

See Also

https://github.com/advisories/GHSA-w2wj-hw98-233h

Plugin Details

Severity: Medium

ID: 256694

File Name: keycloak_GHSA-w2wj-hw98-233h.nasl

Version: 1.1

Type: local

Agent: unix

Family: Misc.

Published: 8/27/2025

Updated: 8/27/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:M/C:C/I:N/A:N

CVSS Score Source: CVE-2025-9162

CVSS v3

Risk Factor: Medium

Base Score: 4.9

Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Vulnerability Information

CPE: cpe:/a:keycloak:keycloak

Required KB Items: installed_sw/Keycloak

Patch Publication Date: 8/21/2025

Vulnerability Publication Date: 8/21/2025

Reference Information

CVE: CVE-2025-9162