# CVE-2021-24033: react-dev-utils OS Command Injection in function `getProcessForPort`

- Severity: Medium 5.6 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.29%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-09T00:25:13.000Z
- Modified: 2026-06-17T03:39:11.750Z
- Also known as: GHSA-5q6m-3h65-w53x
- Weaknesses: CWE-78
- Assigned by: facebook

## 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.

(As written by CVE List.)

## Affected

- Facebook react-dev-utils: from unspecified before 11.0.4; before 11.0.4 (not affected: from 11.0.4 before unspecified)
- react-dev-utils (npm): from 0.4.0 before 11.0.4

## Every score

- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/facebook/create-react-app/pull/10644> (exploit, patch, third-party-advisory, web)
- <https://www.facebook.com/security/advisories/cve-2021-24033> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-24033> (advisory)
- <https://github.com/facebook/create-react-app/commit/f5e415f3a5b66f07dcc60aba1b445fa7cda97268> (web)
- <https://github.com/facebook/create-react-app> (package)
- <https://www.huntr.dev/bounties/1-npm-react-dev-utils> (web)

## Sources

- CVE List: [CVE-2021-24033](https://www.cve.org/CVERecord?id=CVE-2021-24033), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5q6m-3h65-w53x](https://github.com/advisories/GHSA-5q6m-3h65-w53x), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-24033](https://nvd.nist.gov/vuln/detail/CVE-2021-24033), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24033 · Whole record: https://cve.day/CVE-2021-24033.json · Rebuilt by cve.day 2026-11-25T22:58:00.181Z
