{"id":"CVE-2026-57142","revision":"01f723eddae64cc28b1751f845f87577","records":[{"revision":"01f723eddae64cc28b1751f845f87577","observedAt":"2026-10-23T16:01:20.601+00:00","statement":{"source":"cve-program","id":"CVE-2026-57142","aliases":[],"title":"PraisonAI recipe workflow policy can be bypassed by declaring and YAML-approving dangerous tools outside TEMPLATE.yaml","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.","state":0,"publishedAt":"2026-10-23T12:07:46.547+00:00","modifiedAt":"2026-10-23T12:07:46.547+00:00","affected":[{"ecosystem":"Vendor product","name":"PraisonAI","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"MervinPraison\",\n                    \"product\": \"PraisonAI\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 4.5.87, < 4.6.61\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-7qw2-w5rc-37x2"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-57142","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-57142","identifiers":["CVE-2026-57142"]},"retained":false,"historicalAffected":[]}],"coverage":[]}