CVE-2026-40157: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI
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 Analysis
Technical Summary
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.
CVE-2026-40157: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.