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
References5
- github.com/fgmacedo/python-statemachine/security/advisories/GHS… ExploitVendor Advisory
- github.com/fgmacedo/python-statemachine/security/advisories/GHS… ExploitVendor Advisory
- github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-r…
- github.com/fgmacedo/python-statemachine/releases/tag/v3.2.0 Release Notes
- www.vulncheck.com/advisories/python-statemachine-rce-via-scxml-… Third Party AdvisoryVDB Entry
Metrics
- CVSS 3.1
-
9.8
CRITICAL
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 4.0
-
9.3
CRITICAL
Score source: CNA
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 1% percentile: 72 · as of 16 November 2026
- CWE
- CWE-95CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.