CVE-2021-24033: OS Command Injection
Facebook react-dev-utils could allow a remote attacker to execute arbitrary commands on the system, caused by a flaw in getProcessForPort function. By sending a specially-crafted request, an attacker could exploit this vulnerability to inject and execute arbitrary commands on the system.
Other sources
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2021-24033?
CVE-2021-24033 is a vulnerability in react-dev-utils prior to v11.0.4 that exposes a function, getProcessForPort, allowing an input argument to be concatenated into a command string for execution.
What is the severity of CVE-2021-24033?
The severity of CVE-2021-24033 is medium, with a severity value of 5.6.
What software is affected by CVE-2021-24033?
The affected software is react-dev-utils prior to v11.0.4.
How can I fix CVE-2021-24033?
To fix CVE-2021-24033, update your react-dev-utils to version 11.0.4 or higher.
What is the Common Weakness Enumeration (CWE) of CVE-2021-24033?
The Common Weakness Enumeration (CWE) of CVE-2021-24033 is CWE-77 and CWE-78.