Skip to content

CVE-2026-47103 Python StateMachine 3.0.0 < 3.2.0 RCE via SCXML eval() Injection

CriticalCVSS 9.3 EPSS 1.4% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
fgmacedo python statemachine >= 3.0.0, < 3.2.0 3.2.0 Fixed
pypi python-statemachine >= 3.0.0, < 3.2.0 3.2.0 Fixed
pypi python-statemachine(PyPI) = 3.0.0; = 3.1.0; = 3.1.1; = 3.1.2 +1 more 3.2.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi python-statemachine >= 3.0.0, < 3.2.0 3.2.0
pypi python-statemachine(PyPI) >= 3.0.0, < 3.2.0 3.2.0
pypi python-statemachine(PyPI) = 3.0.0 No fix listed
pypi python-statemachine(PyPI) = 3.1.0 No fix listed
pypi python-statemachine(PyPI) = 3.1.1 No fix listed
pypi python-statemachine(PyPI) = 3.1.2 No fix listed
fgmacedo python statemachine >= 3.0.0, < 3.2.0 3.2.0

References