nday
CVE-2026-47103 GHSA-v4jc-pm6r-3vj8

Python StateMachine 3.0.0 < 3.2.0 RCE via SCXML eval() Injection

fgmacedo / python-statemachine

A public PoC appeared 59 days after disclosure. Patched: fixed in python-statemachine 3.2.0. Listed by 1 of 4 PoC sources: github. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

code injection
CWE-94, stated by NVD's analysts and GitHub advisory GHSA-v4jc-pm6r-3vj8CWE-95, stated by the CNA VulnCheck, NVD, republishing [email protected], and GitHub advisory GHSA-v4jc-pm6r-3vj8
remote, unauthenticated
AV:N, PR:N, UI:N in 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 4.0) from the CNA VulnCheck
network
AV:N in 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 4.0) from the CNA VulnCheck
no authentication required
PR:N in 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 4.0) from the CNA VulnCheck
no user interaction
UI:N in 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 4.0) from the CNA VulnCheck
PyPI
GHSA-v4jc-pm6r-3vj8: pip packages python-statemachine
stage
POC
disclosed
disclosure → patch
T+152d
cvss
9.3 CRITICAL v4.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
06-17T14:32Z
PATpatch
11-16T17:01Z
ANAanalysis
no record yet
POCPoC
08-15, date only
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:N
None: success does not depend on how the target is deployed or running
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

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 4.0 vector from the CVE record, scored by the CNA VulnCheck.

Event log

+DISdisclosed

CVE record published by VulnCheck. CVSS 9.3, critical. CISA's SSVC assessment rates exploitation as poc.

src cvelist · nday , bulk import · raw
{
  "id": 10592,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-47103",
  "occurred_at": "2026-06-17T14:32:08.18Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "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",
      "version": "4.0",
      "base_score": 9.3,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2026-06-18T14:30:49.802580Z",
      "automatable": "yes",
      "exploitation": "poc",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-06-17T14:32:08.180Z",
    "assigner_short_name": "VulnCheck"
  }
}
2026-08-15date only, from source
+POCpublic PoC

PoC repository on GitHub: SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce. The date is the repository's creation day.

src github 1335428168 · nday , bulk import · raw
{
  "id": 483209,
  "type": "poc_published",
  "source": "github",
  "url": "https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce",
  "occurred_at": "2026-08-15T21:25:54Z",
  "observed_at": "2026-11-19T00:00:00Z",
  "is_backfill": true,
  "dedupe_key": "1335428168",
  "detail": {
    "url": "https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce",
    "title": "SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce",
    "precision": "day"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed version python-statemachine 3.2.0. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-v4jc-pm6r-3vj8 · nday , observed live · raw
{
  "id": 473091,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-v4jc-pm6r-3vj8",
  "occurred_at": null,
  "observed_at": "2026-11-16T17:01:02.573287Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-v4jc-pm6r-3vj8",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 9.8,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 9.3,
        "vector_string": "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"
      }
    },
    "cwes": [
      {
        "name": "Improper Control of Generation of Code",
        "cwe_id": "CWE-94"
      },
      {
        "name": "Improper Neutralization of Directives in Dynamically Evaluated Code",
        "cwe_id": "CWE-95"
      }
    ],
    "ghsa_id": "GHSA-v4jc-pm6r-3vj8",
    "packages": [
      {
        "name": "python-statemachine",
        "ecosystem": "pip",
        "first_patched_version": "3.2.0",
        "vulnerable_version_range": ">= 3.0.0, < 3.2.0"
      }
    ],
    "severity": "critical",
    "references": [
      "https://github.com/fgmacedo/python-statemachine/security/advisories/GHSA-v4jc-pm6r-3vj8",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-47103",
      "https://github.com/fgmacedo/python-statemachine/releases/tag/v3.2.0",
      "https://www.vulncheck.com/advisories/python-statemachine-rce-via-scxml-eval-injection",
      "https://github.com/SaiTeja-Erukude/CVE-2026-47103-python-statemachine-rce",
      "https://github.com/pypa/advisory-database/tree/main/vulns/python-statemachine/PYSEC-2026-506.yaml",
      "https://pypi.org/project/python-statemachine",
      "https://github.com/advisories/GHSA-v4jc-pm6r-3vj8"
    ],
    "fix_commit_urls": [],
    "github_reviewed_at": "2026-06-18T14:28:02Z",
    "advisory_updated_at": "2026-11-16T16:08:19Z",
    "source_code_location": "https://github.com/fgmacedo/python-statemachine",
    "advisory_published_at": "2026-06-18T14:28:02Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.