CVE-2026-61431: PraisonAI: path traversal leaks arbitrary files
GHSA-q7m5-3jmv-vm48MEDIUMPoC AVAILABLECISA: TRACK*PraisonAI's ContextGatherer builds an AI agent's working context from .praisoncontext and .praisoninclude files without validating the include paths, so an attacker who controls one of those files can point it at absolute paths or use ../ sequences to pull arbitrary host files — SSH keys, .env secrets, credentials — into the generated context bundle. There's no EPSS score, no CISA KEV listing, no public exploit or Nuclei template, and exploitation requires local access plus a victim action (running PraisonAI against an attacker-supplied repo or config), which keeps near-term mass-exploitation risk low. The real exposure is anyone who runs PraisonAI agents against third-party or untrusted repositories — CI pipelines, contributor onboarding, or shared agent configs are the likely vector, and the confidentiality impact is high (CVSS 5.5, C:H/I:N/A:N) because file contents can flow into whatever the agent does with its context, including onward LLM API calls. Patch to PraisonAI 4.6.78 or later, and until then treat any .praisoncontext/.praisoninclude file from an external repo as untrusted input requiring review before running the agent.
What is the risk?
Medium severity (CVSS 5.5) driven entirely by confidentiality impact — no integrity or availability effect. Attack vector is local and requires user interaction, which meaningfully limits remote/drive-by exploitation, but attack complexity is low and no privileges are required once a victim runs PraisonAI against a malicious repo or config. No EPSS percentile, no KEV listing, no public PoC or scanner template exist yet, so real-world exploitation likelihood is currently low — but the bug class (unsanitized include-path resolution) is trivial to weaponize once someone writes a PoC, and the payoff (SSH keys, .env secrets, cloud credentials) is high value for supply-chain-style attacks against developers and CI runners.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| PraisonAI | pip | <= 4.6.77 | 4.6.78 |
Do you use PraisonAI? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 stepUpgrade to PraisonAI 4.6.78 or later, which fixes the path validation in ContextGatherer. Until patched, treat .praisoncontext and .praisoninclude files from any repo you didn't author as untrusted — review them before running PraisonAI, and avoid running the agent against unvetted third-party repos or CI jobs that check out arbitrary branches/PRs. Where possible, run PraisonAI in a sandboxed/containerized workspace with filesystem access scoped to the project directory only, so even an unpatched traversal can't reach host secrets. For detection, monitor for ContextGatherer reads outside the working directory (e.g., paths resolving to home directory, /etc, or parent directories) and flag .praisoncontext/.praisoninclude files containing absolute paths or '../' sequences in code review or pre-commit hooks.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-61431?
PraisonAI's ContextGatherer builds an AI agent's working context from .praisoncontext and .praisoninclude files without validating the include paths, so an attacker who controls one of those files can point it at absolute paths or use ../ sequences to pull arbitrary host files — SSH keys, .env secrets, credentials — into the generated context bundle. There's no EPSS score, no CISA KEV listing, no public exploit or Nuclei template, and exploitation requires local access plus a victim action (running PraisonAI against an attacker-supplied repo or config), which keeps near-term mass-exploitation risk low. The real exposure is anyone who runs PraisonAI agents against third-party or untrusted repositories — CI pipelines, contributor onboarding, or shared agent configs are the likely vector, and the confidentiality impact is high (CVSS 5.5, C:H/I:N/A:N) because file contents can flow into whatever the agent does with its context, including onward LLM API calls. Patch to PraisonAI 4.6.78 or later, and until then treat any .praisoncontext/.praisoninclude file from an external repo as untrusted input requiring review before running the agent.
Is CVE-2026-61431 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2026-61431, increasing the risk of exploitation.
How to fix CVE-2026-61431?
Upgrade to PraisonAI 4.6.78 or later, which fixes the path validation in ContextGatherer. Until patched, treat .praisoncontext and .praisoninclude files from any repo you didn't author as untrusted — review them before running PraisonAI, and avoid running the agent against unvetted third-party repos or CI jobs that check out arbitrary branches/PRs. Where possible, run PraisonAI in a sandboxed/containerized workspace with filesystem access scoped to the project directory only, so even an unpatched traversal can't reach host secrets. For detection, monitor for ContextGatherer reads outside the working directory (e.g., paths resolving to home directory, /etc, or parent directories) and flag .praisoncontext/.praisoninclude files containing absolute paths or '../' sequences in code review or pre-commit hooks.
What systems are affected by CVE-2026-61431?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, AI agent configuration, local context/RAG-style ingestion pipelines.
What is the CVSS score for CVE-2026-61431?
CVE-2026-61431 has a CVSS v3.1 base score of 5.5 (MEDIUM). The EPSS exploitation probability is 0.37%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0011User ExecutionAML.T0025Exfiltration via Cyber MeansAML.T0037Data from Local SystemAML.T0081Modify AI Agent ConfigurationCompliance Controls Affected
What are the technical details?
Original Advisory
PraisonAI before 4.6.78 contains a path traversal vulnerability in ContextGatherer that fails to validate include paths in .praisoncontext and .praisoninclude files. Attackers can supply absolute paths or parent directory traversal sequences to read arbitrary files outside the workspace and include their contents in the generated context bundle.
Exploitation Scenario
An attacker publishes or contributes to a repository that includes a crafted .praisoncontext (or .praisoninclude) file referencing paths like /home/victim/.ssh/id_rsa or ../../../.env using absolute paths or parent-directory traversal. A developer or CI job clones the repo and runs a PraisonAI agent against it as part of normal workflow; ContextGatherer resolves the unsanitized include paths and reads the referenced files, bundling their contents into the generated context. That context is then available to whatever the agent does next — surfaced in agent output, logged, or forwarded to an LLM API call — giving the attacker a path to exfiltrate SSH keys, API tokens, or other credentials without ever needing remote access to the victim's machine.
Weaknesses (CWE)
CWE-200Exposure of Sensitive Information to an Unauthorized ActorPrimaryCWE-22Improper Limitation of a Pathname to a Restricted DirectoryPrimaryCWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')PrimaryCWE-22Improper Limitation of a Pathname to a Restricted DirectoryCWE-200 — Exposure of Sensitive Information to an Unauthorized Actor: The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- [Architecture and Design] Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NReferences
- github.com/MervinPraison/PraisonAI/commit/1620b49f36945d8cc8ee5635b906c960df5097a0
- github.com/MervinPraison/PraisonAI/security/advisories/GHSA-q7m5-3jmv-vm48
- vulncheck.com/advisories/praisonai-before-path-traversal-via-contextgatherer
- github.com/advisories/GHSA-q7m5-3jmv-vm48
- nvd.nist.gov/vuln/detail/CVE-2026-61431
Timeline
Related Vulnerabilities
CVE-2026-4816810.0PraisonAI: shell injection in Claude Action enables RCE
Same package: praisonaiCVE-2026-6144710.0PraisonAI: RCE via unsandboxed LLM code execution
Same package: praisonaiCVE-2026-614459.9PraisonAI: AICoder root RCE via unsanitized tool calls
Same package: praisonaiGHSA-vmmj-pfw7-fjwp9.9praisonai: sandbox escape gives RCE via codeMode tool
Same package: praisonaiCVE-2026-473929.9praisonaiagents: RCE via Python sandbox bypass
Same package: praisonai