{"id":"CVE-2026-44336","published":"2026-05-08T13:32:33Z","modified":"2026-05-11T18:33:36Z","title":"PraisonAI MCP `tools/call` path-traversal and RCE via Python `.pth` injection","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"PraisonAI is a multi-agent teams system. Prior to version 4.6.34, PraisonAI's MCP (Model Context Protocol) server (praisonai mcp serve) registers four file-handling tools by default — praisonai.rules.create, praisonai.rules.show, praisonai.rules.delete, and praisonai.workflow.show. Each accepts a path or filename string from MCP tools/call arguments and joins it onto ~/.praison/rules/ (or, for workflow.show, accepts an absolute path) with no containment check. The JSON-RPC dispatcher passes params[\"arguments\"] blind to each handler via **kwargs without validating against the advertised input schema. By setting rule_name=\"../../<some-path>\" an attacker walks out of the rules directory and writes any file the running user can write. Dropping a Python .pth file into the user site-packages directory escalates this primitive to arbitrary code execution in any subsequent Python process the user spawns — the next praisonai CLI invocation, an IDE script run, the user's python REPL, or any background Python service. This issue has been patched in version 4.6.34.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00674,"percentile":0.47213,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"},{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9mqq-jqxf-grvw","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":9.44},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":["< 4.6.34"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-11T18:32:44.743030Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PraisonAI","vulnerableRanges":["<4.6.34"],"patched":["4.6.34"],"from":["GHSA-9mqq-jqxf-grvw","PYSEC-2026-472"],"provenance":"source"}],"summary":{"text":"An attacker who can send MCP requests to the server and can reach a path-traversal primitive can write arbitrary files the running user can write, such as a Python .pth file in the user's site-packages directory, which leads to code execution in any later Python process that user starts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:57Z"},"euvd":{"id":"EUVD-2026-28639","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mervinpraison-praisonai-cve-2026-44336","children":[{"from":"CVE-2026-44336","to":"CVE-2026-47394","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"Prior to version 4.6.40, the fix for GHSA-9mqq-jqxf-grvw / CVE-2026-44336 is incomplete.","from":"CVE.org","in":"CVE-2026-47394"}]}],"packageHistory":[{"cve":"CVE-2026-40287","published":"2026-04-14","fixed":"4.5.139","kev":false},{"cve":"CVE-2026-40288","published":"2026-04-14","fixed":"4.5.139","kev":false,"link":{"from":"CVE-2026-40288","to":"CVE-2026-44336","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PraisonAI","fromFixed":"4.5.139","toFixed":"4.6.34","daysApart":24}]}},{"cve":"CVE-2026-40289","published":"2026-04-14","fixed":"4.5.139","kev":false},{"cve":"CVE-2026-44336","published":"2026-05-08","fixed":"4.6.34","kev":false},{"cve":"CVE-2026-44337","published":"2026-05-08","fixed":"4.6.34","kev":false},{"cve":"CVE-2026-44338","published":"2026-05-08","fixed":"4.6.34","kev":false},{"cve":"CVE-2026-44339","published":"2026-05-08","fixed":"4.6.37","kev":false,"link":{"from":"CVE-2026-44336","to":"CVE-2026-44339","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PraisonAI","fromFixed":"4.6.34","toFixed":"4.6.37","daysApart":0}]}},{"cve":"CVE-2026-44340","published":"2026-05-08","fixed":"4.6.37","kev":false,"link":{"from":"CVE-2026-44336","to":"CVE-2026-44340","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PraisonAI","fromFixed":"4.6.34","toFixed":"4.6.37","daysApart":0}]}}],"package":"PyPI:PraisonAI"}}