New MCP server — Bring vulnerability intelligence into your AI
Back to feed

CVE-2026-40287

ExploitedNVDCIRCLENISA

EUVD-2026-22207 · Published Apr 10, 2026

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
  • call.py → import_tools_from_file()
  • tool_resolver.py → _load_local_tools()
  • tools.py → local tool import flow
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
  1. Create a malicious tools.py in the current working directory.
  2. Start PraisonAI or invoke a CLI command that loads local tools.
  3. Verify that /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)

Technologies

Praison PraisonaiPraison PraisonaiagentsPraisonai PraisonaiPraisonaiagents Praisonaiagents

Weaknesses

CWE-426CWE-94

CVSS scores

  • v3.18.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

MITRE ATT&CK

Inferred

Where this vulnerability fits in an attack

Execution Privilege Escalation Stealth

References

Potentially impacted assets

See if this affects your attack surface

Latest trending attack

High2d ago

OpenSSH (sshd on musl libc) - Password Authentication Bypass

OpenSSH is the standard suite of Secure Shell (SSH) tools providing encrypted remote login and file transfer. Its server daemon, sshd, is the primary remote access mechanism on Unix-like systems, including lightweight Linux distributions such as Alpine Linux that are built on the musl C library without PAM. CVE-2026-123158 Improper handling of password verification in sshd when built without PAM on Linux systems using musl libc. OpenSSH verifies passwords itself by calling crypt() and comparing the output to the stored password field; when the stored field is too short to contain a salt (for example *, which denotes key-only or locked accounts), sshd borrows a salt from another account on the system. Because musl's crypt() returns the string * on error — and it errors on any key longer than 256 bytes — the comparison succeeds for any submitted password between roughly 256 and 1024 characters. An unauthenticated attacker who can reach the SSH port can therefore log in to accounts whose shadow field is * (e.g. root on Alpine base images since about Alpine 3.16, key-only users, or directory-service users without a shadow entry), provided at least one local account has a real $5$ or $6$ hash and PasswordAuthentication yes is in effect. The flaw affects OpenSSH before 10.6p2 on Linux with musl and no PAM; Alpine Linux is the prominent example. The OpenSSH team considers the root cause to be outside sshd but shipped a workaround in Portable OpenSSH 10.6p2 (fix committed 4 November 2026). Alpine published fixed packages on 5 November 2026: 10.6_p2-r0 on edge, 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, and 10.0_p1-r11 on 3.22, with backports down to 3.16; fixed images are built from point releases 3.21.10, 3.22.8, 3.23.8, and 3.24.4 or later. If patching is not immediately possible, disabling password authentication (PasswordAuthentication no) or enabling PAM closes the exposure. No exploitation in the wild had been reported as of 6 November 2026, and the CVE is not in CISA's KEV catalog, though public proof-of-concept material exists.

Take 15 minutes to discover our platform with our experts

Patrowl Intel platform screenshot