All vulnerabilities

PyPI

CVE-2026-61438

PraisonAI vulnerable to Remote Code Execution via Broken AST Sandbox

Severity
High 7.3
Published
29 Oct 2026
Last changed
29 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.6.78
Exploit chance
0.3% in the next 30 daysHigher than 24% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Incomplete deny list (CWE-184)Protection mechanism failure (CWE-693)OS command injection (CWE-78)
Attack
Needs local access · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Also known as
GHSA-26mh-57q7-jfvr
Sources
OSV.dev and GitHub

Description

JobWorkflowExecutor._exec_inline_python() is designed to safely execute inline Python expressions from YAML workflow script: steps using AST validation. The function claims to block dangerous operations by (a) checking all AST nodes against an allowlist, and (b) providing a builtins whitelist that omits import, exec, eval, and open.

The sandbox is broken. The module import allowlist (allowed_modules) explicitly includes 'os', and the AST allowlist permits ast.Import, ast.ImportFrom, ast.Call, and ast.Attribute nodes. This means the following malicious workflow script: step passes all AST validation checks and executes without error.

Attack Scenario

Attacker creates or contributes a YAML workflow file (type: job) with a script: step containing import os; os.system(...). A user or CI pipeline with PRAISONAI_ALLOW_JOB_WORKFLOWS=true executes the workflow via praisonai workflow run malicious.yaml. Arbitrary OS commands execute with the privileges of the calling process.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
praisonaiPyPI · osv:PyPI:praisonai
  • Every version before 4.6.78

About praisonai

Weekly downloads (PyPI)
2,892PyPI Stats, 24 Nov 2026

This is the only vulnerability in praisonai in our list.

References