CVE-2026-57142
7.8 HIGHpublic exploit availablePublished 2026-10-23 · Updated 2026-10-29
AI risk analysis
- Summary
- A bypass in PraisonAI's dangerous-tool policy allows untrusted recipes to declare shell-capable tools (e.g., execute_command) in workflow.yaml agents.*.tools and top-level approve: sections, evading the check that only validates tools listed in TEMPLATE.yaml requires.tools, leading to arbitrary command execution when allow_dangerous_tools=True is not set by the caller.
- Exploitability
- Exploitation requires crafting a malicious recipe with properly structured workflow.yaml and TEMPLATE.yaml files and convincing a user to execute it (UI:R), but no authentication or complex conditions are needed beyond that.
- Blast radius
- Successful exploitation grants high confidentiality, integrity, and availability impact on the host where PraisonAI runs, enabling full system compromise via arbitrary shell commands.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to PraisonAI version 4.6.61 or later, which patches the policy bypass by ensuring all tools used in execution paths—including those from workflow.yaml—are validated against the dangerous-tool policy regardless of declaration location.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
PraisonAI is a multi-agent teams system. From version 4.5.87 to before version 4.6.61, PraisonAI recipe execution has a dangerous-tool policy that is supposed to block default-denied tools unless the caller explicitly passes allow_dangerous_tools=True. That policy only checks tools declared in TEMPLATE.yaml requires.tools. For steps-based recipes, the actual execution path loads workflow.yaml with YAMLWorkflowParser. That parser resolves agent-level tools: declarations and preserves top-level approve:. Workflow.start() then installs those YAML-approved tools into the approval context. As a result, an untrusted recipe can omit execute_command from TEMPLATE.yaml requires.tools, declare it in workflow.yaml agents.*.tools, and add top-level approve: [execute_command]. The caller did not set allow_dangerous_tools=True, but the recipe policy allows the recipe and the workflow approval path self-approves the critical shell tool. This issue has been patched in version 4.6.61.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-78, CWE-94, CWE-863
Public exploit & PoC references
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-56838PoC
- HIGHCVE-2026-100844PoC
- HIGHCVE-2026-100561PoC
- CRITICALCVE-2026-69098PoC
- HIGHCVE-2026-88064PoC
- HIGHCVE-2026-105797PoC
- HIGHCVE-2026-113776PoC
- HIGHCVE-2026-55376PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.