Skip to main content

Python CVE-2026-35615

CRITICAL
Path Traversal (CWE-22)
2026-04-06 https://github.com/MervinPraison/PraisonAI GHSA-693f-pf34-72c5
9.2
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. Access
    Identify exposed FileTools endpoint
  2. Delivery
    Craft traversal path '/tmp/../etc/passwd'
  3. Exploit
    Submit to read_file() method
  4. Execution
    Bypass normpath() validation
  5. Impact
    Retrieve sensitive file content

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

No special conditions - remote unauthenticated exploitation against default configurations of praisonai-agents package. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms network-accessible exploitation requiring no authentication, no user interaction, and low attack complexity. Exploitation only requires that the vulnerable application exposes FileTools methods (read_file, write_file, or others) to attacker-controlled input, either through API endpoints, command-line interfaces, agent tooling, or other input channels. The vulnerability exists in the FileTools class itself regardless of how it's invoked. Limiting factors: (1) Application must actually use the vulnerable FileTools class methods in code paths accessible to untrusted input; (2) File read impact is constrained by the process's filesystem permissions (if running as non-root, cannot read root-only files, though user-level secrets like ~/.ssh/id_rsa remain accessible); (3) Network accessibility depends on application deployment (if FileTools only used in offline/batch processing, attack surface is reduced to local attackers). However, the PoC demonstrates that any code path calling FileTools._validate_path() or its dependent methods with attacker-controlled paths is exploitable without additional prerequisites.

Impact

Real-world risk assessment reveals moderate urgency despite critical CVSS 9.2 score. The CVSS v4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates network-accessible exploitation with no authentication required and low attack complexity, which supports the critical rating. However, EPSS exploitation probability of 0.06% (20th percentile) suggests low attacker interest or limited real-world exploitability constraints. No CISA KEV listing confirms no active exploitation detected. The GitHub advisory confirms publicly available exploit code exists (PoC provided in advisory), making this weaponizable. Key risk factors: (1) Exploitation requires the application to expose FileTools methods to untrusted input, which may not be default behavior in all PraisonAI deployments; (2) Impact is limited to confidentiality breach (VC:H, VI:N, VA:N) - read-only access unless write methods are also exposed; (3) Scope change indicated (SC:H) suggests potential access beyond the vulnerable component's privileges. SSVC decision points: Exploitation=PoC, Automatable=Yes (trivial one-step exploitation), Technical Impact=Total (system-wide file read). Priority is HIGH for deployments where FileTools accepts external input, MEDIUM for isolated/internal-only usage. Patch availability mitigates urgency. Data completeness is excellent - vendor advisory, fix version, and PoC all confirmed.

Exploit ScenarioDerived

An attacker identifies a PraisonAI application exposing file operation functionality through an API endpoint or agent interface. The attacker crafts a malicious file path '/tmp/../etc/passwd' and submits it to the FileTools.read_file() method via the exposed interface. The vulnerable _validate_path() function normalizes the path to '/etc/passwd', checks for '..' in the normalized string (finds none since normalization collapsed it), and returns the absolute path. FileTools.read_file() then reads and returns the contents of /etc/passwd to the attacker. The attacker escalates by reading /etc/shadow (if process runs as root), SSH private keys from /root/.ssh/id_rsa or /home/*/.ssh/id_rsa, application configuration files containing secrets, or cloud instance metadata credentials. If write methods are exposed, the attacker could overwrite critical system files or plant backdoors. Publicly available exploit code exists per vendor advisory, making exploitation trivial for attackers with basic Python knowledge.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Apr 16, 2026

Path traversal in PraisonAI Agents (praisonai-agents Python package) allows remote unauthenticated attackers to read arbitrary files from the system. The vulnerability exists in FileTools class methods (_validate_path, read_file, write_file, and others) due to a critical logic error: the code checks for '..' sequences AFTER os.path.normpath() already collapsed them, rendering the validation completely ineffective. Exploitation requires no special conditions beyond the ability to specify file paths to affected methods. EPSS probability is low (0.06%, 20th percentile), and vendor patch v4.5.113 is available per GitHub advisory GHSA-693f-pf34-72c5. No active exploitation (CISA KEV) confirmed at time of analysis.

Earlier versions of this analysis (1)
v1 Apr 06, 2026 - 23:31 CVSS 9.2

Path traversal in PraisonAI's praisonai-agents package allows unauthenticated remote attackers to read or write arbitrary files on affected systems. The vulnerability stems from a critical logic flaw where path validation checks for '..' sequences after normalization has already collapsed them, rendering the security check completely ineffective. Attackers can trivially bypass protections using standard path traversal sequences (e.g., '/tmp/../etc/passwd') to access sensitive files including system credentials, SSH keys, or write malicious content. Publicly available exploit code exists demonstrating trivial exploitation. While no CVSS score is officially assigned, the vendor assessment indicates CVSS 4.0 score of 9.2 (Critical), and this represents a high-priority remediation given the ease of exploitation and severe impact.

RemediationAI

Upgrade praisonai-agents to version 4.5.113 or later immediately. Install via pip: 'pip install --upgrade praisonai-agents>=4.5.113'. Vendor-released patch confirmed in GitHub release v4.5.113 at https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.113. The patch corrects the validation logic to check for '..' in the original filepath BEFORE normalization, and implements proper symlink resolution using os.path.realpath(). If immediate upgrade is not possible, implement compensating controls: (1) Implement application-level input validation that rejects any file path containing '..' sequences before passing to FileTools methods; (2) Restrict FileTools usage to a chroot jail or container with minimal file system access; (3) Use allowlist-based path validation that only permits access to explicitly defined directories (e.g., '/var/app/data/*') rather than denylisting bad patterns; (4) Run the application with minimal filesystem permissions using a dedicated low-privilege service account; (5) Monitor file access patterns for anomalies (attempts to read /etc/passwd, /etc/shadow, ~/.ssh/* files). Note that compensating control (1) prevents traversal but doesn't address symlink issues - only the vendor patch fully resolves both vectors. Do not rely solely on the vulnerable _validate_path() method until patched.

Affected Packages

pypi praisonai fix: 1.5.113

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 vulnerability affects the PraisonAI Agents Python package (pkg:pip/praisonai), specifically in the FileTools utility class within src/praisonai-agents/praisonaiagents/tools/file_tools.py. This is a classic CWE-22 path traversal flaw caused by incorrect order of operations in path validation. The _validate_path() method first calls os.path.normpath() which collapses all '../' directory traversal sequences into their resolved form (e.g., '/tmp/../etc/passwd' becomes '/etc/passwd'), then checks if '..' exists in the normalized result. Since normpath() has already removed the '..' strings, the security check never triggers. Additionally, the code uses os.path.abspath() rather than os.path.realpath(), meaning symbolic links are not resolved, creating a secondary path traversal vector if attackers control symlinks. This vulnerability affects all file operation methods in the class including read_file, write_file, list_files, get_file_info, copy_file, move_file, delete_file, and download_file. The flaw represents a fundamental misunderstanding of when path sanitization must occur relative to path normalization in secure coding practices.

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 9.2 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.

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
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 01:57 vuln.today
v2 - CVSS changed
Patch released
Apr 07, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 06, 2026 - 23:09 nvd
CRITICAL 9.2

DescriptionCVE.org

Executive Summary:

The path validation has a critical logic bug: it checks for .. AFTER normpath() has already collapsed all .. sequences. This makes the check completely useless and allows trivial path traversal to any file on the system. The path validation function also does not resolve the symlink wich could potentially cause path traversal.

Details:

_validate_path() calls os.path.normpath() first, which collapses .. sequences, then checks for '..' in normalized. Since .. is already collapsed, the check always passes.

Vulnerable File: src/praisonai-agents/praisonaiagents/tools/file_tools.py

Lines: 42-49

python
class FileTools:
    """Tools for file operations including read, write, list, and information."""

    @staticmethod
    def _validate_path(filepath: str) -> str:
# Normalize the path
        normalized = os.path.normpath(filepath)
        absolute = os.path.abspath(normalized)
# Check for path traversal attempts (.. after normalization)
# We check the original input for '..' to catch traversal attempts
        if '..' in normalized:
            raise ValueError(f"Path traversal detected: {filepath}")

        return absolute

Severity: CRITICAL

CVSS v3.1: 9.2 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

CWE: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Proof of concept (PoC)

Prerequisites:

  • Ability to specify a file path can call file operations

Steps to reproduce: poc.py

python
from praisonaiagents.tools.file_tools import FileTools

print(FileTools._validate_path('/tmp/../etc/passwd'))
# Returns: /etc/passwd

print(FileTools.read_file('/tmp/../etc/passwd'))
# Returns: content of /etc/passwd

Why this works:

python
# Current vulnerable code:
normalized = os.path.normpath(filepath)
# Collapses .. HERE
absolute = os.path.abspath(normalized)
if '..' in normalized:
# Check AFTER collapse - ALWAYS FALSE!
    raise ValueError(...)

Impact:

  • Complete bypass of path traversal protection
  • Access to ANY file on the system with path from any starting directory
  • Read sensitive files: /etc/passwd, /etc/shadow, ~/.ssh/id_rsa
  • Write arbitrary files if combined with write operations
  • Affect file operations read_file, write_file, list_files, get_file_info, copy_file, move_file, delete_file, download_file

Additional Notes:

  • Fix: Check for '..' in filepath BEFORE calling normpath(), not after
  • _validate_path uses os.path.normpath and os.path.abspath, which don't resolve symlinks, making it vulnerable to path traversal via symlink if attacker can control the symlink.

Executive ViewAI

Why It Matters

PraisonAI Agents (praisonai-agents package) contains a critical path traversal vulnerability allowing unauthenticated remote attackers to read arbitrary files from servers running affected versions. This affects any organization using this Python package in production applications, exposing sensitive data including credentials, configuration files, and proprietary information accessible to the underlying system.

Business Impact: Severe
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, restrict network access to affected PraisonAI Agents services to trusted internal networks only, disable or isolate FileTools class methods if not required for core functionality, and implement file system access controls (Unix permissions, SELinux) to limit readable system files to application-required directories only.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

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

Affected Products (CPE)CVE.org

pkg:pip/praisonai

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