CVE-2026-57113: PraisonAI GitHub template cache path traversal allows outside-cache file write and directory deletion

Published Oct 23, 2026
·
Updated

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 .cachemeta.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(cachepath) and removes an attacker-selected outside directory before replacing it with cache metadata. This issue has been patched in version 4.6.59.

Affected Software

1 affected component
PraisonAI PraisonAI>=2.6.0<4.6.59

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PraisonAI to a version that resolves this vulnerability.

    Fixed in 4.6.59

Event History

Oct 23, 2026
CVE Published
via MITRE·12:04 PM
Data Sourced
via MITRE·12:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

PraisonAI versions 2.6.0 through versions before 4.6.59 are affected when they process GitHub template URIs containing a user-controlled ref. Version 4.6.59 contains the patch.

2

What does an attacker need to exploit this issue?

An attacker needs to cause PraisonAI to load a crafted GitHub template URI whose ref contains path-traversal segments, such as ../../../../../../outside-delete-target. Exploitation requires user interaction according to the supplied CVSS vector.

3

What can happen on the first load versus later loads?

On the first load, PraisonAI can write a .cache_meta.json file outside the intended template cache. If the normal cache hierarchy for the same owner, repository, and template already exists, loading the crafted path can delete an attacker-selected outside directory with shutil.rmtree before writing replacement cache metadata.

4

What should be done if an immediate upgrade is not possible?

Do not load untrusted GitHub template URIs, particularly URIs with attacker-controlled refs. Restrict who can provide template references and prevent refs containing path separators or traversal sequences from reaching the template loader.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203