Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40157: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI

0
Critical
VulnerabilityCVE-2026-40157cvecve-2026-40157cwe-22
Published: Fri Apr 10 2026 (04/10/2026, 16:47:16 UTC)
Source: CVE Database V5
Vendor/Project: MervinPraison
Product: PraisonAI

Description

CVE-2026-40157 is a critical path traversal vulnerability in MervinPraison PraisonAI versions prior to 4. 5. 128. The vulnerability arises from the cmd_unpack function in the recipe CLI, which extracts . praison tar archives without validating archive member paths. Malicious . praison bundles containing directory traversal sequences (e. g. , .. /..

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/11/2026, 05:19:00 UTC

Technical Analysis

The vulnerability CVE-2026-40157 in PraisonAI (prior to version 4.5.128) involves improper limitation of pathname to a restricted directory (CWE-22). The cmd_unpack function in the recipe CLI uses raw tar.extract() to unpack .praison tar archives without validating the paths of archive members. This allows specially crafted .praison bundles containing relative path traversal entries (e.g., ../../) to write files outside the intended extraction directory, potentially overwriting arbitrary files on the victim's system. The issue is resolved in version 4.5.128.

Potential Impact

An attacker who distributes a malicious .praison bundle can cause arbitrary files on the victim's filesystem to be overwritten when the victim runs the 'praisonai recipe unpack' command. This can lead to arbitrary code execution, denial of service, or system compromise depending on which files are overwritten. The vulnerability has a critical severity rating with a CVSS 4.0 score of 9.4. No known exploits in the wild have been reported as of the published date.

Mitigation Recommendations

This vulnerability is fixed in PraisonAI version 4.5.128. Users should upgrade to version 4.5.128 or later to remediate this issue. Since no official patch link or advisory is provided, users should verify the update from the vendor's official channels. Until upgraded, avoid unpacking .praison bundles from untrusted sources to mitigate risk. Patch status is not explicitly confirmed beyond the stated fix version; check the vendor advisory for the latest remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-09T19:31:56.014Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69d9d9751cc7ad14da3f871a

Added to database: 4/11/2026, 5:17:41 AM

Last enriched: 4/11/2026, 5:19:00 AM

Last updated: 4/11/2026, 8:49:10 AM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses