CVE-2021-24033
JSON

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
facebook
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 packageVersionsReported by
Facebook react-dev-utilsfrom 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.4GitHub Advisory Database

All scores

GitHub5.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD5.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD6.8medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-24033 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5q6m-3h65-w53x changed 2023-11-08CC-BY-4.0
NVDCVE-2021-24033 changed 2026-06-17Public domain