What’s Vulnerable › Vulnerabilities
CVE-2026-47103: Python StateMachine 3.0.0 < 3.2.0 RCE via SCXML eval() Injection
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-06-17 · updated 2026-10-26
- Weakness: CWE-95
Description
Python StateMachine versions 3.0.0 before 3.2.0 contains a remote code execution vulnerability that allows attackers to execute arbitrary code by supplying malicious SCXML documents containing crafted `<data expr="...">` attributes evaluated unsafely. The SCXMLProcessor passes attacker-controlled expression strings through a call chain ending in Python's built-in eval() without sandboxing, enabling arbitrary code execution in the context of the hosting process.
Affected products
- fgmacedo python-statemachine: from 3.0.0 before 3.2.0 — fixed in 3.2.0
How to fix
Upgrade to a fixed version: fgmacedo python-statemachine 3.2.0. Check the vendor advisory for mitigations.
References
- https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce
- https://github.com/fgmacedo/python-statemachine/releases/tag/v3.2.0
- https://github.com/fgmacedo/python-statemachine/security/advisories/GHSA-v4jc-pm6r-3vj8
- https://www.vulncheck.com/advisories/python-statemachine-rce-via-scxml-eval-injection
- https://github.com/fgmacedo/python-statemachine/security/advisories/GHSA-v4jc-pm6r-3vj8
Get alerted when CVE-2026-47103 or the next vulnerability affects your stack