Skip to content

Server-Side Template Injection (SSTI) vulnerability in ReflectionValueResolver of the Quarkus Qute template engine

High
cescoffier published GHSA-prf4-p7fp-fr79 Sep 1, 2026

Package

maven io.quarkus:quarkus-qute (Maven)

Affected versions

<3.39.2

Patched versions

4.0.0, 3.40.0, 3.39.2, 3.33.4, 3.27.6

Description

A Server-Side Template Injection (SSTI) vulnerability was discovered in the io.quarkus.qute.ReflectionValueResolver component of the Quarkus Qute template engine. The engine implements a security filter intended to prevent access to sensitive methods declared on java.lang.Object. However, this filter can be bypassed by navigating through methods declared on other classes that return a java.lang.Class object.

Specifically, an attacker can use Enum.getDeclaringClass() on any Enum instance present in the template context to obtain a Class object. Because the security filter only checks if a method is declared on Object.class, it permits calls to methods on the Class instance such as getClassLoader(). This allows an attacker to construct a reflection chain (e.g., enum.declaringClass.classLoader.loadClass('java.lang.Runtime').getMethod('getRuntime').invoke(null).exec('...')) to achieve arbitrary remote code execution (RCE) in the context of the Java process.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2026-12894

Weaknesses

No CWEs

Credits