Skip to main content

CVE-2026-57113: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI

0
High
VulnerabilityCVE-2026-57113cvecve-2026-57113cwe-22cwe-73
Published: 10/23/2026 (10/23/2026, 12:04:04 UTC)
Source: CVE Database V5
Vendor/Project: MervinPraison
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected software

MervinPraison

PraisonAI

Affected versions
>=2.6.0 <4.6.59
GitHub Actionsmore threats →ai
mervinpraison/PraisonAI
pkg:github/mervinpraison/PraisonAI
Affected versions
>=2.6.0 <4.6.59

Run 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

AILast updated: 10/23/2026, 12:45:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses