Detect React Native Community CLI OS Command Injection (CVE-2025-11953) in Splunk
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
SPL Detection Query
index=* sourcetype IN (syslog, WinEventLog:Security, osquery:process_events, "xmlwineventlog:microsoft-windows-sysmon/operational")
| where match(process, "(?i)(react.native|rn.cli|@react-native-community)")
OR match(parent_process, "(?i)(react.native|rn.cli|@react-native-community)")
OR match(cmdline, "(?i)(react.native|rn.cli|@react-native-community)")
| eval injection_indicator=if(
match(cmdline, "[;&|`$()]") AND match(cmdline, "(curl |wget |bash\s+-|sh\s+-c|powershell|cmd\s+/c|/dev/tcp|ncat?\s)"),
"HIGH",
if(match(cmdline, "[;&|`$()]"), "MEDIUM", "LOW")
)
| where injection_indicator IN ("HIGH", "MEDIUM")
| table _time, host, user, process, parent_process, cmdline, injection_indicator
| sort -_time Splunk search identifying processes related to the React Native Community CLI that contain OS command injection indicators such as shell metacharacters combined with remote-access or shell-invocation utilities.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Legitimate build automation scripts running alongside react-native CLI in development environments.
- CI/CD pipeline steps that chain shell commands with react-native CLI invocations.
- Developer tooling that uses subshells or pipes as part of normal npm script execution.
- Package managers (npm, yarn, pnpm) spawning post-install hooks that resemble injection patterns.
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.