{"id":"CVE-2026-40288","aliases":["CVE-2026-40288","GHSA-vc46-vw85-3wvm","PYSEC-2026-477","PYSEC-2026-488"],"related":[],"kind":"vulnerability","state":"published","title":"PraisonAI: Critical RCE via `type: job` workflow YAML","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"`praisonai workflow run <file.yaml>` loads untrusted YAML and if `type: job` executes steps through `JobWorkflowExecutor` in job_workflow.py.\n\nThis supports:\n- `run:` → shell command execution via `subprocess.run()`\n- `script:` → inline Python execution via `exec()`\n- `python:` → arbitrary Python script execution\n\nA malicious YAML file can execute arbitrary host commands.\n\n### Affected Code\n- workflow.py → `action_run()`\n- job_workflow.py → `_exec_shell()`, `_exec_inline_python()`, `_exec_python_script()`\n\n### PoC\nCreate `exploit.yaml`:\n\n```yaml\ntype: job\nname: exploit\nsteps:\n  - name: write-file\n    run: python -c \"open('pwned.txt','w').write('owned')\"\n```\n\nRun:\n\n```bash\npraisonai workflow run exploit.yaml\n```\n\n### Reproduction Steps\n1. Save the YAML above as `exploit.yaml`.\n2. Execute `praisonai workflow run exploit.yaml`.\n3. Confirm `pwned.txt` appears in the working directory.\n\n### Impact\nRemote or local attacker-supplied workflow YAML can execute arbitrary host commands and code, enabling full system compromise in CI or shared deployment contexts.\n\n**Reporter:** Lakshmikanthan K (letchupkt)","format":"markdown","source":"ghsa"},{"lang":"es","text":"PraisonAI es un sistema de equipos multiagente. En versiones anteriores a la 4.5.139 de PraisonAI y la 1.5.140 de praisonaiagents, el motor de flujo de trabajo es vulnerable a la ejecución arbitraria de comandos y código a través de archivos YAML no confiables. Cuando praisonai workflow run <file.yaml> carga un archivo YAML con type: job, el JobWorkflowExecutor en job_workflow.py procesa pasos que admiten run: (comandos de shell a través de subprocess.run()), script: (Python en línea a través de exec()), y python: (ejecución arbitraria de scripts de Python), todo sin ninguna validación, sandboxing o confirmación del usuario. Las rutas de código afectadas incluyen action_run() en workflow.py y _exec_shell(), _exec_inline_python(), y _exec_python_script() en job_workflow.py. Un atacante que puede proporcionar o influir en un archivo YAML de flujo de trabajo (particularmente en pipelines de CI, repositorios compartidos o entornos de despliegue multi-inquilino) puede lograr la ejecución completa y arbitraria de comandos en el sistema anfitrión, comprometiendo la máquina y cualquier dato o credencial accesible. Este problema ha sido solucionado en las versiones 4.5.139 de PraisonAI y 1.5.140 de praisonaiagents.","source":"nvd"}],"published":"2026-04-10T19:32:48.000Z","modified":"2026-11-16T16:15:06.520Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":"< 4.5.139","status":"affected"}],"vendor":"MervinPraison","product":"PraisonAI","source":"cvelist"},{"ranges":[{"version":"< 1.5.140","status":"affected"}],"vendor":"MervinPraison","product":"praisonaiagents","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.5.140"}],"ecosystem":"PyPI","package":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.5.139"}],"ecosystem":"PyPI","package":"praisonai","purl":"pkg:pypi/praisonai","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.5.139"}],"vendor":"praison","product":"praisonai","cpe":"cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.5.140"}],"vendor":"praison","product":"praisonaiagents","cpe":"cpe:2.3:a:praison:praisonaiagents:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.5.139"}],"ecosystem":"PyPI","package":"praisonai","purl":"pkg:pypi/praisonai","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.5.140"}],"ecosystem":"PyPI","package":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","source":"pysec"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vc46-vw85-3wvm","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40288","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/MervinPraison/PraisonAI","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-477.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-488.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/praisonai","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/praisonaiagents","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-vc46-vw85-3wvm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-04-14T15:56:49.344Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40288","url":"https://www.cve.org/CVERecord?id=CVE-2026-40288","licence":"CVE Terms of Use","modified":"2026-04-14T15:57:15.812Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vc46-vw85-3wvm","url":"https://github.com/advisories/GHSA-vc46-vw85-3wvm","licence":"CC-BY-4.0","modified":"2026-11-16T16:15:06.520Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40288","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40288","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-477","url":"https://osv.dev/vulnerability/PYSEC-2026-477","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:16.936Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-488","url":"https://osv.dev/vulnerability/PYSEC-2026-488","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:16.470Z"}],"updatedAt":"2026-11-25T22:59:18.670Z","epss":{"score":0.00633,"percentile":0.51671,"date":"2026-12-01T12:00:22.000Z"}}