# CVE-2026-40288: PraisonAI: Critical RCE via `type: job` workflow YAML

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T19:32:48.000Z
- Modified: 2026-11-16T16:15:06.520Z
- Also known as: GHSA-vc46-vw85-3wvm, PYSEC-2026-477, PYSEC-2026-488
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 4.5.139
- MervinPraison praisonaiagents: < 1.5.140
- praisonaiagents (PyPI): before 1.5.140
- praisonai (PyPI): before 4.5.139
- praison praisonai: before 4.5.139
- praison praisonaiagents: before 1.5.140

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vc46-vw85-3wvm> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40288> (advisory)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-477.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-488.yaml> (web)
- <https://pypi.org/project/praisonai> (package, web)
- <https://pypi.org/project/praisonaiagents> (package, web)
- <https://github.com/advisories/GHSA-vc46-vw85-3wvm> (advisory)

## Sources

- CVE List: [CVE-2026-40288](https://www.cve.org/CVERecord?id=CVE-2026-40288), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-vc46-vw85-3wvm](https://github.com/advisories/GHSA-vc46-vw85-3wvm), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-40288](https://nvd.nist.gov/vuln/detail/CVE-2026-40288), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-477](https://osv.dev/vulnerability/PYSEC-2026-477), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-488](https://osv.dev/vulnerability/PYSEC-2026-488), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40288 · Whole record: https://cve.day/CVE-2026-40288.json · Rebuilt by cve.day 2026-11-25T22:59:18.670Z
