Files
CVEs-PoC/2021/CVE-2021-24033.md
T
2024-05-25 21:48:12 +02:00

18 lines
1.0 KiB
Markdown

### [CVE-2021-24033](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24033)
![](https://img.shields.io/static/v1?label=Product&message=react-dev-utils&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=!%3E%3D%2011.0.4%20%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20an%20OS%20Command%20(CWE-78)&color=brighgreen)
### 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.
### POC
#### Reference
- https://github.com/facebook/create-react-app/pull/10644
#### Github
No PoCs found on GitHub currently.