CVE-2026-61431: PraisonAI: path traversal leaks arbitrary files

GHSA-q7m5-3jmv-vm48MEDIUMPoC AVAILABLECISA: TRACK*
Published July 10, 2026
CISO Take

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.

Sources:NVDGitHub AdvisoryATLASvulncheck.com

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?

Malicious config distribution
Attacker publishes or contributes a repo containing a crafted .praisoncontext or .praisoninclude file with absolute paths or '../' traversal sequences pointing at sensitive host files.
AML.T0081
Victim execution
A developer or CI pipeline clones the repo and runs a PraisonAI agent against it, invoking ContextGatherer on the untrusted include files.
AML.T0011
Path traversal read
ContextGatherer resolves the unsanitized include paths and reads files outside the intended workspace, such as SSH keys or .env secrets.
AML.T0037
Context exposure
The exfiltrated file contents are bundled into the generated context, potentially surfaced in agent output or forwarded to downstream LLM API calls, giving the attacker access to the leaked data.
AML.T0025

What systems are affected?

PackageEcosystemVulnerable RangePatched
PraisonAIpip<= 4.6.774.6.78
1 dependents61% patched~23d to patchFull package profile →

Do you use PraisonAI? You're affected.

How severe is it?

CVSS 3.1
5.5 / 10
EPSS
0.4%
chance of exploitation in 30 days
Higher than 31% of all CVEs
Exploitation Status
Exploit Available
Exploitation: MEDIUM
Sophistication
Moderate
Exploitation Confidence
medium
○CISA SSVC: Public PoC
○Public PoC indexed (trickest/cve)
Composite signal derived from CISA KEV, VulnCheck KEV, CISA SSVC, EPSS, Metasploit, Exploit-DB, trickest/cve, Nuclei templates, and inthewild.io exploitation reports.

What is the attack surface?

AVACPRUISCIA
AVLocal
ACLow
PRNone
UIRequired
SUnchanged
CHigh
INone
ANone

What should I do?

1 step
  1. 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 does CISA's SSVC say?

DecisionTrack*
Exploitationpoc
AutomatableNo
Technical Impactpartial

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:

EU AI Act
Article 15-Accuracy, robustness and cybersecurity
ISO 42001
A.6.2.6-AI system security controls
NIST AI RMF
MEASURE 2.7-AI system security and resilience testing
OWASP LLM Top 10
LLM02:2025-Sensitive Information DisclosureLLM08:2025-Excessive Agency

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

agent frameworksAI agent configurationlocal context/RAG-style ingestion pipelines

MITRE ATLAS Techniques

AML.T0011User Execution
AML.T0025Exfiltration via Cyber Means
AML.T0037Data from Local System
AML.T0081Modify AI Agent Configuration

Compliance Controls Affected

EU AI Act: Article 15
ISO 42001: A.6.2.6
NIST AI RMF: MEASURE 2.7
OWASP LLM Top 10: LLM02:2025, LLM08:2025

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-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:N

Timeline

Published
July 10, 2026
Last Modified
October 8, 2026
First Seen
July 10, 2026

Related Vulnerabilities