CVE-2024-29178 Apache StreamPark: FreeMarker SSTI RCE Vulnerability

High 8.8 Published Updated

Authenticated attackers can achieve remote code execution on Apache StreamPark servers via FreeMarker template injection.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-29178?

CVE-2024-29178 is a high-severity code injection vulnerability in Apache StreamPark, published on 18 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

On versions before 2.1.4, a user could log in and perform a template injection attack resulting in Remote Code Execution on the server, The attacker must successfully log into the system to launch an attack, so this is a moderate-impact vulnerability.

Mitigation:

all users should upgrade to 2.1.4

Weakness: CWE-94

Which versions are affected by CVE-2024-29178?

2 open source packages ship an affected version, including org.apache.streampark:streampark. It affects 1 product.

PackageAffectedFixed in
org.apache.streampark:streampark MavenAll versions2.1.4
org.apache.streampark:streampark MavenAll versions2.1.4

Products include Apache Streampark.

How do I fix CVE-2024-29178?

Upgrade org.apache.streampark:streampark to 2.1.4 or later.

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

Is CVE-2024-29178 being exploited?

There is no known exploitation of CVE-2024-29178 in the wild and no public exploit code.

Sources

Also known as GHSA-vv8h-m63v-53pq.

Is CVE-2024-29178 in your software?

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

Check your SBOMs for free