CVE-2021-24033: react-dev-utils - Command Injection
- Cve: CVE-2021-24033
- Name: react-dev-utils - Command Injection
- Description: 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.
- Impact: Attackers can execute arbitrary commands on the host system, potentially leading to full system compromise.
- Remediation: Update react-dev-utils to version 11.0.4 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs to manually invoke getProcessForPort with user-provided values
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.6
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.03289
- Epss percentile: 0.887
- Assignee: [email protected]
- Published at: 2021-03-09T01:15:13Z
- Age in days: 2086
- Modified at: 2026-06-17T03:39:11Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-24033
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/facebook/create-react-app/pull/10644 | nvd | 2021-03-09 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/facebook/create-react-app/pull/10644 | nvd | Exploit, Patch, Third Party Advisory |
| https://www.facebook.com/security/advisories/cve-2021-24033 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| facebook:react-dev-utils | < 11.0.4 | no | nvd | /v1/products/facebook/react-dev-utils |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| facebook/create-react-app | commit, package, pull | yes | /v1/repositories/facebook/create-react-app |
Index
- Repositories: 140
- Repositories high signal: 21
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-03-09
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts