CVE-2026-61438

PraisonAI before 4.6.78 Remote Code Execution via Broken AST Sandbox

Published Jul 15, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
Description
PraisonAI before 4.6.78 contains a remote code execution vulnerability in JobWorkflowExecutor._exec_inline_python() due to insufficient AST validation of workflow script steps. Attackers can create malicious YAML workflow files with import os statements followed by os.system() calls that bypass sandbox checks and execute arbitrary OS commands with process privileges.

Analysis

AI-generated

Technical impact

PraisonAI before version 4.6.78 allows attackers to craft malicious YAML workflow files that include “import os” followed by “os.system()” calls. The JobWorkflowExecutor._exec_inline_python() method does not fully validate the abstract syntax tree, enabling bypass of the sandbox and execution of arbitrary OS commands with the privileges of the executing process. This flaw is a classic command injection condition (CWE-78) that can compromise confidentiality, integrity, and availability of the host system.

Affected Systems

Affected are installations of PraisonAI from the vendor MervinPraison running any version older than 4.6.78. The vulnerability is tied to the JobWorkflowExecutor component and can be triggered by any user able to upload or otherwise submit workflow YAML files to the system.

Risk and Exploitability

The CVSS score of 7 indicates a high severity, and the EPSS score of < 1% suggests that exploitation is unlikely but not impossible. The issue is currently not listed in the CISA KEV catalog. The likely attack vector involves remote deployment or submission of a crafted workflow file; once processed, the untrusted script runs with the system’s process privileges, enabling full remote code execution. No additional prerequisites beyond the ability to provide a workflow file are specified, making the vulnerability exploitable by anyone with write access to that deployment mechanism.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 4.6.78 or later to obtain the vendor‑patched code.
  • If an immediate upgrade is not possible, restrict the JobWorkflowExecutor from processing untrusted YAML scripts by disabling execution of import statements or by sanitizing the script before evaluation.
  • Run the workflow executor in an isolated container or sandbox that limits system call capabilities, ensuring that even if a malicious script executes, it cannot affect the host system.

Generated by OpenCVE AI on July 31, 2026 at 03:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-26mh-57q7-jfvr PraisonAI vulnerable to Remote Code Execution via Broken AST Sandbox
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description PraisonAI before 4.6.78 contains a remote code execution vulnerability in JobWorkflowExecutor._exec_inline_python() due to insufficient AST validation of workflow script steps. Attackers can create malicious YAML workflow files with import os statements followed by os.system() calls that bypass sandbox checks and execute arbitrary OS commands with process privileges.
Title PraisonAI before 4.6.78 Remote Code Execution via Broken AST Sandbox
First Time appeared Praison
Praison praisonai
Weaknesses CWE-78
CPEs cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:*
Vendors & Products Praison
Praison praisonai
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 15, 2026, 1:53 PM
Reserved
Jul 9, 2026, 2:05 PM
Status
Deferred
Published
Jul 15, 2026, 12:18 PM
Modified
Oct 24, 2026, 9:10 PM