Skip to main content
VulnerabilityPublished Updated

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

Affects PraisonAISource GCVE Database

0
Compare
Authoritative record:CVE-2026-40157· Critical 9.4

Not known to be exploited · CVSS 9.4 Critical : upgrade to 4.5.128 as a priority.

Data as of 16 Nov 2026, 16:48 UTC

CVSS 4.0 base score
9.4Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 4.5.128
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 evidence

  1. Disclosed: evidence found.

    CVE published 10 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.

What to do

Upgrade PraisonAI to 4.5.128.

Affected software

ProductAffectedFixed in
PyPIPraisonAIAffected
  • >=2.7.2 <4.5.128
Fixed in
  • 4.5.128

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in PraisonAI version 4.5.128 that fixes this vulnerability by replacing the unsafe extraction loop in `cmd_unpack` with the existing safe extraction function `_safe_extractall`, which validates archive member paths to prevent path traversal. Users should upgrade to version 4.5.128 or later. Until patched, avoid unpacking untrusted `.praison` bundles with `praisonai recipe unpack`.

Description

PraisonAI contains a critical path traversal vulnerability (CVE-2026-40157) in its recipe unpacking command. The vulnerability arises because the `cmd_unpack` function extracts `.praison` tar archives using Python's `tar.extract()` without validating archive member paths, allowing malicious archives with `../` entries to write files outside the intended directory. This can lead to arbitrary file overwrite on the victim's filesystem. A safe extraction function exists in the codebase but is not used by this command. The vulnerability affects versions >=2.7.2 and <4.5.128 and is fixed in version 4.5.128.

References

Community reviews

Loading reviews…