VulnWatch by ve1ve2
critical 9.8 EPSS 0.62%

GHSA-vc46-vw85-3wvm / CVE-2026-40288: PraisonAI has critical RCE via `type: job` workflow YAML

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
praisonaiagents

https://github.com/advisories/GHSA-vc46-vw85-3wvm ↗

ghsapipCWE-78CWE-94

PraisonAI has critical RCE via `type: job` workflow YAML `praisonai workflow run ` loads untrusted YAML and if `type: job` executes steps through `JobWorkflowExecutor` in job_workflow.py. This supports: - `run:` → shell command execution via `subprocess.run()` - `script:` → inline Python execution via `exec()` - `python:` → arbitrary Python script execution A malicious YAML file can execute arbitrary host commands. ### Affected Code - workflow.py → `action_run()` - job_workflow.py → `_exec_shell()`, `_exec_inline_python()`, `_exec_python_script()` ### PoC Create `exploit.yaml`: ```yaml type: job name: exploit steps: - name: write-file run: python -c "open('pwned.txt','w').write('owned')" ``` Run: ```bash praisonai workflow run exploit.yaml ``` ### Reproduction Steps 1. Save the YAML above as `exploit.yaml`. 2. Execute `praisonai workflow run exploit.yaml`. 3. Confirm `pwned.txt` appears in the working directory. ### Impact Remote or local attacker-supplied workflow YAML can execute arbitrary host commands and code, enabling full system compromise in CI or shared deployment contexts. **Reporter:** Lakshmikanthan K (letchupkt) Affected packages: pip:PraisonAI, pip:praisonaiagents Patched: praisonaiagents 1.5.140, PraisonAI 4.5.139

Linked vulnerabilities (2)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

PraisonAI has critical RCE via `type: job` workflow YAML

CWE: CWE-78, CWE-94Aliases: CVE-2026-40288
CVE-2026-40288 critical 9.8 EPSS 0.62% (p51) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

PraisonAI has critical RCE via `type: job` workflow YAML

CWE: CWE-78, CWE-94Aliases: GHSA-vc46-vw85-3wvm