Vulnerability · Published Oct 11, 2024 · Assigned by snyk

CVE-2024-21534

Critical 9.8

In plain English

A critical-severity code injection in jsonpath-plus. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 9.0% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)9.0%top 4.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.webjars.npm:jsonpath-plusno fix listedGHSA-pppg-cpfq-h7wr
npmjsonpath-plus10.2.0GHSA-pppg-cpfq-h7wr

Affected products (as reported)

VendorProductVersions
n/a jsonpath-plus 0 – before *
n/a org.webjars.npm:jsonpath-plus 0 – before *

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P

References