Skip to main content

CVE-2026-34935 — PraisonAI: OS Command Injection in praisonai

CRITICAL

PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command()

Published April 1, 2026Updated November 16, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.05%). Schedule for your next planned update.

Does your project use an affected praisonai version?

Paste your requirements.txt to check it for CVE-2026-34935 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my requirements.txt

Summary

Summary

The --mcp CLI argument is passed directly to shlex.split() and forwarded through the call chain to anyio.open_process() with no validation, allowlist check, or sanitization at any hop, allowing arbitrary OS command execution as the process user.

Details

cli/features/mcp.py:61 (source) -> praisonaiagents/mcp/mcp.py:345 (hop) -> mcp/client/stdio/__init__.py:253 (sink)

# source
parts = shlex.split(command)

# hop
cmd, args, env = self.parse_mcp_command(command, env_vars)
self.server_params = StdioServerParameters(command=cmd, args=arguments)

# sink
process = await anyio.open_process([command, *args])

Fixed in commit 47bff65413beaa3c21bf633c1fae4e684348368c (v4.5.69) by introducing a command allowlist:

ALLOWED_COMMANDS = {"npx", "uvx", "node", "python"}
if cmd not in ALLOWED_COMMANDS:
    raise ValueError(f"Disallowed command: {cmd}")

PoC

# tested on: praisonai==4.5.48
# install: pip install praisonai==4.5.48
# run: praisonai --mcp "bash -c 'id > /tmp/pwned'"
# verify: cat /tmp/pwned
# expected output: uid=1000(...) gid=1000(...) groups=1000(...)

Impact

Any deployment where the --mcp argument is influenced by untrusted input is exposed to full OS command execution as the process user. No authentication is required.

Advisory Timeline

  • First published April 1, 2026 (239 days ago).
  • Last revised November 16, 2026 — 229 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update praisonai to 4.5.69 or later
pip install "praisonai>=4.5.69"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: PyPI (1).

PackageFixed In
praisonai PyPI · Affected: 4.5.15, 4.5.16, 4.5.18, 4.5.19 (+44 more)4.5.69

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-78
    OS Command InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2026-34935?
PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command(). This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-34935?
CVE-2026-34935 affects praisonai. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-34935 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.05%
EPSS percentile: 63.7

This is an above-median EPSS score — 63.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-9gm9-c8mq-vq7m
PYSEC-2026-471

Related CVEs

  • CVE-2026-40088
    CRITICAL

    PraisonAI Vulnerable to OS Command Injection

  • CVE-2026-39890
    CRITICAL

    PraisonAI Vulnerable to Remote Code Execution via YAML Deserialization in Agent Definition Loading

  • CVE-2026-57131
    CRITICAL

    PraisonAI: Jobs API exposes agent-execution endpoints with no authentication

  • CVE-2026-57127
    CRITICAL

    praisonai: recipe serve auth middleware silently disables itself when no secret is set

  • CVE-2026-57124
    CRITICAL

    PraisonAI: Missing Authentication for Critical Function and Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in praisonai

  • CVE-2026-55536
    CRITICAL

    PraisonAI has a Browser Server WebSocket origin validation bypass via unanchored regex (patch bypass of CVE-2026-40289 / GHSA-8x8f-54wf-vv92)

  • CVE-2026-55541
    CRITICAL

    PraisonAI: `--api-key` flag on `praisonai serve` is not properly enforced

  • CVE-2026-61445
    CRITICAL

    PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt