Back to CVE records
High 8.4Published Apr 13, 2026

CVE-2026-40287PraisonAI has RCE via Automatic tools.py Import

Updated under an hour ago ()

Does this affect you?

It affects MervinPraison PraisonAI and 3 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.4 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94, CWE-426
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Apr 14, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
MervinPraison PraisonAI
mervinpraison:praisonai (from the name)
before 4.5.139
CNA record
MervinPraison praisonaiagents
mervinpraison:praisonaiagents (from the name)
before 1.5.140
CNA record
praison praisonai
praison:praisonai
before 4.5.139
NVD
praison praisonaiagents
praison:praisonaiagents
before 1.5.140
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.