Quick answers
- Is CVE-2021-23344 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2021-23344 being exploited in the wild.
- How severe is CVE-2021-23344?
- Low severity, with a CVSS score of 3.1, published 19 March 2021.
- Which products and versions are affected?
- total.js (npm) SEMVER:introduced=0,fixed=3.4.8.
- Is there a fix for CVE-2021-23344?
- Yes. total.js (npm): upgrade to 3.4.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2021-23344 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2021-23344?
- Check whether you run total.js (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- total.js (npm): upgrade to 3.4.8 or later
npm install total.js@3.4.8
Technical details
A Remote Code Execution (RCE) vulnerability exists in the total.js framework due to improper input validation in the 'set' utility function (U.set). The vulnerability is classified as Code Injection (CWE-94), where the 'path' argument of the function can be manipulated to execute arbitrary JavaScript code, such as through the use of eval() or child_process.execSync(). An attacker can exploit this over the network without any prior authentication or user interaction. If successful, the attacker gains the ability to execute system-level commands with the privileges of the Node.js process. The issue is resolved in version 3.4.8.
Affected products
- totaljs total.js < 3.4.8
Identifiers
- CVE-2021-23344
- GHSA-3wj8-vp9h-rm6m
Timeline
- 2021-02-19: disclosed: Vulnerability disclosed by Snyk security team.
- 2021-03-04: advisory: NVD and Snyk published advisories.
- 2021-03-19: advisory: GitHub Advisory published.