CVE-2024-21534 JSONPath Plus Remote Code Execution (RCE) Vulnerability

Critical 9.8 Published Updated

Attackers can execute arbitrary code on systems using the jsonpath-plus library due to unsafe VM usage and improper input sanitization.

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

CVE-2024-21534 is a critical code injection vulnerability in jsonpath-plus, published on 11 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of the package jsonpath-plus are vulnerable to Remote Code Execution (RCE) due to improper input sanitization. An attacker can execute aribitrary code on the system by exploiting the unsafe default usage of vm in Node. **Note:** There were several attempts to fix it in versions [10.0.0-10.1.0](https://github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0) but it could still be exploited using [different payloads](https://github.com/JSONPath-Plus/JSONPath/issues/226).

Weakness: CWE-94

Which versions are affected by CVE-2024-21534?

4 open source packages ship an affected version, including org.webjars.npm:jsonpath-plus and jsonpath-plus.

PackageAffectedFixed in
org.webjars.npm:jsonpath-plus MavenAll versions to 6.0.1None
org.webjars.npm:jsonpath-plus MavenAll versions to 6.0.1None
jsonpath-plus npmAll versions10.2.0
jsonpath-plus npmAll versions10.2.0

How do I fix CVE-2024-21534?

Upgrade to a fixed version.

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

Is CVE-2024-21534 being exploited?

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

Public exploit code: 3 proofs of concept on GitHub.

Sources

Also known as CLSA-2026-1774657375, GHSA-pppg-cpfq-h7wr, MINI-m75p-pxrh-3xv8, ROOT-APP-NPM-CVE-2024-21534.

Is CVE-2024-21534 in your software?

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

Check your SBOMs for free