Detect React Native Community CLI OS Command Injection (CVE-2025-11953) in Sumo Logic CSE
Detects exploitation of CVE-2025-11953, an OS command injection vulnerability (CWE-78) in the React Native Community CLI. An attacker who can influence arguments or configuration consumed by the React Native CLI can inject arbitrary OS commands that execute with the privileges of the developer or CI/CD process invoking the CLI. This vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog.
MITRE ATT&CK
- Tactic
- Execution Persistence Lateral Movement
Sumo Detection Query
_sourceCategory=linux/syslog OR _sourceCategory=windows/security OR _sourceCategory=endpoint/process
| where (process matches /(?i)react.native/ or cmdline matches /(?i)(@react-native-community|react-native|rn-cli)/)
| where cmdline matches /[;&|`$()]/ and (
cmdline matches /(?i)(curl |wget |bash\s+-[ic]|sh\s+-c|powershell|cmd\s+\/c|\/dev\/tcp|nc\s+|ncat\s+)/
)
| parse field=cmdline "*" as full_command
| count by _sourceHost, _sourceCategory, process, full_command
| sort by _count desc Sumo Logic query detecting React Native Community CLI process events that contain shell injection metacharacters combined with network or shell execution utilities.
Data Sources
Required Tables
False Positives & Tuning
- Development build servers that legitimately pipe react-native CLI output through shell utilities.
- Automated npm lifecycle hooks that invoke curl or wget alongside CLI commands.
- Internal security tooling running CLI commands with shell chaining for build validation.
- React Native CI/CD environments using sh -c wrappers for cross-platform compatibility.
Other platforms for CVE-2025-11953
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Command Injection via React Native CLI project name argument
Expected signal: Process create event showing node spawning sh or bash with a command line containing the injected semicolon-delimited id command; file creation event for /tmp/cve_2025_11953_poc.txt.
- Test 2Reverse shell injection via React Native CLI on Linux
Expected signal: Process create events for node → sh → id; file write to /tmp/rn_inject_test.txt containing the output of id.
- Test 3Remote payload download via injected curl in React Native CLI build context
Expected signal: Process create event for node spawning sh, which spawns curl with an external URL argument; network connection event for curl to destination host.
- Test 4Windows PowerShell injection via React Native CLI on Windows
Expected signal: Sysmon Event ID 1 showing node.exe spawning cmd.exe which spawns powershell.exe; file creation event in %TEMP% for rn_inject_test.txt.
Unlock Pro Content
Get the full detection package for CVE-2025-11953 including response playbook, investigation guide, and atomic red team tests.