RCE in Mervinpraison Praisonai
CVE-2026-40287
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.
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.002 (15.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Mervinpraison Praisonai — versions < 4.5.139
- Mervinpraison Praisonaiagents — versions < 1.5.140
- Praison Praisonai
- Praison Praisonaiagents
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-40287?
- CVE-2026-40287 is a high-severity vulnerability in Mervinpraison Praisonai, classified under Code Injection. CVSS score: 8.4/10. Published 2026-04-14.
- How severe is CVE-2026-40287?
- High severity. CVSS v3 base score is 8.4 out of 10.