5.6medium
react-dev-utils OS Command Injection in function `getProcessForPort`
- Severity
- 5.6medium CVSS:3.1 by NVD
- Exploit likelihood
- 3.29% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Also known as
- GHSA-5q6m-3h65-w53x
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Facebook react-dev-utils | from unspecified before 11.0.4, before 11.0.4 Not affected: from 11.0.4 before unspecified | CVE List, NVD |
| react-dev-utils (npm) | from 0.4.0 before 11.0.4 | GitHub Advisory Database |
All scores
| GitHub | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
react-dev-utils anterior a versión v11.0.4, expone una función, getProcessForPort, donde un argumento de entrada se concatena en una cadena de comando para ser ejecutado. Esta función se usa generalmente desde react-scripts (en los proyectos de Create React App), donde el uso es seguro. Solo cuando esta función se invoca manualmente con valores proporcionados por el usuario (es decir, mediante código personalizado) existe la posibilidad de inyección de comandos. Si lo consume desde react-scripts, este problema no le afecta
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24033 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5q6m-3h65-w53x changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-24033 changed 2026-06-17 | Public domain |