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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-06-18T14:24:55.000Z
- Modified: 2026-10-23T15:17:33.910Z
- Also known as: GHSA-f44v-7qgw-9gh9, PYSEC-2026-3509
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: >= 2.6.0, < 4.6.59
- praisonai (PyPI): from 2.6.0 before 4.6.59

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-f44v-7qgw-9gh9> (web)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonai> (package)
- <https://github.com/advisories/GHSA-f44v-7qgw-9gh9> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-57113> (advisory)

## Sources

- CVE List: [CVE-2026-57113](https://www.cve.org/CVERecord?id=CVE-2026-57113), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-f44v-7qgw-9gh9](https://github.com/advisories/GHSA-f44v-7qgw-9gh9), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-57113](https://nvd.nist.gov/vuln/detail/CVE-2026-57113), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3509](https://osv.dev/vulnerability/PYSEC-2026-3509), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-57113 · Whole record: https://cve.day/CVE-2026-57113.json · Rebuilt by cve.day 2026-11-25T22:59:46.902Z
