CVE-2024-22533 Beetl Server-Side Template Injection vulnerability
Attackers can achieve arbitrary code execution by bypassing blacklist filters in the Beetl template engine when controlling input templates.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-22533?
CVE-2024-22533 is a critical code injection vulnerability in n/a, published on 2 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Before Beetl v3.15.12, the rendering template has a server-side template injection (SSTI) vulnerability. When the incoming template is controllable, it will be filtered by the DefaultNativeSecurityManager blacklist. Because blacklist filtering is not strict, the blacklist can be bypassed, leading to arbitrary code execution.
Weakness: CWE-94
Which versions are affected by CVE-2024-22533?
2 open source packages ship an affected version, including com.ibeetl:beetl-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.ibeetl:beetl-core Maven | All versions | 3.15.13.RELEASE |
com.ibeetl:beetl-core Maven | All versions | 3.15.13.RELEASE |
Products include Xiandafu Beetl.
How do I fix CVE-2024-22533?
Upgrade com.ibeetl:beetl-core to 3.15.13.RELEASE or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-22533 being exploited?
There is no known exploitation of CVE-2024-22533 in the wild and no public exploit code.
Sources
Also known as GHSA-9gh8-877r-g477.