Description
PraisonAI is a multi-agent teams system. From version 2.6.0 to before version 4.6.59, PraisonAI's template loader accepts GitHub template URIs with refs, for example github:owner/repo/template@v1.0.0. The resolver stores the user-controlled template path and ref verbatim, and the cache layer later joins those values into ~/.praison/cache/templates/github/<owner>/<repo>/<template>/<ref> without normalizing each segment or checking that the final path remains inside the template cache root. A crafted ref such as ../../../../../../outside-delete-target therefore escapes the cache directory. The first load can write .cache_meta.json outside the cache. If the normal cache hierarchy for the same owner/repo/template has already been created, the same path reaches shutil.rmtree(cache_path) and removes an attacker-selected outside directory before replacing it with cache metadata. This issue has been patched in version 4.6.59.
Published: 2026-10-23
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: Arbitrary file write and directory deletion via cache path traversal
Action: Immediate Patch
AI Analysis

Impact

PraisonAI’s template loader permits GitHub template URIs with refs to be processed without normalizing path segments. The resolver stores the user‑controlled template path and ref verbatim and then concatenates them into a cache directory without verifying that the resulting path remains under the cache root. A crafted ref containing multiple "../" components allows the path to escape the intended cache directory, enabling the first load to create a .cache_meta.json file outside the cache and subsequent loads to invoke directory removal on an attacker‑selected path before reinstating the cache metadata. This flaw allows an attacker to write arbitrary files and delete arbitrary directories while the application is running. The issue has been resolved in version 4.6.59.

Affected Systems

PraisonAI versions 2.6.0 through 4.6.58 inclusive, distributed by MervinPraison. The vulnerability requires that the application load templates from GitHub using refs; it does not affect other product lines or versions. Systems running the flushed framework with default template loading enabled are susceptible.

Risk and Exploitability

The CVSS score of 8.1 classifies this flaw as high severity. Although the EPSS score is not available and it is not listed in CISA’s KEV catalog, the exploit requires the ability to trigger a template load within PraisonAI, which could arise from local user activity or from a remote web service that uses the framework. The resulting impact includes arbitrary file write, directory deletion, data loss, disruption of service, and potential privilege escalation if critical system paths are targeted. The threat is therefore significant and warrants immediate action.

Generated by OpenCVE AI on October 23, 2026 at 13:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 4.6.59 or later to eliminate the path traversal flaw.
  • If upgrading is not feasible, disable or restrict template loading from GitHub refs so the application only uses trusted local templates.
  • After applying the fix or restriction, inspect the cache directory for any unintended files or directories outside its root, remove them, and continue monitoring for unauthorized deletions.

Generated by OpenCVE AI on October 23, 2026 at 13:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f44v-7qgw-9gh9 PraisonAI GitHub template cache path traversal allows outside-cache file write and directory deletion
History

Fri, 23 Oct 2026 14:00:00 +0000

Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Vendors & Products Mervinpraison
Mervinpraison praisonai

Fri, 23 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Description PraisonAI is a multi-agent teams system. From version 2.6.0 to before version 4.6.59, PraisonAI's template loader accepts GitHub template URIs with refs, for example github:owner/repo/template@v1.0.0. The resolver stores the user-controlled template path and ref verbatim, and the cache layer later joins those values into ~/.praison/cache/templates/github/<owner>/<repo>/<template>/<ref> without normalizing each segment or checking that the final path remains inside the template cache root. A crafted ref such as ../../../../../../outside-delete-target therefore escapes the cache directory. The first load can write .cache_meta.json outside the cache. If the normal cache hierarchy for the same owner/repo/template has already been created, the same path reaches shutil.rmtree(cache_path) and removes an attacker-selected outside directory before replacing it with cache metadata. This issue has been patched in version 4.6.59.
Title PraisonAI GitHub template cache path traversal allows outside-cache file write and directory deletion
Weaknesses CWE-22
CWE-73
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}


Subscriptions

Mervinpraison Praisonai
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-23T12:04:04.048Z

Reserved: 2026-06-24T00:33:17.706Z

Link: CVE-2026-57113

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-23T13:17:10.373

Modified: 2026-10-23T13:17:10.497

Link: CVE-2026-57113

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T13:45:17Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path