RCE in Facebook React-Dev-Utils
CVE-2021-24033
react-dev-utils prior to v11.0.4 exposes a function, getProcessForPort, where an input argument is concatenated into a command string to be executed. This function is typically used from react-scripts (in Create React App projects), where the usage is safe. Only when this function is manually invoked with user-provided values (ie: by custom code) is there the potential for command injection. If you're consuming it from react-scripts then this issue does not affect you.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.6 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.033, 88.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Facebook React-Dev-Utils — versions 11.0.4, unspecified
Weakness classification (CWE)
References
- github.com/facebook/create-react-app/pull/10644 (Exploit, Patch, Third Party Advisory)
- www.facebook.com/security/advisories/cve-2021-24033 (Vendor Advisory)