Intel

AIKIDO-2026-612732

python-statemachine is vulnerable to Path Traversal

Path TraversalGHSA-fj3w-533r-fvf6 Published 4 days ago

71

High Risk

This Affects:

PYTHONpython-statemachine
3.2.0 - 3.2.0
Fixed in 3.2.1
Are you affected? Scan for Free

TL;DR

The SCXML IO layer resolves external src references on data and invoke elements while parsing a document, before any expression evaluation runs. In the default secure trusted=False mode, a loaded document can name an arbitrary local file in a file:// URI and the parser opens and reads it with no path confinement or allowlist. The file contents are stored in a datamodel variable that the same untrusted document can then exfiltrate, and pointing the reference at a pseudo-device such as /dev/zero can also exhaust memory. The fix rejects external source references in untrusted mode and confines them when they are explicitly allowed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you load SCXML documents from an untrusted source through the statemachine.io layer.

Background info

python-statemachine is vulnerable to Path Traversal in versions 3.2.0 - 3.2.0.

How to fix this

Upgrade the python-statemachine library to the patch version.