CVE-2024-29831 Apache DolphinScheduler: RCE by arbitrary js execution

High 8.8 Published Updated

Authenticated users can execute arbitrary JavaScript on the server via the switch task plugin, requiring an upgrade to mitigate.

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-29831?

CVE-2024-29831 is a high-severity code injection vulnerability in Apache DolphinScheduler, published on 9 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Improper Input Validation vulnerability in Apache DolphinScheduler. An authenticated user can cause arbitrary, unsandboxed javascript to be executed on the server. If you are using the switch task plugin, please upgrade to version 3.2.2.

Weakness: CWE-20

Which versions are affected by CVE-2024-29831?

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

PackageAffectedFixed in
org.apache.dolphinscheduler:dolphinscheduler MavenAll versions3.2.2
org.apache.dolphinscheduler:dolphinscheduler MavenAll versions3.2.2

Products include Apache Dolphinscheduler.

How do I fix CVE-2024-29831?

Upgrade org.apache.dolphinscheduler:dolphinscheduler to 3.2.2 or later.

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

Is CVE-2024-29831 being exploited?

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

Sources

Also known as GHSA-m9q4-p56m-mc6q.

Is CVE-2024-29831 in your software?

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

Check your SBOMs for free