CVE-2026-55540 in PraisonAIinfo

Summary

by MITRE • 08/25/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 08/25/2026

The vulnerability identified in PraisonAI versions prior to 4.6.51 represents a critical path traversal flaw rooted in improper handling of symbolic links within file system operations. As a multi-agent team system, PraisonAI relies heavily on secure access controls to ensure that autonomous agents operate strictly within their designated sandboxed environments. The core technical defect lies in the implementation of the is_path_within_directory function, which serves as the primary gatekeeper for validating whether a requested file path resides inside the allowed workspace boundaries. In versions affected by this issue, the validation logic utilizes os.path.abspath() to resolve relative paths into absolute ones before performing boundary checks. While abspath resolves symbolic links in terms of directory structure navigation, it does not follow the actual physical location of the symlink target on the disk. This distinction is crucial because a malicious actor or an untrusted agent can create a symbolic link within the permitted workspace that points to a file located outside of that workspace. When such a path is processed by abspath, the resulting absolute path still appears to be contained within the original directory structure from a logical perspective, thereby bypassing the security check and granting unauthorized access to sensitive files residing in external directories.

This flaw directly facilitates an Unauthorized Access vulnerability where agents can read or potentially modify data outside their intended scope using tools such as read_file. The operational impact is severe for any deployment of PraisonAI that handles confidential information, proprietary code, or personal data within the workspace directory structure. By exploiting this symlink trickery, an attacker who has control over agent inputs or configuration files could exfiltrate sensitive documents from system directories like /etc/passwd, application secrets stored in parent folders, or other restricted resources. This behavior aligns with CWE-22: Improper Limitation of a Pathname to a Restricted Directory, as the software fails to enforce proper confinement of file operations within the intended directory hierarchy. Furthermore, this technique is consistent with ATT&CK tactic T1083: File and Directory Discovery, where adversaries enumerate accessible files by bypassing local restrictions through path manipulation techniques that exploit differences between logical and physical path resolution.

The security community recognizes that relying solely on abspath for boundary validation is insufficient in environments where users or agents have the ability to create symbolic links. The correct approach requires resolving all symlinks to their real, physical paths before performing containment checks. This ensures that even if a symlink points outside the workspace, the resolved path will correctly reflect its external location and be rejected by the security filter. In PraisonAI version 4.6.58, this issue was addressed by replacing os.path.abspath() with os.path.realpath(). The realpath function recursively resolves all symbolic links in the given path to their actual physical locations on the file system. This change ensures that any attempt to access files via symlinks pointing outside the workspace is accurately detected and blocked, thereby restoring the integrity of the sandboxed environment.

To mitigate this vulnerability immediately for systems running affected versions, administrators should upgrade PraisonAI to version 4.6.58 or later as soon as possible. Until an upgrade can be performed, it is advisable to restrict file system permissions so that agents cannot create symbolic links within the workspace directory. Additionally, implementing strict input validation on all agent commands and tool arguments can help reduce the attack surface by preventing the injection of malicious path strings. Organizations should also audit their current deployments for any existing symlinks in workspaces that might point outside the intended boundaries, as these could be exploited even after a software update if not properly managed. Regular security assessments focusing on file system access controls and sandboxing efficacy are recommended to ensure continued protection against similar path traversal techniques in multi-agent AI systems.

Responsible

GitHub M

Reservation

06/17/2026

Disclosure

08/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!