VYPR
Critical severityNVD Advisory· Published May 4, 2023· Updated Jan 29, 2025

CVE-2023-30331

CVE-2023-30331

Description

An issue in the render function of beetl v3.15.0 allows attackers to execute server-side template injection (SSTI) via a crafted payload.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Server-side template injection in beetl v3.15.0 allows attackers to execute arbitrary code via crafted payloads, bypassing the security manager's blacklist.

Vulnerability

Description CVE-2023-30331 is a server-side template injection (SSTI) vulnerability in the render function of beetl v3.15.0. The root cause lies in the DefaultNativeSecurityManager's blacklist-based approach, which blocks access to classes like Runtime, Process, ProcessBuilder, and System in the java.lang package. However, this blacklist can be bypassed using Java reflection, allowing attackers to invoke arbitrary methods [2][3].

Exploitation

An attacker can inject a crafted payload that leverages Java reflection to instantiate classes such as javax.script.ScriptEngineManager and execute arbitrary code. The official PoC demonstrates using the JavaScript engine to execute OS commands, like open -a Calculator on macOS, without authentication [3]. The vulnerability requires no special privileges and can be triggered by passing malicious input to beetl's template rendering.

Impact

Successful exploitation allows remote code execution with the privileges of the application server. An attacker can execute arbitrary system commands, access sensitive data, or compromise the underlying host. This is a critical vulnerability as it enables full server control [2].

Mitigation

As of the reference reports, beetl had not released a fix. The recommended mitigation is to restrict reflection in the security manager or adopt a whitelist-based approach instead of a blacklist [4]. Users should upgrade to a patched version if available or apply workarounds to limit template input from untrusted sources.

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
com.ibeetl:beetlMaven
<= 3.15.0.RELEASE

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.