CVE-2026-40157 json
PraisonAI affected by arbitrary file write via path traversal in `praisonai recipe unpack`
published 2026-04-10 6 mo ago modified 2026-10-26 14 d ago also EUVD-2026-21509 , GHSA-99g3-w8gr-x37c , PYSEC-2026-469
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi praisonai 4.5.128
- praison praisonai 4.5.128
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-99g3-w8gr-x37c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 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 |
| CNA | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | praisonai | >=2.7.2, <4.5.128 |
4.5.128 |
Affected products
- MervinPraison PraisonAI
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/MervinPraison/PraisonAI/security/advisories/GHSA-99g3-w8gr-x37c
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-40157
advisory
-
github.com
/MervinPraison/PraisonAI
package
-
github.com
/MervinPraison/PraisonAI/releases/tag/v4.5.128
web
-
pypi.org
/project/praisonai
package
-
github.com
/advisories/GHSA-99g3-w8gr-x37c
advisory
Sources
- CVE List CVE-2026-40157
- GitHub Advisory GHSA-99g3-w8gr-x37c
- NVD CVE-2026-40157
- OSV PYSEC-2026-469
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.