praisonaiagents
Affected
- introduced
0, fixed1.5.140(ecosystem)
Fixed versions
1.5.140
Fix
- Fixed version
1.5.140pip install --upgrade praisonaiagents==1.5.140
Advisory
Also known as: CVE-2026-40287, GHSA-g985-wjh9-qxxc, PYSEC-2026-2914
PraisonAI Vulnerable to RCE via Automatic tools.py Import
PraisonAI automatically imports ./tools.py from the current working directory when launching certain components. This includes call.py, tool_resolver.py, and CLI tool-loading paths.
A malicious tools.py placed in the process working directory is executed immediately, allowing arbitrary Python code execution in the host environment.
Affected Code
import_tools_from_file()_load_local_tools()PoC
Create tools.py in the directory where PraisonAI is launched:
# tools.py
import os
os.system("echo pwned > /tmp/pwned.txt")
Run any PraisonAI component that loads local tools, for example:
praisonai workflow run safe.yaml
Reproduction Steps
/tmp/pwned.txt or the malicious command output exists.Impact
An attacker who can place or influence tools.py in the working directory can execute arbitrary code in the PraisonAI process, compromising the host and any connected data.
Reporter: Lakshmikanthan K (letchupkt)
High Basis: CVSS v3 score 8.4, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
0, fixed 1.5.140 (ecosystem)1.5.140
1.5.140pip install --upgrade praisonaiagents==1.5.140Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0