CVE-2026-47103 IBM QRadar · QRadar

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

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

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS event_time,
  logsourcename(logsourceid) AS log_source,
  "sourceip",
  "destinationip",
  "destinationport",
  "username",
  "Command" AS command_line,
  QIDNAME(qid) AS event_name,
  CATEGORYNAME(category) AS category_name
FROM events
WHERE
  LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log', 'Linux OS', 'Sysmon')
  AND (
    "Command" ILIKE '%statemachine%'
    OR "Command" ILIKE '%.scxml%'
    OR "Command" ILIKE '%scxml%'
  )
  AND (
    "Command" ILIKE '%eval(%'
    OR "Command" ILIKE '%exec(%'
    OR "Command" ILIKE '%__import__%'
    OR "Command" ILIKE '%subprocess%'
    OR "Command" ILIKE '%os.system%'
    OR "Command" ILIKE '%base64%'
    OR "destinationport" NOT IN (80, 443, 8080, 8443)
  )
  AND LOGSOURCETYPENAME(devicetype) NOT ILIKE '%firewall%'
LAST 24 HOURS
ORDER BY starttime DESC
LIMIT 500
critical severity medium confidence

QRadar AQL query to surface command-line events containing python-statemachine or SCXML references combined with dangerous Python evaluation patterns or unexpected outbound ports, indicating potential CVE-2026-47103 exploitation.

Data Sources

IBM QRadarWindows Security Event LogLinux SyslogSysmon

Required Tables

events

False Positives & Tuning

  • Legitimate Python web applications using python-statemachine for business logic with external service calls
  • DevOps tooling that generates SCXML from templates and invokes subprocesses for pipeline steps
  • Internal automation scripts that use statemachine for orchestration and connect to internal endpoints
  • Security scanning tools that inspect Python dependencies and spawn subprocesses

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