UTC
Medium

PraisonAI: FastContext path resolution permits absolute and traversal reads outside the workspace

CVE-2026-61432 · GHSA-4xxv-6wmf-xf45 · published 2026-10-08

Severity
Medium
CVSS score
5.7
Chance of exploitation (EPSS)
0.34%
Fixed in
1.6.78
  • Exploitation Public proof of concept
  • Automatable No
  • Technical impact Partial
  • CISA SSVC
What it is

If an application exposes FastContext to lower-trust prompts or users, the attacker can cause the PraisonAI process to read files outside the intended workspace and return the contents through tool results or high-level FastContext APIs. Practical impacts include disclosure of source files, logs, prompt transcripts, API keys, local configuration, cloud credentials, and other process-readable text files. grepsearch can search outside directories for secrets, globsearch and listdirectory can enumerate outside file names and metadata, and readfile/read_context can return file contents. The demonstrated impact is confidentiality.

What to do

Upgrade praisonaiagents to 1.6.78 or later.

Make FastContext path resolution fail closed around a single workspace-containment helper: 1. Resolve the configured workspace once. 2. For every FastContext path argument, reject absolute paths outside the workspace, join relative paths to the workspace, resolve the candidate, and require candidate.relativeto(workspace) to succeed. 3. Apply this helper in FastContextAgent.executetool() for grepsearch, globsearch, readfile, and listdirectory. 4. Apply the same helper before adding model-generated tool calls to ToolCallBatch in FastContextAgent.search(). Do not call the raw searchtools functions with model-supplied paths. 5. Apply the same helper in FastContext.readcontext(). 6.

Affected
PackageRegistryAffectedFixed in
praisonaiagentsPyPI<= 1.6.771.6.78

The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].