CVE-2026-47103 CrowdStrike LogScale · LogScale

Detect python-statemachine SCXML <data expr> Eval Injection (CVE-2026-47103) in CrowdStrike LogScale

CVE-2026-47103 is a critical eval injection vulnerability (CWE-95) in python-statemachine versions >= 3.0.0 and < 3.2.0. When processing SCXML documents, the library evaluates expressions in <data expr=...> elements using Python's eval(), allowing an attacker who can supply or influence SCXML input to execute arbitrary Python code in the context of the application process. A public PoC is available and exploitation requires no authentication when SCXML is parsed from user-controlled input. CVSS score 9.8.

MITRE ATT&CK

Tactic
Execution Persistence Privilege Escalation

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName IN (ProcessRollup2, SyntheticProcessRollup2)
| CommandLine = /(?i)(statemachine|\.scxml|scxml)/
| eval dangerous_eval = if(
    CommandLine = /(?i)(eval\s*\(|exec\s*\(|__import__|subprocess\.|os\.system|base64\.b64decode)/,
    1, 0
  )
| eval scxml_file = if(CommandLine = /(?i)\.scxml/, 1, 0)
| eval statemachine_lib = if(CommandLine = /(?i)statemachine/, 1, 0)
| eval risk_score = case(
    dangerous_eval = 1 AND statemachine_lib = 1, 95,
    dangerous_eval = 1 AND scxml_file = 1, 90,
    statemachine_lib = 1 AND scxml_file = 1, 70,
    dangerous_eval = 1, 60,
    true, 40
  )
| where risk_score >= 60
| eval FileName = FileName + " (" + SHA256HashData + ")"
| table _time, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, risk_score, dangerous_eval
| sort -risk_score, -_time
| head 200
critical severity high confidence

CrowdStrike CQL hunt across process execution events for python-statemachine SCXML eval injection patterns. Scores by combination of statemachine library usage, SCXML file reference, and presence of dangerous Python execution primitives.

Data Sources

CrowdStrike Falcon PlatformCrowdStrike Threat Graph

Required Tables

ProcessRollup2SyntheticProcessRollup2

False Positives & Tuning

  • Python automation frameworks that use statemachine and spawn subprocesses for task execution
  • Data engineering jobs using SCXML workflow definitions alongside subprocess-based data transformations
  • Enterprise applications with SCXML-driven UI logic that perform eval-based configuration loading
  • Penetration testing tools that reference statemachine patterns for workflow simulation

Other platforms for CVE-2026-47103


Testing Methodology

Validate this detection against 3 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.

  1. Test 1Basic SCXML eval injection via python-statemachine

    Expected signal: Process execution of python3 with statemachine and scxml in command line; file creation event for /tmp/cve_2026_47103_pwned by the python3 process; pip install of vulnerable package version

  2. Test 2SCXML eval injection with reverse shell payload

    Expected signal: Python3 process spawning /bin/bash child process with -i flag; outbound TCP connection to 127.0.0.1:4444 (or attacker IP in real scenario) from the python3 process; subprocess.Popen call visible in process tree

  3. Test 3SCXML eval injection via web API endpoint (simulated)

    Expected signal: Flask application process accepting HTTP POST with SCXML content-type; python3 process creating temp .scxml file; file creation event for /tmp/api_pwned; process-level evidence of __import__ string construction via chr() obfuscation

Unlock Pro Content

Get the full detection package for CVE-2026-47103 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections