---
title: "CVE-2026-40157: PraisonAI vulnerable to arbitrary file write via path traversal in `praisonai recipe unpack`"
url: https://erroneo.us/security/cve/CVE-2026-40157/
description: "CVE-2026-40157 (PraisonAI (PyPI)): PraisonAI is a multi-agent teams system. Prior to 4.5.128, cmdunpack in the recipe CLI extracts .praison tar archives…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-04-10
date_modified: 2026-04-14
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-40157"
kev: false
cvss: 9.4
epss: 0.00527
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.5% , percentile 44: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 44% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Only applies if your dependency tree includes PraisonAI (PyPI) >= 2.7.2, < 4.5.128, fixed in 4.5.128 . Check your lockfile, including transitive dependencies.

## What it is

PraisonAI is a multi-agent teams system. Prior to 4.5.128, cmdunpack 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.

## Affected packages

- PyPI `PraisonAI` >= 2.7.2, < 4.5.128 → fixed: 4.5.128

## Affected products (CVE record)

- MervinPraison PraisonAI: < 4.5.128

## Severity

- GitHub_M CVSS 4.0: 9.4 `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: 9.4 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.53% probability of exploitation activity in the next 30 days; percentile 44.

## Sources

- [GitHub Advisory GHSA-99g3-w8gr-x37c](https://github.com/advisories/GHSA-99g3-w8gr-x37c)
- [CVE.org record CVE-2026-40157](https://www.cve.org/CVERecord?id=CVE-2026-40157)
- [NVD entry CVE-2026-40157](https://nvd.nist.gov/vuln/detail/CVE-2026-40157)
- [github.com](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-99g3-w8gr-x37c)
- [github.com](https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.128)

---
Source page: https://erroneo.us/security/cve/CVE-2026-40157/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
