CVE-2026-55540
Received Received - Intake

Path Traversal in PraisonAI

Vulnerability report for CVE-2026-55540, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: GitHub, Inc.

Description

PraisonAI is a multi-agent teams system. Prior to praisonai 4.6.51, is_path_within_directory() uses os.path.abspath() rather than os.path.realpath() for the workspace boundary. A symlink inside workspace can point outside and still pass the check, allowing read_file and other code tools to access files outside the configured workspace. This issue is fixed in version 4.6.58.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
praisonai praisonai 4.6.58
mervinpraison praisonai to 4.6.51 (exc)
mervinpraison praisonai 4.6.58

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in PraisonAI versions before 4.6.51 involves improper path containment checks in functions like is_path_within_directory(). It uses os.path.abspath() instead of os.path.realpath(), allowing symlinks inside the workspace to point outside and bypass security boundaries. This enables read_file and other tools to access files outside the configured workspace.

Detection Guidance

Check PraisonAI versions below 4.6.51 for the vulnerability. Inspect code for use of os.path.abspath() in path containment checks. Test for symlink-based path traversal by creating symlinks inside the workspace pointing outside and verifying if read_file or similar functions can access external files.

Impact Analysis

An attacker could exploit this to read, write, list, or execute files outside the intended workspace by using symlinks or directory traversal. This could lead to unauthorized access to sensitive files, data theft, or system compromise, depending on the process user's filesystem permissions.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating confidentiality requirements in GDPR and HIPAA. It undermines data protection controls by allowing access to files outside designated secure boundaries, potentially resulting in non-compliance with these regulations.

Mitigation Strategies

Upgrade PraisonAI to version 4.6.58 or later. Replace os.path.abspath() with os.path.realpath() or Path.resolve() in path containment checks. Ensure all functions like read_file, write_file, and list_files validate paths against the workspace boundary. Restrict workspace access permissions to the minimum required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-55540. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart