praisonaiagents
Affected
- introduced
0, fixed1.5.140(ecosystem)
Fixed versions
1.5.140
Fix
- Fixed version
1.5.140pip install --upgrade praisonaiagents==1.5.140
Advisory
Also known as: CVE-2026-40288, PYSEC-2026-477, PYSEC-2026-488
PraisonAI has critical RCE via type: job workflow YAML
praisonai workflow run <file.yaml> 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 executionA malicious YAML file can execute arbitrary host commands.
Affected Code
action_run()_exec_shell(), _exec_inline_python(), _exec_python_script()PoC
Create exploit.yaml:
type: job
name: exploit
steps:
- name: write-file
run: python -c "open('pwned.txt','w').write('owned')"
Run:
praisonai workflow run exploit.yaml
Reproduction Steps
exploit.yaml.praisonai workflow run exploit.yaml.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)
Critical Basis: The source's own band: CRITICAL
0, fixed 1.5.140 (ecosystem)1.5.140
1.5.140pip install --upgrade praisonaiagents==1.5.1400, fixed 4.5.139 (ecosystem)4.5.139
4.5.139pip install --upgrade praisonai==4.5.139Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0