← Back to search

CVE-2026-57113

8.1 HIGHpublic exploit available

Published 2026-10-23 · Updated 2026-10-23

AI risk analysis

Summary
PraisonAI's template loader allows path traversal via GitHub template refs, enabling attackers to write metadata files or delete arbitrary directories outside the intended cache root by crafting a ref like ../../outside-target.
Exploitability
Exploitation requires user interaction (e.g., loading a malicious template URI) and prior creation of the normal cache hierarchy for the same owner/repo/template; no authentication is needed.
Blast radius
Successful exploitation could lead to deletion of arbitrary files or directories on the host, potentially causing denial of service or data loss in critical systems relying on PraisonAI.
Detection
Defenders should monitor for unexpected writes or deletions of files outside the ~/.praison/cache/templates directory, especially .cache_meta.json in non-cache locations, and for shutil.rmtree calls targeting paths containing '..' segments.
Prioritized remediation
Upgrade to PraisonAI version 4.6.59 or later, which patches the path traversal vulnerability by normalizing and validating template paths.
path-traversaldirectory-deletiontemplate-injectioncache-poisoning

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Weaknesses

CWE-22, CWE-73

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.