{"id":"CVE-2026-40288","kind":"vulnerability","aliases":["CVE-2026-40288","GHSA-vc46-vw85-3wvm"],"related":[],"title":"PraisonAI has critical RCE via `type: job` workflow YAML","description":"`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)","summary":"PraisonAI's `praisonai workflow run` command executes the steps of a `type: job` workflow file, including `run:`, `script:` and `python:` steps, without checking what they contain. A malicious YAML file lets an attacker run arbitrary shell commands and Python code on the host that runs the workflow.","severity":"critical","cvss":9.8,"epss":0.00619,"exploited":false,"exploited_at":null,"products":[{"name":"praisonaiagents","fixed":["1.5.140"],"affected":"<= 1.5.139","ecosystem":"pypi"},{"name":"PraisonAI","fixed":["4.5.139"],"affected":"<= 4.5.138","ecosystem":"pypi"},{"name":"praison praisonai","fixed":["4.5.139"],"affected":"< 4.5.139","ecosystem":"vendor"},{"name":"praison praisonaiagents","fixed":["1.5.140"],"affected":"< 1.5.140","ecosystem":"vendor"},{"via":"cpe","name":"PraisonAI","fixed":["4.5.139"],"affected":"< 4.5.139","ecosystem":"pypi"},{"via":"cpe","name":"praisonaiagents","fixed":["1.5.140"],"affected":"< 1.5.140","ecosystem":"pypi"}],"ecosystems":["pypi","vendor"],"tags":["ai-agents","ai-tooling","ci","cwe-78","cwe-94","praisonai","praisonaiagents","python"],"not_affected_if":["fixed-version","trusted-workflows-only"],"how_to_check":"- Check the installed version: `pip show praisonai` and `pip show praisonaiagents`\n- Look for any use of `praisonai workflow run` on workflow files from outside your team, such as CI pipelines that take YAML from pull requests or shared deployments\n- Find `type: job` in workflow files you accept from untrusted sources","fix":"- `praisonai` fixed in `4.5.139` (affected up to `4.5.138`)\n- `praisonaiagents` fixed in `1.5.140` (affected up to `1.5.139`)","status":"open","published_at":"2026-04-10T19:32:48+00:00","first_seen_at":"2026-11-16T15:58:20+00:00","triaged_at":"2026-11-16T15:58:28+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"ai-tooling","confidence":0.85,"triage":{"at":"2026-11-16T15:58:28Z","model":"claude-haiku-5-5","output":{"fix":"- `praisonai` fixed in `4.5.139` (affected up to `4.5.138`)\n- `praisonaiagents` fixed in `1.5.140` (affected up to `1.5.139`)","reach":"local","title":"PraisonAI: crafted workflow YAML runs arbitrary host commands on the machine","impact":"high","summary":"PraisonAI's `praisonai workflow run` command executes the steps of a `type: job` workflow file, including `run:`, `script:` and `python:` steps, without checking what they contain. A malicious YAML file lets an attacker run arbitrary shell commands and Python code on the host that runs the workflow.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["praisonai","praisonaiagents","python","ci","ai-agents"],"confidence":0.85,"fix_status":"available","needs_auth":"no","worst_case":"Attacker runs arbitrary commands and code on the host","analyst_note":"","how_to_check":"- Check the installed version: `pip show praisonai` and `pip show praisonaiagents`\n- Look for any use of `praisonai workflow run` on workflow files from outside your team, such as CI pipelines that take YAML from pull requests or shared deployments\n- Find `type: job` in workflow files you accept from untrusted sources","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["trusted-workflows-only","fixed-version"],"who_is_affected":"Teams that run `praisonai workflow run` on YAML files they did not write, including CI jobs that accept workflow files from pull requests and shared deployments where users supply workflows. Installations that only run their own trusted workflow files are exposed to less risk, but the flaw is in the code path that executes any `type: job` file.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"critical"},"cost_usd":0.00083,"input_tokens":5055,"output_tokens":648,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2026':11A,19A '-40288':12A,20A '-78':37B '-94':39B '1':177C '2':184C '3':190C '3wvm':17A 'action':137C 'affect':134C 'agent':31B 'ai':30B,33B 'ai-ag':29B 'ai-tool':32B 'appear':193C 'arbitrari':77B,121C,131C,209C 'attack':75B,203C 'attacker-suppli':202C 'bash':170C 'c':163C 'check':65B 'ci':35B,219C 'code':82B,135C,213C 'command':48B,79B,110C,133C,211C 'compromis':217C 'confirm':191C 'contain':68B 'context':223C 'creat':149C 'critic':3A 'cve':10A,18A 'cwe':36B,38B 'deploy':222C 'directori':197C 'enabl':214C 'exec':119C,140C,142C,145C 'execut':49B,100C,111C,117C,124C,130C,185C,208C 'exploit':155C 'exploit.yaml':150C,174C,183C,189C 'file':57B,72B,128C,160C 'full':215C 'ghsa':14A 'ghsa-vc46-vw85-3wvm':13A 'host':85B,132C,210C 'impact':198C 'includ':58B 'inlin':115C,143C 'job':7A,55B,99C,153C 'job_workflow.py':105C,139C 'jobworkflowexecutor':103C 'k':226C 'lakshmikanthan':225C 'let':73B 'letchupkt':227C 'load':93C 'local':201C 'malici':70B,126C 'name':154C,157C 'open':164C 'own':168C 'poc':148C 'praison':23A,25A 'praisonai':1A,22A,24A,27A,40B,43B,45B,90C,171C,186C 'praisonaiag':41B 'praisonaiagents':21A,26A,28A 'pwned.txt':165C,192C 'python':42B,62B,81B,116C,120C,122C,144C,146C,162C 'rce':4A 'remot':199C 'report':224C 'reproduct':175C 'run':47B,59B,76B,87B,92C,108C,138C,161C,169C,173C,188C 'save':178C 'script':60B,114C,123C,147C 'share':221C 'shell':78B,109C,141C 'step':51B,63B,101C,156C,176C 'subprocess.run':113C 'suppli':204C 'support':107C 'system':216C 'tool':34B 'type':6A,54B,98C,152C 'untrust':94C 'vc46':15A 'via':5A,112C,118C 'vw85':16A 'w':166C 'without':64B 'work':196C 'workflow':8A,46B,56B,89B,91C,172C,187C,205C 'workflow.py':136C 'write':159C,167C 'write-fil':158C 'yaml':9A,71B,95C,127C,151C,180C,206C","nicknames":[],"mitigations":[],"who_affected":"Teams that run `praisonai workflow run` on YAML files they did not write, including CI jobs that accept workflow files from pull requests and shared deployments where users supply workflows. Installations that only run their own trusted workflow files are exposed to less risk, but the flaw is in the code path that executes any `type: job` file.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["praisonai","praisonaiagents","praisonpraisonai","praisonpraisonaiagents"],"ptokens":["praison","praisonai","praisonaiagents"],"labels":["aiagents","aitooling","ci","critical","cwe78","cwe94","praisonai","praisonaiagents","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2026':11A,19A '-40288':12A,20A '3wvm':17A 'critic':3A 'cve':10A,18A 'ghsa':14A 'ghsa-vc46-vw85-3wvm':13A 'job':7A 'praison':23A,25A 'praisonai':1A,22A,24A,27A 'praisonaiagents':21A,26A,28A 'rce':4A 'type':6A 'vc46':15A 'via':5A 'vw85':16A 'workflow':8A 'yaml':9A","search_b":"'-78':37B '-94':39B 'agent':31B 'ai':30B,33B 'ai-ag':29B 'ai-tool':32B 'arbitrari':77B 'attack':75B 'check':65B 'ci':35B 'code':82B 'command':48B,79B 'contain':68B 'cwe':36B,38B 'execut':49B 'file':57B,72B 'host':85B 'includ':58B 'job':55B 'let':73B 'malici':70B 'praisonai':40B,43B,45B 'praisonaiag':41B 'python':42B,62B,81B 'run':47B,59B,76B,87B 'script':60B 'shell':78B 'step':51B,63B 'tool':34B 'type':54B 'without':64B 'workflow':46B,56B,89B 'yaml':71B","search_c":"'1':177C '2':184C '3':190C 'action':137C 'affect':134C 'appear':193C 'arbitrari':121C,131C,209C 'attack':203C 'attacker-suppli':202C 'bash':170C 'c':163C 'ci':219C 'code':135C,213C 'command':110C,133C,211C 'compromis':217C 'confirm':191C 'context':223C 'creat':149C 'deploy':222C 'directori':197C 'enabl':214C 'exec':119C,140C,142C,145C 'execut':100C,111C,117C,124C,130C,185C,208C 'exploit':155C 'exploit.yaml':150C,174C,183C,189C 'file':128C,160C 'full':215C 'host':132C,210C 'impact':198C 'inlin':115C,143C 'job':99C,153C 'job_workflow.py':105C,139C 'jobworkflowexecutor':103C 'k':226C 'lakshmikanthan':225C 'letchupkt':227C 'load':93C 'local':201C 'malici':126C 'name':154C,157C 'open':164C 'own':168C 'poc':148C 'praisonai':90C,171C,186C 'pwned.txt':165C,192C 'python':116C,120C,122C,144C,146C,162C 'remot':199C 'report':224C 'reproduct':175C 'run':92C,108C,138C,161C,169C,173C,188C 'save':178C 'script':114C,123C,147C 'share':221C 'shell':109C,141C 'step':101C,156C,176C 'subprocess.run':113C 'suppli':204C 'support':107C 'system':216C 'type':98C,152C 'untrust':94C 'via':112C,118C 'w':166C 'work':196C 'workflow':91C,172C,187C,205C 'workflow.py':136C 'write':159C,167C 'write-fil':158C 'yaml':95C,127C,151C,180C,206C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-04-10T12:20:43+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-vc46-vw85-3wvm","url":"https://github.com/advisories/GHSA-vc46-vw85-3wvm","severity":"critical","published_at":"2026-04-10T19:32:48+00:00","modified_at":"2026-11-16T15:57:55+00:00","first_seen_at":"2026-11-16T15:58:20+00:00","fetched_at":"2026-11-16T16:07:02+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-40288","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40288","severity":null,"published_at":"2026-04-14T04:17:12+00:00","modified_at":"2026-10-26T22:10:00+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170841,"url":"https://api.github.com/repos/MervinPraison/PraisonAI/security-advisories/GHSA-vc46-vw85-3wvm","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":170842,"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vc46-vw85-3wvm","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-04-10T12:20:43+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":170843,"url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00619,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40288"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}