PT-2026-31993 · Praisonai · Praisonai
Published
2026-04-10
·
Updated
2026-04-10
·
CVE-2026-40156
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions: PraisonAI versions prior to 4.5.128
Description: PraisonAI automatically loads a file named
tools.py from the current working directory to discover and register custom agent tools. This process uses importlib.util.spec from file location and immediately executes module-level code via spec.loader.exec module() without user consent, validation, or sandboxing. The tools.py file is loaded implicitly, even if not referenced in configuration files. Placing a malicious tools.py file in the working directory allows for arbitrary code execution upon startup, before any agent logic begins. This introduces a software supply chain risk, potentially affecting CI/CD pipelines, shared development environments, and AI workflow automation systems. Successful exploitation can lead to arbitrary command execution and credential exfiltration.Recommendations: Update to version 4.5.128 or later.
Exploit
Fix
Untrusted Search Path
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Praisonai