# CVE-2026-40157: PraisonAI affected by arbitrary file write via path traversal in `praisonai recipe unpack`

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA: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.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T16:47:16.109Z
- Modified: 2026-11-16T16:00:04.741Z
- Also known as: GHSA-99g3-w8gr-x37c, PYSEC-2026-469
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

PraisonAI is a multi-agent teams system. Prior to 4.5.128, cmd_unpack in the recipe CLI extracts .praison tar archives using raw tar.extract() without validating archive member paths. A .praison bundle containing ../../ entries will write files outside the intended output directory. An attacker who distributes a malicious bundle can overwrite arbitrary files on the victim's filesystem when they run praisonai recipe unpack. This vulnerability is fixed in 4.5.128.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 4.5.128
- praisonai (PyPI): from 2.7.2 before 4.5.128
- praison praisonai: before 4.5.128

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-99g3-w8gr-x37c> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40157> (advisory)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.128> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-469.yaml> (web)
- <https://pypi.org/project/praisonai> (package, web)
- <https://github.com/advisories/GHSA-99g3-w8gr-x37c> (advisory)

## Sources

- CVE List: [CVE-2026-40157](https://www.cve.org/CVERecord?id=CVE-2026-40157), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-99g3-w8gr-x37c](https://github.com/advisories/GHSA-99g3-w8gr-x37c), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-40157](https://nvd.nist.gov/vuln/detail/CVE-2026-40157), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-469](https://osv.dev/vulnerability/PYSEC-2026-469), CC-BY-4.0, modified 2026-07-01

---

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