{"cve":"CVE-2026-40287","nvd":{"published":"2026-04-14T04:17:11.977","modified":"2026-10-26T22:10:00.163","status":"Analyzed","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4},"cwes":["CWE-94","CWE-426"],"references":["https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g985-wjh9-qxxc","https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g985-wjh9-qxxc"],"products":["praison:praisonai","praison:praisonaiagents"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40287","score":0.00246,"percentile":0.15763,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-g985-wjh9-qxxc","url":"https://osv.dev/vulnerability/GHSA-g985-wjh9-qxxc","summary":"PraisonAI Vulnerable to RCE via Automatic tools.py Import","modified":"2026-07-13T16:43:33.357971033Z","packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.5.140"],"fixed":["1.5.140"]},{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.5.139"],"fixed":["4.5.139"]}]},{"id":"PYSEC-2026-2914","url":"https://osv.dev/vulnerability/PYSEC-2026-2914","summary":"PraisonAI Vulnerable to RCE via Automatic tools.py Import","modified":"2026-07-13T16:43:33.357971033Z","packages":[{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.5.139"],"fixed":["4.5.139"]}]},{"id":"PYSEC-2026-2947","url":"https://osv.dev/vulnerability/PYSEC-2026-2947","summary":"PraisonAI Vulnerable to RCE via Automatic tools.py Import","modified":"2026-07-13T16:43:33.357971033Z","packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.5.140"],"fixed":["1.5.140"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}