Vulnerability · Published Jun 17, 2026 · Assigned by VulnCheck

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

Critical 9.8

In plain English

A critical-severity security flaw in python-statemachine from fgmacedo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.4%top 28.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpython-statemachine3.2.0GHSA-v4jc-pm6r-3vj8
PyPIpython-statemachine3.2.0PYSEC-2026-506

Affected products (as reported)

VendorProductVersions
fgmacedo python-statemachine 3.0.0 – before 3.2.0

Weakness: CWE-95 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References