Skip to content
Threat Feed
high advisory

Remote Code Execution in Quarkus via Qute Template Engine

The Qute template engine in Quarkus fails to properly restrict access to sensitive Java internals, allowing an attacker to achieve remote code execution via template injection.

CVE search metadata

CVE search record: CVE-2026-12894. Severity: high. CVSS: 8.8. KEV: no. Product: Quarkus. Brief: Remote Code Execution in Quarkus via Qute Template Engine. Brief link: https://feed.craftedsignal.io/briefs/2026-08-cve-2026-12894-quarkus/

CVE-2026-12894 is a critical vulnerability within the Qute template engine, a core component used by Red Hat Quarkus for generating dynamic content such as HTML pages and emails. The vulnerability resides in the ReflectionValueResolver, which acts as a bridge for accessing data properties within templates. Due to improper validation logic, the engine fails to restrict access to sensitive Java internal functions when processing specific data types, particularly Enums.

An attacker who can provide or influence the input rendered by a template can exploit this flaw to escape the intended sandbox and invoke unauthorized Java methods. This allows for arbitrary command execution on the host server. This vulnerability is significant for environments leveraging Quarkus for user-controllable dynamic rendering, where input sanitization might be insufficient to prevent the injection of malicious template expressions. Organizations should prioritize updating Quarkus and reviewing custom template implementations that accept untrusted user input.

Impact

Successful exploitation of this vulnerability allows unauthenticated attackers to achieve remote code execution on the server hosting the Quarkus application. This can lead to full system compromise, data exfiltration, or the deployment of persistent threats within the application environment. The severity is high (CVSS 8.8), reflecting the ease of exploitation once an attacker has the ability to provide input to the template rendering process.

Recommendation

  • Upgrade all instances of Quarkus to the latest patched release that incorporates the fix for the ReflectionValueResolver component.
  • Audit applications utilizing Qute templates to identify endpoints that process untrusted user input; implement strict input validation and sandboxing.
  • Monitor web server logs for anomalous POST requests or inputs containing template expressions involving Enums or reflection-related keywords.
  • Review application code for custom resolvers that may be mirroring the insecure behavior documented in CVE-2026-12894.

Immediate actions

Patch Quarkus to the vendor-recommended version

IT Operations 72h

Threat Hunt

Search for template injection patterns in web server logs targeting Quarkus applications

T1190 medium medium confidence hunt now

Data: webserver access logs

Mitigations

Upgrade Quarkus

immediate IT Operations

CVE-2026-12894