CVE-2026-40287
HIGH 8.4CVSS 3.1PraisonAI Vulnerable to RCE via Automatic tools.py Import
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.
- Published
- 14 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-426CWE-94
- Also known as
- GHSA-g985-wjh9-qxxcPYSEC-2026-2914PYSEC-2026-2947
- Sources
- NVDJSONOSV GHSA-g985-wjh9-qxxcJSONOSV PYSEC-2026-2914JSONOSV PYSEC-2026-2947JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | praison | praisonaicpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:* |
< 4.5.139 | 4.5.139 |
| NVD | praison | praisonaiagentscpe:2.3:a:praison:praisonaiagents:*:*:*:*:*:python:*:* |
< 1.5.140 | 1.5.140 |
| OSV | PyPI | praisonaiagents | < 1.5.140 | 1.5.140 |
| OSV | PyPI | praisonai | < 4.5.139 | 4.5.139 |
References
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g985-wjh9-qxxc · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40287 · ADVISORY
- https://github.com/MervinPraison/PraisonAI · PACKAGE
- https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139 · WEB
- https://pypi.org/project/praisonai · PACKAGE
- https://github.com/advisories/GHSA-g985-wjh9-qxxc · ADVISORY
- https://pypi.org/project/praisonaiagents · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 14 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Apr 2026)