CVE-2026-61432: PraisonAI Path Traversal in FastContext File Access
PraisonAI versions before 1.6.78 contain a path traversal weakness in their FastContext feature. When the system executes file-related tools like file reading or directory listing, it does not properly validate absolute file paths or path sequences that use '../' to step backward through directories. This means an attacker with access to the application could craft requests or manipulate the AI model to read files outside the intended workspace directory, potentially exposing sensitive data stored on the server.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.7 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- Weaknesses (CWE)
- CWE-22
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-10 / 2026-07-10
NVD description (verbatim)
PraisonAI (praisonaiagents) before 1.6.78 contains a path traversal vulnerability in the FastContext feature (praisonaiagents.context.fast). FastContextAgent.execute_tool() prepends the configured workspace_path only for relative paths and neither rejects absolute paths nor canonicalizes joined paths before enforcing workspace containment. As a result, tool arguments or model-generated function calls to grep_search, glob_search, read_file, or list_directory can supply absolute paths or '../' traversal sequences to read, search, and enumerate files outside the intended workspace directory, with file contents returned to the caller or injected into the model's tool-result context.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-61432 is a path traversal vulnerability in praisonaiagents' FastContext module (praisonaiagents.context.fast). The FastContextAgent.execute_tool() method applies workspace path containment checks only to relative paths. It fails to reject absolute paths and does not canonicalize joined paths before enforcement, allowing bypass via absolute path injection or '../' sequences. Affected tools include grep_search, glob_search, read_file, and list_directory. Successful exploitation returns file contents to the caller or injects them into the model's tool-result context, enabling information disclosure beyond the workspace boundary.
Business impact
Organizations deploying PraisonAI as part of AI agent workflows risk unauthorized exposure of sensitive files on the host system. If the application runs with elevated privileges or in environments where sensitive configuration files, credentials, or customer data reside alongside the workspace directory, an attacker could exfiltrate that information. The vulnerability is particularly concerning in multi-tenant or shared-server deployments where workspace isolation is a security boundary.
Affected systems
PraisonAI (praisonaiagents) versions prior to 1.6.78 are affected. The vulnerability is specific to deployments that use the FastContext feature. Organizations running version 1.6.78 or later are not vulnerable to this path traversal flaw.
Exploitability
The vulnerability requires authentication (PR:L in the CVSS vector) and user interaction (UI:R), placing it in the MEDIUM severity category. An authenticated user or an AI model following attacker-crafted tool arguments can trigger the vulnerability. The barrier to exploitation is low—attackers need only supply an absolute path or '../' sequence as a parameter to a vulnerable tool function. No special network capabilities or race conditions are required.
Remediation
Upgrade praisonaiagents to version 1.6.78 or later. The patch addresses path validation by rejecting absolute paths, canonicalizing paths before containment checks, and ensuring both relative and absolute paths are properly validated against the workspace boundary. After patching, verify that the FastContext feature is re-enabled and test file operations to confirm workspace isolation is enforced.
Patch guidance
Update the praisonaiagents package to version 1.6.78 or later using your package manager (e.g., 'pip install --upgrade praisonaiagents>=1.6.78'). Review deployment configurations to ensure the workspace_path is set to a narrow, least-privilege directory containing only files the AI agent should access. Test the patched version in a staging environment, particularly the grep_search, glob_search, read_file, and list_directory functions, to confirm path containment is enforced before deploying to production.
Detection guidance
Monitor application logs for tool invocations that include absolute paths (starting with '/') or '../' sequences in arguments to FastContext file-access functions. Inspect model-generated function calls in the tool-result context for suspicious file paths. Network-based detection is limited since the attack occurs within the application; focus on application-level logging and access logs that record which files were read or enumerated. Organizations without detailed logging should enable debug-level logging for the praisonaiagents.context.fast module during the interim period before patching.
Why prioritize this
Although the CVSS score is MEDIUM (5.7), the vulnerability should be prioritized based on your environment's sensitivity. If PraisonAI runs in environments with sensitive files (secrets, private keys, customer data) outside the intended workspace, or in production systems where the application has wide file-system access, remediation should be expedited. Low-risk deployments (e.g., sandboxed environments, limited file access) can follow a standard patch cycle.
Risk score, explained
The CVSS 3.1 score of 5.7 reflects a confidentiality impact (C:H) with no integrity or availability consequences, authentication and user interaction required, and local scope. The score accurately captures the information-disclosure risk but may underweight severity in multi-tenant or sensitive-data scenarios. Organizations should assess the criticality of files accessible from the application's runtime location and adjust risk posture accordingly.
Frequently asked questions
Does this vulnerability allow remote code execution or data modification?
No. CVE-2026-61432 is a read-only information disclosure vulnerability. It permits reading and enumerating files outside the workspace but does not allow file modification, deletion, or code execution. The attacker's impact is limited to viewing file contents.
Can this be exploited without authentication or user interaction?
No. The vulnerability requires an authenticated user (PR:L) and user interaction (UI:R) according to the CVSS vector. An attacker cannot exploit this remotely without first gaining a valid application session and either manipulating the user or crafting AI model tool calls that the user approves.
Should I be concerned if my workspace_path is set to '/' (the root directory)?
Yes, absolutely. If workspace_path is set to the filesystem root or any overly permissive directory, this vulnerability becomes critical—the attacker can read any file the application process can access. Always configure workspace_path to the narrowest possible directory containing only necessary files, apply principle of least privilege to the application process, and update to 1.6.78 immediately.
Are there workarounds if I cannot update immediately?
Configure the application to run with minimal file-system permissions (e.g., a restricted user account, container seccomp/AppArmor profiles, or chroot jails). Set workspace_path to a narrow, isolated directory. Disable the FastContext feature entirely if not needed. However, these are temporary mitigations; patching to version 1.6.78 is the proper remediation.
This analysis is based on publicly available vulnerability data and vendor documentation current as of the publication date. CVSS scores and severity assessments are provided for informational purposes and do not constitute a guarantee of risk in your specific environment. Patch version numbers and upgrade paths should be verified against the official praisonaiagents repository and release notes. Organizations should conduct their own risk assessment accounting for their deployment configuration, data sensitivity, and threat model before deciding on remediation timelines. SEC.co and its authors assume no liability for damage arising from the use or misuse of this information. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2018-25393MEDIUMNavigate CMS 2.8.5 Path Traversal Vulnerability (CVSS 6.5)
- CVE-2018-25421MEDIUMOpen STA Manager 2.3 Path Traversal File Download Vulnerability
- CVE-2019-25734MEDIUMContact Form by WD CSRF & Local File Inclusion Vulnerability
- CVE-2019-25740MEDIUMJoomla com_jsjobs Arbitrary File Deletion Vulnerability
- CVE-2022-50953MEDIUMWordPress admin-word-count-column Plugin Local File Read Vulnerability
- CVE-2024-47263MEDIUMSynology Hyper Backup Path Traversal – Admin Privilege Required
- CVE-2024-47273MEDIUMSynology Hyper Backup Path Traversal Vulnerability (4.3 MEDIUM)
- CVE-2025-24268MEDIUMmacOS Path Traversal Vulnerability – Patch Sequoia 15.4