Skip to main content

PraisonAI EUVDEUVD-2026-77614

| CVE-2026-56839 HIGH
Path Traversal (CWE-22)
2026-09-14 GitHub_M GHSA-gcq3-mfvh-3x25 PYSEC-2026-3512
7.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Access authenticated PraisonAI agent interface
  2. Delivery
    Identify CODE_TOOLS exposed without set_workspace
  3. Exploit
    Craft prompt with absolute target file path
  4. Execution
    Agent invokes code_read_file or code_apply_diff
  5. Persist
    workspace=None skips path containment guard
  6. Impact
    Read or overwrite arbitrary filesystem files

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

Exploitation requires three concurrent conditions: (1) the application uses the praisonai package's CODE_TOOLS, code_read_file, code_search_replace, or code_apply_diff agent wrappers; (2) set_workspace() has NOT been called before those tools are exposed to agents - specifically, the module-level _workspace_root remains None; and (3) a user or attacker submits a prompt that causes the agent to invoke one of the file-operation wrappers with a path outside the intended directory. Applications that call set_workspace() before initializing CODE_TOOLS (the documented and example-demonstrated approach) are not vulnerable. Exploitation is further limited by PR:L (some authenticated access to the agent interface is required) and UI:R (a user must submit the triggering prompt). Mass automated exploitation is not possible per SSVC Automatable: no.

Impact

The NVD-provided CVSS 7.3 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N) captures worst-case impact accurately - arbitrary file read and write - but AC:L understates the deployment pre-condition: exploitation requires the application to expose CODE_TOOLS before set_workspace() is called, which the official examples explicitly avoid. SSVC rates Automatable: no, consistent with the UI:R requirement and the specific misconfiguration gate. Technical impact is rated total by SSVC, aligning with the combined C:H/I:H. A POC exists (SSVC: poc), raising urgency above a theoretical finding, but there is no CISA KEV listing and no evidence of mass exploitation. The realistic risk profile is moderate-high for developers who misuse the API order, and negligible for deployments that follow official examples. The CVSS score is a reasonable worst-case ceiling rather than a typical-case expectation.

Exploit ScenarioDerived

An attacker interacting with a PraisonAI-based web application that exposes code agent tools before set_workspace() is called submits a crafted prompt instructing the agent to read /root/.ssh/id_rsa or overwrite /etc/cron.d/backdoor. Because _workspace_root is None, the path containment guard is silently skipped and the file operation executes against the target path. A local proof-of-concept script (poc_code_tools_workspace_bypass.py) has been published in the GHSA advisory demonstrating successful read bypass.

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

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

Alert me

AnalysisAIv1 – Sep 15, 2026

Path traversal in PraisonAI before 4.6.59 allows prompt-influenced calls to code agent tools to read and modify arbitrary files outside any intended project boundary when an application exposes CODE_TOOLS, code_read_file, code_search_replace, or code_apply_diff before calling set_workspace(). The global _workspace_root defaults to None, and the lower-level file helpers silently skip path containment checks when workspace is falsy - a fail-open design identical to a previously patched write_file path (GHSA-hvhp-v2gc-268q). A proof-of-concept exists per SSVC data; no confirmed active exploitation in CISA KEV.

RemediationAI

Upgrade to PraisonAI 4.6.59, which applies the same fail-closed default (effective_workspace = workspace or os.getcwd()) to read_file, search_replace, and apply_diff that was previously applied only to write_file. The fix is available via PyPI (pip install --upgrade 'praisonai>=4.6.59') and confirmed in the GitHub release tag v4.6.59 and commit b4270173d4123fb1ee8910588f0896668ee21b59 at https://github.com/MervinPraison/PraisonAI/commit/b4270173d4123fb1ee8910588f0896668ee21b59. If immediate upgrade is not possible, call set_workspace() with an explicit directory before any CODE_TOOLS initialization - the advisory confirms that explicitly configured workspaces remain fully effective as a workaround. Do not expose CODE_TOOLS agents in prompt-injection-reachable contexts without a workspace boundary in place.

Affected VersionsENISA

PraisonAI < 4.6.59

Affected Packages

pypi praisonai fix: 4.6.59

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

PraisonAI (CPE: cpe:2.3:a:mervinpraison:praisonai) is a Python multi-agent framework whose CODE_TOOLS module exposes agent-callable wrappers around file operations. The vulnerability (CWE-22, Path Traversal) originates in agent_tools.py, where the module-level _workspace_root is initialized to None and passed directly into helpers read_file.py, search_replace.py, and apply_diff.py. Each helper enforces path containment only inside an if workspace: branch, so a None workspace silently disables the guard. The write_file path was previously hardened to use effective_workspace = workspace or os.getcwd(), but the read and edit paths were not. When agents process user prompts containing absolute or traversal paths, those paths pass unchecked to the underlying file operations, reaching any readable or writable file on the host filesystem.

Know when Praisonai 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 (GitHub_M) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 6.4 MEDIUM

AC raised to H because exploitation requires a specific API misuse order (CODE_TOOLS before set_workspace); no availability impact applies.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Sep 14, 2026 - 18:03 EUVD
CVE Published
Sep 14, 2026 - 15:00 cve.org
HIGH 7.3

DescriptionCVE.org

PraisonAI is a multi-agent teams system. Prior to 4.6.59, the CODE_TOOLS wrappers keep _workspace_root as None and pass workspace=None to read_file, search_replace, and apply_diff helpers that enforce path containment only for a truthy workspace. An application that exposes code_read_file, code_search_replace, or code_apply_diff before set_workspace can therefore let prompt-influenced calls read and modify files outside the intended project directory, while explicitly configured workspaces remain effective. This vulnerability is fixed in 4.6.59.

Technical POC Analysis

CWE-22 (path traversal), with CWE-200 and CWE-863 co-assigned.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

PraisonAI versions before 4.6.59 contain a path traversal vulnerability in code automation tools that allows AI prompts to access and modify files outside project boundaries, risking exposure of source code, system credentials, and application configurations. Publicly available exploit code exists; this poses significant data breach and system compromise risk for organizations using PraisonAI for code operations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche Python multi-agent AI framework, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.3%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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.

CVE-2026-61447 CRITICAL POC
10.0 Jul 11

Remote code execution in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating th

CVE-2026-57139 CRITICAL POC
9.8 Sep 15

PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans

CVE-2026-57148 CRITICAL POC
9.8 Sep 15

Unauthenticated authentication bypass in praisonai-platform prior to 0.1.6 (and PraisonAI before 4.6.51) allows a remote

CVE-2026-55536 CRITICAL POC
9.1 Aug 25

WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att

CVE-2026-61426 HIGH POC
8.8 Jul 11

Unauthenticated agent access in PraisonAI before 1.7.3 lets remote attackers read agent instructions and system prompts

CVE-2026-55541 HIGH POC
8.8 Aug 25

PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne

CVE-2026-61439 HIGH POC
8.7 Jul 11

System prompt extraction and unauthorized tool invocation in PraisonAI before 4.6.78 arise because the prompt-injection

CVE-2026-55534 HIGH POC
8.6 Aug 25

Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller

CVE-2026-55526 HIGH POC
8.5 Aug 25

SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou

CVE-2026-61429 HIGH POC
8.4 Jul 11

Server-side request forgery in PraisonAI's Crawl4AI/Chromium crawling backend (all versions before 1.6.78) lets low-priv

CVE-2026-55533 HIGH POC
8.2 Aug 25

Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec

CVE-2026-55528 HIGH POC
8.2 Aug 25

Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u

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