{"id":"CVE-2026-40288","published":"2026-04-14T03:00:21Z","modified":"2026-04-14T15:57:15Z","title":"PraisonAI: Critical RCE via `type: job` workflow YAML","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"PraisonAI is a multi-agent teams system. In versions below 4.5.139 of PraisonAI and 1.5.140 of praisonaiagents, the workflow engine is vulnerable to arbitrary command and code execution through untrusted YAML files. When praisonai workflow run <file.yaml> loads a YAML file with type: job, the JobWorkflowExecutor in job_workflow.py processes steps that support run: (shell commands via subprocess.run()), script: (inline Python via exec()), and python: (arbitrary Python script execution)—all without any validation, sandboxing, or user confirmation. The affected code paths include action_run() in workflow.py and _exec_shell(), _exec_inline_python(), and _exec_python_script() in job_workflow.py. An attacker who can supply or influence a workflow YAML file (particularly in CI pipelines, shared repositories, or multi-tenant deployment environments) can achieve full arbitrary command execution on the host system, compromising the machine and any accessible data or credentials. This issue has been fixed in versions 4.5.139 of PraisonAI and 1.5.140 of praisonaiagents.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00619,"percentile":0.50613,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vc46-vw85-3wvm","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":10.12},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":["< 4.5.139"]},{"vendor":"MervinPraison","product":"praisonaiagents","versions":["< 1.5.140"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-14T15:56:49.344666Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"praisonaiagents","vulnerableRanges":["<1.5.140"],"patched":["1.5.140"],"from":["GHSA-vc46-vw85-3wvm","PYSEC-2026-488"],"provenance":"source"},{"ecosystem":"PyPI","package":"PraisonAI","vulnerableRanges":["<4.5.139"],"patched":["4.5.139"],"from":["GHSA-vc46-vw85-3wvm","PYSEC-2026-477"],"provenance":"source"}],"summary":{"text":"PraisonAI's workflow engine (job_workflow.py and workflow.py) executes shell commands, inline Python and Python scripts from type: job YAML files without validation, sandboxing or confirmation. An attacker who can supply or influence a workflow YAML file, such as through a CI pipeline, shared repository or multi-tenant deployment, can run arbitrary commands and code on the host with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:38Z"},"euvd":{"id":"EUVD-2026-22209","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-40153","published":"2026-04-09","fixed":"1.5.128","kev":false},{"cve":"CVE-2026-40160","published":"2026-04-10","fixed":"1.5.128","kev":false},{"cve":"CVE-2026-40287","published":"2026-04-14","fixed":"1.5.140","kev":false},{"cve":"CVE-2026-40288","published":"2026-04-14","fixed":"1.5.140","kev":false},{"cve":"CVE-2026-40289","published":"2026-04-14","fixed":"1.5.140","kev":false},{"cve":"CVE-2026-41496","published":"2026-05-08","fixed":"1.6.8","kev":false,"link":{"from":"CVE-2026-40288","to":"CVE-2026-41496","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:praisonaiagents","fromFixed":"1.5.140","toFixed":"1.6.8","daysApart":24}]}},{"cve":"CVE-2026-44335","published":"2026-05-08","fixed":"1.6.32","kev":false}],"package":"PyPI:praisonaiagents"}}