Skip to main content

PraisonAI CVE-2026-47394

| EUVDEUVD-2026-46302 HIGH
Path Traversal (CWE-22)
2026-05-29 https://github.com/MervinPraison/PraisonAI GHSA-9cr9-25q5-8prj PYSEC-2026-2908
8.7
CVSS 4.0 · Vendor: https://github.com/MervinPraison/PraisonAI
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Reach MCP server on loopback/stdio
  2. Delivery
    Send tools/call for praisonai.workflow.show
  3. Exploit
    Supply path to sensitive file
  4. Install
    Dispatcher forwards unvalidated kwargs
  5. C2
    Handler reads and returns file contents
  6. Execute
    Exfiltrate SSH keys / cloud credentials
  7. Impact
    Reuse creds for lateral movement

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The specific requirement is that the target run the PraisonAI MCP server with the CLI tools registered (register_cli_tools, i.e. 'praisonai mcp serve' over http-stream or stdio) - the default configuration, since api_key defaults to None and the auth check is bypassed when no key is set, so no operator misconfiguration is needed. The exploited primitive is a tools/call to praisonai.workflow.show (raw file content), or workflow.validate / deploy.validate (content fragments via YAML error messages), each of which passes the caller-supplied path straight to open() with no containment. Limiting factors defenders should weigh: over the HTTP transport the server binds to 127.0.0.1 by default, so reachability requires local/loopback co-tenancy (same host, container neighbor) or an MCP-connected LLM manipulated via prompt injection rather than raw internet access; only files readable by the praisonai host user can be exfiltrated; and impact is read-only (confidentiality), not direct code execution.

Impact

The signals are partially in tension and should be read together. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H, score 8.7) and the deployment facts - default api_key=None with the auth check gated behind 'if self.api_key:', default bind on loopback, and stdio transport used by Claude Desktop/Cursor/Continue/Claude Code - support a genuinely low-barrier, unauthenticated, high-confidentiality-impact read primitive. Working exploit code is published, which raises practical risk. Against that, EPSS is only 0.07% (23rd percentile) and the CVE is not in CISA KEV, indicating no observed mass exploitation to date; the low EPSS is consistent with a niche AI-agent framework rather than a contradiction. The impact is confidentiality-only (no integrity or availability), so this is not RCE on its own - but read access to SSH keys, cloud credentials, and .env secrets frequently chains into broader compromise via credential reuse, and the parent advisory's write half (rules.create) already demonstrated RCE via .pth injection. Note one nuance for defenders to verify: over the HTTP transport the server binds to 127.0.0.1 by default, so 'network' reachability in practice means local processes, container neighbors on loopback, or an MCP-connected LLM steered by prompt injection - not arbitrary internet exposure unless the operator rebinds the host.

Exploit ScenarioDerived

An attacker with any path to the MCP server - a local process or container neighbor on loopback, or an LLM whose context contains an attacker-controlled web page or document (e.g. 'summarise this page') - issues a single JSON-RPC tools/call to praisonai.workflow.show with file_path set to ~/.ssh/id_rsa, ~/.aws/credentials, or a project .env. Because the default deployment has api_key=None and no schema validation, the handler opens the file and returns its full contents in the response. A published PoC (start_mcp_server.sh + run_mcp_poc_video.sh) demonstrates exactly this against synthetic credentials, plus content-leak variants via workflow.validate and deploy.validate.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 21, 2026

Unauthenticated arbitrary file read in PraisonAI's MCP server (pip package praisonai, versions <= 4.6.39) lets a remote caller retrieve the full contents of any file the host user can read via the praisonai.workflow.show, workflow.validate, and deploy.validate tools. It is an incomplete-fix regression of CVE-2026-44336: the earlier patch added a path-containment helper to the rules.* handlers but left workflow.show and two adjacent handlers, plus the underlying kwargs dispatcher, unguarded. Publicly available exploit code exists (full PoC with server-start and curl attack scripts in the advisory); EPSS is very low at 0.07% (23rd percentile) and it is not listed in CISA KEV.

Earlier versions of this analysis (2)
v2 Jul 21, 2026 - 16:42 cvss changed CVSS 8.7

Arbitrary file read in PraisonAI (pip package, versions <= 4.6.39) lets an unauthenticated MCP client invoke praisonai.workflow.show, praisonai.workflow.validate, or praisonai.deploy.validate to read any file the host user can access, exfiltrating SSH keys, cloud credentials, API tokens, and .env secrets. It is the incomplete-fix follow-up to CVE-2026-44336: the original patch (commit 68cc9427) hardened rules.create/show/delete but left workflow.show and the two adjacent validate handlers, and the unvalidated **kwargs dispatcher, untouched. A detailed working proof of concept exists; no active exploitation has been reported (not in CISA KEV) and EPSS is low at 0.07%.

v1 May 29, 2026 - 23:20

Unauthenticated arbitrary file read in PraisonAI's MCP server (pip/PraisonAI <= 4.6.39) allows remote callers to retrieve any file readable by the host user via the praisonai.workflow.show, praisonai.workflow.validate, and praisonai.deploy.validate tool handlers. The flaw is an incomplete fix for CVE-2026-44336: a hardening helper was applied to the rules.* tools but not to these adjacent workflow/deploy handlers, and the dispatcher still forwards unvalidated kwargs to handlers. Publicly available exploit code exists (working proof-of-concept in the advisory); no public exploit identified at time of analysis as a packaged exploit, but the advisory itself ships a runnable PoC.

RemediationAI

Vendor-released patch: upgrade praisonai to 4.6.40 or later (pip install --upgrade praisonai), the version listed as fixed for the <=4.6.39 vulnerable range; track the change via GHSA-9cr9-25q5-8prj and PR #1684 (https://github.com/MervinPraison/PraisonAI/pull/1684). If you cannot upgrade immediately, apply specific compensating controls: set an api_key on the HTTP-stream transport so the auth gate at http_stream.py:192-198 actually enforces (it is skipped when api_key is None), which blocks unauthenticated HTTP callers but does not protect the stdio transport; avoid registering the CLI tools (do not call register_cli_tools / avoid 'praisonai mcp serve') on hosts holding sensitive files, at the cost of losing those workflow/deploy tools; and run the MCP server as a low-privilege user with no read access to SSH keys, cloud credentials, or .env files so an arbitrary read yields nothing useful. For a code-level fix consistent with the vendor's approach, port the existing _resolve_rule_path() containment pattern (commit 68cc9427) to workflow_show, workflow_validate, and deploy_validate to restrict paths to an allowed workflow/deploy root, and/or enforce tool.input_schema in the dispatcher before calling handler(**arguments) so the whole class of path-shaped sinks is closed at once.

Affected VersionsENISA

PraisonAI < 4.6.40

Affected Packages

pypi praisonai fix: 4.6.40

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is PraisonAI's Model Context Protocol (MCP) server, which registers CLI-backed tools in src/praisonai/praisonai/mcp_server/adapters/cli_tools.py and dispatches them through _handle_tools_call in server.py:281-298. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal): the dispatcher forwards the JSON 'arguments' object directly as **kwargs to the tool handler without validating it against the tool's declared input_schema, and the individual handlers (workflow_show(file_path), workflow_validate(file_path), deploy_validate(config_path)) open whatever path string they receive with no containment check against an allowed root. workflow.show echoes the raw file bytes back to the caller; workflow.validate and deploy.validate leak existence and content fragments through YAML parser error messages. The same dispatcher weakness also exposes OpenAI-backed sinks (audio.transcribe, files.create/files.content, ocr_extract), confirming the flaw is dispatcher-wide rather than isolated to one handler. Affected package per CPE is pkg:pip/praisonai.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/MervinPraison/PraisonAI) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Default deployment has no auth (api_key=None), so PR:N; a single crafted request reads any host-readable file, so AC:L with C:H and no I/A impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI).

CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jul 21, 2026 - 16:47 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 21, 2026 - 16:42 vuln.today
v2 - CVSS changed
CVSS changed
Jul 21, 2026 - 16:22 NVD
8.7 (HIGH)

DescriptionCVE.org

Summary

The fix for GHSA-9mqq-jqxf-grvw / CVE-2026-44336 is incomplete. The original advisory description named four vulnerable handlers in mcp_server/adapters/cli_tools.py:

> "registers four file-handling tools by default, praisonai.rules.create, praisonai.rules.show, praisonai.rules.delete, and praisonai.workflow.show. Each accepts a path or filename string from MCP tools/call arguments… with no containment check."

Commit 68cc9427 ("fix(security): harden MCP rules path handling…") added a _resolve_rule_path() helper and applied it to rules.create, rules.show, and rules.delete. workflow.show was left unchanged. Two adjacent handlers in the same file have the same pattern, workflow.validate and deploy.validate. Neither was mentioned in the original advisory. Both remain unchanged.

The original advisory also identified the dispatcher (server.py:281-298) as a root cause. It accepts unvalidated **kwargs from params["arguments"] with no enforcement against the tool's declared input_schema. That code is unchanged in HEAD as of commit 42221210.

Result: A single unauthenticated MCP tools/call to praisonai.workflow.show returns the contents of any file the host user can read: /etc/passwd, ~/.ssh/id_rsa, ~/.aws/credentials, or any project .env.

Affected functionality

src/praisonai/praisonai/mcp_server/adapters/cli_tools.py:

LinesToolBug
63-73praisonai.workflow.showReturns the full contents of any file the host user can read
42-61praisonai.workflow.validateReads any path; YAML parser error messages leak file existence + content fragments
415-432praisonai.deploy.validateSame pattern as workflow.validate. The config_path="deploy.yaml" default does not constrain the input.

src/praisonai/praisonai/mcp_server/server.py:281-298, _handle_tools_call:

python
async def _handle_tools_call(self, params: Dict[str, Any]) -> Dict[str, Any]:
    tool_name = params.get("name")
    arguments = params.get("arguments", {})
    ...
    tool = self._tool_registry.get(tool_name)
    ...
    if asyncio.iscoroutinefunction(tool.handler):
        result = await tool.handler(**arguments)
# ← no schema enforcement
    else:
        result = tool.handler(**arguments)

Any JSON arguments the MCP client sends become a **kwargs call to the handler. The original advisory pointed at this code path as the root cause. The May 3 patch did not change it.

Default deployment is exposed

src/praisonai/praisonai/mcp_server/transports/http_stream.py:38-91:

  • host defaults to 127.0.0.1, which is still reachable from any local process or container neighbour on loopback.
  • api_key defaults to None. The auth check at http_stream.py:192-198 is gated on if self.api_key:, so it is skipped when no key is configured. There is no env var or config switch that turns auth on by default.
  • The same handlers are also reachable on the stdio transport, which is the exploitation model the original advisory was written around (Claude Desktop, Cursor, Continue.dev, Claude Code).

Other file-read sinks reachable via the same dispatcher

These were not named in the original advisory. They confirm the bug is dispatcher-wide and not limited to cli_tools.py:

  • mcp_server/adapters/capabilities.py:19-28, praisonai.audio.transcribe(file_path). Opens any host file and ships it to OpenAI Whisper.
  • mcp_server/adapters/extended_capabilities.py:47-62, praisonai.files.create(file_path). Uploads any host file to OpenAI Files. A follow-up call to praisonai.files.content(file_id) (extended_capabilities.py:103-113) returns the bytes.
  • mcp_server/adapters/extended_capabilities.py:243-258, praisonai.ocr_extract(image_path). Opens any image, returns OCR text.

The three handlers in cli_tools.py are the most direct primitives, since they echo the file content back without an OpenAI round-trip.

Proof of Concept

Layout

PraisonAI/
└── poc/
    ├── start_mcp_server.sh         ← starts the real MCP server
    ├── run_mcp_poc_video.sh        ← runs the attack with curl
    ├── venv/
    └── output/
        ├── mcp_server_run.log
        ├── mcp_attacker_run.log
        └── synthetic_credentials.txt   (PoC-only fake creds)

start_mcp_server.sh run_mcp_poc_video.sh

The server starter runs the real MCPServer class with register_cli_tools(), same code path praisonai mcp serve --transport http-stream uses. No mocks.

How to reproduce

Terminal 1, start the server:

bash
cd PraisonAI
bash poc/start_mcp_server.sh

Boots MCPServer on 127.0.0.1:8766/mcp with no auth, matching the documented default api_key=None.

Terminal 2, run the attack:

bash
cd PraisonAI
bash poc/run_mcp_poc_video.sh

Six numbered steps. Each one prints the action, runs one curl, prints the JSON-RPC response.

workflow.validate leaks /etc/hosts:

json
{ "result": { "content": [{ "type": "text",
  "text": "YAML error: while scanning for the next token\nfound character '\\t' that cannot start any token\n  in \"/etc/hosts\", line 7, column 10" }] } }

The parser error message confirms the file exists and includes a fragment of its content.

deploy.validate leaks ~/.ssh/known_hosts:

json
{ "result": { "content": [{ "type": "text",
  "text": "Error: expected '<document start>', but found '<scalar>'\n  in \"/Users/<victim>/.ssh/known_hosts\", line 1, column 13" }] } }

workflow.show exfiltrates a credential file:

json
{ "result": { "content": [{ "type": "text",
  "text": "
# AWS-style credentials (SYNTHETIC, for PoC only)\n[default]\naws_access_key_id = AKIA-FAKE-EXFIL-KEY-FOR-POC\naws_secret_access_key = synthetic-secret-do-not-actually-exist-12345\n\n
# .env-style secrets\nDATABASE_URL=postgres://app:hunter2@db.internal/prod\nSLACK_BOT_TOKEN=xoxb-FAKE-TOKEN-for-poc-only\nOPENAI_API_KEY=sk-FAKE-FOR-POC\n" }] } }

The PoC writes its own synthetic credential file so the demonstration does not depend on the reviewer's real secrets. The same call reads ~/.ssh/id_rsa, ~/.aws/credentials, or any project .env if you point it there.

https://github.com/user-attachments/assets/09511e66-6a52-4fe3-a303-91d1f99cd27a

Impact

  • Confidentiality, High. Any file the praisonai user can read becomes available to the MCP caller. Typical targets are host SSH keys, cloud credentials, API tokens, project .env files, ~/.netrc, ~/.docker/config.json, browser cookie databases, and the system password file.
  • No authentication required. The default is api_key=None (http_stream.py:91). The auth check at http_stream.py:192-198 is wrapped in if self.api_key:, so it does not run when no key is configured.
  • No operator misconfiguration required. This is the documented default.
  • The original advisory's exploitation model still applies. An MCP-connected LLM whose context contains attacker-controlled web pages, documents, or emails can be steered into issuing the same tools/call and returning the response. No operator click is needed beyond "summarise this page".

The original advisory was Critical because the write primitive (rules.create) chained to RCE through .pth injection. This finding is the read half of the same shape. Read alone is enough to take SSH keys, cloud credentials, and tokens, which is usually how the rest of the host gets compromised through credential reuse.

Suggested fix

There are two ways to fix this. Doing both is fine. The dispatcher fix is preferred because it closes the same class of bug for every handler that takes a path-shaped argument, including the OpenAI-backed ones called out earlier.

1. Enforce tool.input_schema in the dispatcher

mcp_server/server.py:281-298. The schemas are already built reflectively from each handler's signature in registry.py:320-376. Validate arguments against the registered schema before calling tool.handler(**arguments) and reject anything that does not match. This covers workflow.show, workflow.validate, deploy.validate, audio.transcribe, files.create, ocr_extract, and any handler added later.

2. Per-handler containment

This is the same shape as the existing _resolve_rule_path() helper added in commit 68cc9427:

python
# cli_tools.py
def _resolve_workflow_path(file_path: str) -> Path:
    """Restrict workflow file_path to an allowed root."""
    if not isinstance(file_path, str) or not file_path:
        raise ValueError("file_path must be a non-empty string")
    if "\x00" in file_path or file_path.startswith("~"):
        raise ValueError(f"invalid file_path: {file_path!r}")
    workflows_root = Path(os.path.expanduser("~/.praison/workflows")).resolve()
    workflows_root.mkdir(parents=True, exist_ok=True)
    candidate = (workflows_root / file_path).resolve()
    try:
        candidate.relative_to(workflows_root)
    except ValueError:
        raise ValueError(f"invalid file_path: {file_path!r}")
    return candidate

Apply the same helper to:

  • workflow_show(file_path) and workflow_validate(file_path). Restrict to a workflow root.
  • deploy_validate(config_path). Restrict to a deploy-config root or an explicit allowlist.
  • The default="deploy.yaml" fallback resolves into the user's current working directory. Containment is what fixes the bug, but removing that default also makes prompt-injection chains harder.

Executive ViewAI

Why It Matters

PraisonAI workflow automation tool (pip package version 4.6.39 and earlier) allows unauthenticated remote attackers to extract any file the application can access, including credentials, configuration data, and proprietary files. Any organization using this package in production environments faces immediate risk of unauthorized information disclosure without requiring authentication or special privileges.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
Prevalence
Low
emerging open-source AI agent framework, limited production/enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy