CVE-2026-57113: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI
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/[email protected]. 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 v3.1
Score 8.1high
Affected software
MervinPraison
PraisonAI
pkg:github/mervinpraison/PraisonAIRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI's template loader accepts GitHub template URIs with refs, storing the user-controlled template path and ref verbatim. When constructing cache paths under ~/.praison/cache/templates/github/, the system does not normalize or validate these path segments, enabling path traversal via crafted refs such as '../../../../../../outside-delete-target'. This allows an attacker to escape the cache directory and cause the deletion of arbitrary directories when the cache is refreshed, due to the use of shutil.rmtree on the attacker-controlled path. The vulnerability is addressed in version 4.6.59.
Potential Impact
An attacker can exploit this vulnerability to delete arbitrary directories on the filesystem where PraisonAI is running, leading to potential denial of service or data loss. The vulnerability does not impact confidentiality but has high integrity and availability impact due to unauthorized deletion of files or directories.
Mitigation Recommendations
Upgrade PraisonAI to version 4.6.59 or later, where this path traversal vulnerability has been patched. No other mitigations are specified or required once the official fix is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T00:33:17.706Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6adb53864d27ba8daa242bbd
Added to database: 10/23/2026, 12:31:02 UTC
Last enriched: 10/23/2026, 12:45:46 UTC
Last updated: 10/23/2026, 15:36:02 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.