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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.webjars.npm:jsonpath-plus | no fix listed | GHSA-pppg-cpfq-h7wr |
| npm | jsonpath-plus | 10.2.0 | GHSA-pppg-cpfq-h7wr |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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