CVE-2021-23344:
total.js Remote Code Execution Vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.90758%
CWE
Published
3/19/2021
Updated
9/13/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
total.js | npm | < 3.4.7 | 3.4.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- The PoC demonstrates RCE via require('total.js/utils').set()
- The GitHub commit shows security improvements in utils.js's set function
- The patch adds 'eval' to the regex pattern check, indicating it was previously allowed
- The vulnerable code uses new Function() with unsanitized input containing semicolons to chain expressions
- CWE-94 (Code Injection) directly maps to unsafe code generation in set()