CVE-2023-30331 Server-side template injection in beetl

Critical 9.8 Published Updated

Attackers can execute arbitrary code via server-side template injection in the Beetl Java template engine library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-30331?

CVE-2023-30331 is a critical code injection vulnerability in n/a, published on 4 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by CVE-2023-30331?

2 open source packages ship an affected version, including com.ibeetl:beetl. It affects 1 product.

PackageAffectedFixed in
com.ibeetl:beetl MavenAll versions to 3.15.0.RELEASENone
com.ibeetl:beetl MavenAll versions to 3.15.0.RELEASENone

Products include Beetl Project Beetl.

How do I fix CVE-2023-30331?

No fix has been published for CVE-2023-30331 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-30331 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30331 exists.

Sources

Also known as GHSA-m69h-4frq-vwq7.

Is CVE-2023-30331 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free