Python
CVE-2026-35615
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed FileTools endpoint
-
DeliveryCraft traversal path '/tmp/../etc/passwd'
-
ExploitSubmit to read_file() method
-
ExecutionBypass normpath() validation
-
ImpactRetrieve 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
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
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
Lifecycle Timeline
3DescriptionCVE.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
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 absoluteSeverity: 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
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/passwdWhy this works:
# 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 filepathBEFORE callingnormpath(), not after _validate_pathusesos.path.normpathandos.path.abspath, which don't resolve symlinks, making it vulnerable to path traversal via symlink if attacker can control the symlink.
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-693f-pf34-72c5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB