Quick answers
- Is CVE-2021-23390 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2021-23390 being exploited in the wild.
- How severe is CVE-2021-23390?
- Low severity, with a CVSS score of 3.1, published 10 December 2021.
- Which products and versions are affected?
- total4 (npm) SEMVER:introduced=0,fixed=0.0.43.
- Is there a fix for CVE-2021-23390?
- Yes. total4 (npm): upgrade to 0.0.43 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2021-23390 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2021-23390?
- Check whether you run total4 (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
- total4 (npm): upgrade to 0.0.43 or later
npm install total4@0.0.43
Technical details
The vulnerability is a code injection flaw (CWE-94) in the total4 npm package, specifically in the U.set() and U.get() utility functions, which fail to properly sanitize or restrict code execution. These functions allow arbitrary code execution when processing attacker-controlled input. The attack vector is network-based with no authentication or user interaction required. An attacker with access to the application (either direct or indirect) can execute arbitrary code in the context of the Node.js process. The vulnerability was fixed in version 0.0.43, which removed the vulnerable methods entirely (commit 8a72d8c).
Affected products
- total.js total4 before 0.0.43
Identifiers
- CVE-2021-23390
- GHSA-g7mq-rfj2-25wq
Timeline
- 2021-07-12: disclosed
- 2021-06-04: patched: Vulnerable methods U.set(), U.get(), U.sync(), U.sync2() removed in version 0.0.43
- 2021-12-10: advisory: GHSA-g7mq-rfj2-25wq published