Read the docs
TI-2026-29069 Aliases CVE-2026-40287GHSA-g985-wjh9-qxxc

PraisonAI has RCE via Automatic tools.py Import

Priority HIGH 72CWE-426Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-426.

Summary

PraisonAI is a multi-agent teams system. Versions 4.5.138 and below are vulnerable to arbitrary code execution through automatic, unsanitized import of a tools.py file from the current working directory. Components including call.py (import_tools_from_file()), tool_resolver.py (_load_local_tools()), and CLI tool-loading paths blindly import ./tools.py at startup without any validation, sandboxing, or user confirmation. An attacker who can place a malicious tools.py in the directory where PraisonAI is launched (such as through a shared project, cloned repository, or writable workspace) achieves immediate arbitrary Python code execution in the host environment. This compromises the full PraisonAI process, the host system, and any connected data or credentials. This issue has been fixed in version 4.5.139.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00246 15th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed PraisonAI (MervinPraison): 4.5.139praisonaiagents (MervinPraison): 1.5.140+2 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MervinPraisonPraisonAIbefore 4.5.1394.5.139Patch availableCNA
MervinPraisonpraisonaiagentsbefore 1.5.1401.5.140Patch availableCNA
—praisonaiagents (PyPI)before 1.5.1401.5.140Patch availableGHSA-g985-wjh9-qxxc
—PraisonAI (PyPI)before 4.5.1394.5.139Patch availableGHSA-g985-wjh9-qxxc
  • PraisonAI VendorMervinPraison Affected before 4.5.139 Fixed in 4.5.139 Patch available CNA
  • praisonaiagents VendorMervinPraison Affected before 1.5.140 Fixed in 1.5.140 Patch available CNA
  • praisonaiagents (PyPI) Vendor— Affected before 1.5.140 Fixed in 1.5.140 Patch available GHSA-g985-wjh9-qxxc
  • PraisonAI (PyPI) Vendor— Affected before 4.5.139 Fixed in 4.5.139 Patch available GHSA-g985-wjh9-qxxc

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:*before 4.5.139VulnerableMervinPraison
cpe:2.3:a:praison:praisonaiagents:*:*:*:*:*:python:*:*before 1.5.140VulnerableMervinPraison
  • cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:* Versions before 4.5.139 Vulnerable ·MervinPraison
  • cpe:2.3:a:praison:praisonaiagents:*:*:*:*:*:python:*:* Versions before 1.5.140 Vulnerable ·MervinPraison

Remediation

  • Fix · CNA PraisonAI (MervinPraison) Fixed in 4.5.139
  • Fix · CNA praisonaiagents (MervinPraison) Fixed in 1.5.140
  • Fix · GHSA-g985-wjh9-qxxc praisonaiagents (PyPI) Fixed in 1.5.140 Advisory →
  • Fix · GHSA-g985-wjh9-qxxc PraisonAI (PyPI) Fixed in 4.5.139 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-40287
  2. 2026-10-03 Alias added: GHSA-g985-wjh9-qxxc

References

  • TI-2026-30083 Incomplete fix for CVE-2026-34935: Command Injection in MervinPraison/PraisonAI CVSS 3.1CRITICAL 9.8
  • TI-2026-29070 PraisonAI: Critical RCE via `type: job` workflow YAML CVSS 3.1CRITICAL 9.8
  • TI-2026-28940 PraisonAI has Server-Side Request Forgery via Unvalidated webhook_url in Jobs API CVSS 3.1CRITICAL 10.0
  • TI-2026-28768 PraisonAI Affected by Remote Code Execution via YAML Deserialization in Agent Definition Loading CVSS 3.1CRITICAL 9.8
  • TI-2026-27159 PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command() CVSS 3.1CRITICAL 9.8
  • TI-2026-27158 PraisonAI: Second-Order SQL Injection in `get_all_user_threads` CVSS 3.1CRITICAL 9.8
See all 42 →

Sources