CVE-2026-47103
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.
- CVSS 4.0
- 9.3
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 - CVSS 3.1
- 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 1.4% chance of exploitation in the next 30 days; higher than 71% of CVEs (scores of 2026-10-25)
- CWEs
- CWE-94, CWE-95
- Published
- Modified
- Record from
- the NVD, synced
Affected
- fgmacedo:python_statemachine
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-v4jc-pm6r-3vj8 | PyPI | python-statemachine | >=3.0.0 <3.2.0 | 3.2.0 |
| PYSEC-2026-506 | PyPI | python-statemachine | >=3.0.0 <3.2.0 | 3.2.0 |
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