Python
CVE-2026-39306
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain publisher access
-
DeliveryCraft malicious .praison bundle with ../ traversal
-
ExploitPublish to shared registry
-
InstallVictim pulls recipe
-
C2tar.extractall() processes traversal
-
ExecuteFiles written outside intended directory
-
ImpactOverwrite config/code/credentials
-
Step 8Achieve persistence or escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must have low-privilege publisher access to a PraisonAI recipe registry that the victim later pulls from - this could be a shared internal registry, compromised public registry, or attacker-controlled registry that victims are socially engineered to trust. Victim must execute a pull operation against the malicious recipe, requiring user interaction (UI:R in CVSS vector). No special victim-side configuration is required - default PraisonAI installations with standard recipe pull functionality are vulnerable. The vulnerability exploits both LocalRegistry.pull() and HttpRegistry.pull() code paths, so registry transport type (local filesystem vs HTTP) does not limit exploitation. Successful file overwrite requires that the victim's process has filesystem write permissions to the traversal target path - attacks targeting system directories may fail due to OS-level permission restrictions, but attacks targeting user-writable locations (home directories, project folders, CI workspace) will succeed. The checksum verification mechanism does not prevent exploitation because the malicious traversal payload is part of the validly-signed bundle itself. Exploitation is NOT limited by network access controls or authentication beyond the initial publisher account, making this particularly dangerous in collaborative environments where recipe sharing is a trusted workflow. |
| Impact | Real-world risk is moderate despite the 7.3 CVSS score. The CVSS vector (AV:N/AC:L/PR:L/UI:R) correctly identifies that exploitation requires low-privilege publisher access and victim user interaction (pulling the recipe), limiting immediate automated mass exploitation. The 0.04% EPSS score (13th percentile) aligns with this assessment - the vulnerability requires social engineering or trust relationships rather than being remotely exploitable against default configurations. However, the integrity (I:H) and availability (A:H) impacts are accurate: successful exploitation allows overwriting critical files like configuration files, startup scripts, or project code in CI/CD environments. The public proof-of-concept significantly lowers exploitation barriers for targeted attacks. Key risk factors include: (1) shared internal registries where one malicious insider can affect multiple victims, (2) CI/CD pipelines automatically pulling recipes without human review, and (3) deployment scenarios where recipe pulls occur in directories near sensitive operational files. The vulnerability crosses a genuine trust boundary because victims reasonably expect pulled recipes to remain confined to their chosen output directory. CVSS scope remains unchanged (S:U) as the vulnerability does not escape the application's privilege context, but within that context the file write primitive is powerful. Organizations using PraisonAI in multi-user environments or automated workflows should prioritize patching despite the low EPSS score. |
| Exploit ScenarioDerived | A malicious insider or compromised account with publisher privileges on a shared PraisonAI recipe registry creates a workflow recipe with legitimate-appearing manifest.json metadata but embeds path traversal entries (../../config/credentials.json) in the .praison tar bundle. They publish this recipe as 'ml-pipeline-v2' to the company registry. Days later, a data science team member pulls this recipe into their project directory /home/user/projects/ml-workflows/recipes/ for evaluation. During extraction, the traversal payload escapes the intended directory and overwrites /home/user/projects/config/credentials.json with attacker-controlled content. If this credentials file is used by other scripts or services, the attacker has achieved persistence or can escalate to credential theft. In CI/CD scenarios, the attack is more severe: automated pipeline pulls recipe into /ci/workspace/recipes/, but traversal writes malicious code to /ci/workspace/.github/workflows/deploy.yml, causing subsequent commits to execute attacker commands with pipeline privileges. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 16, 2026
Arbitrary file write in PraisonAI's recipe registry allows malicious publishers to overwrite files outside intended directories when victims pull recipes. Affects all users pulling recipes from shared or untrusted registries via both local and HTTP transports. The vulnerability stems from unsafe tar.extractall() calls that process attacker-controlled path traversal sequences (../) embedded in .praison bundle archives. Exploitation requires low-privilege publisher access and user interaction (victim must pull the malicious recipe), but no special client configuration. EPSS score of 0.04% suggests low automated exploitation probability, though a working proof-of-concept exists demonstrating file creation outside victim-selected output directories. Vendor patch available in release v4.5.113.
Earlier versions of this analysis (1)
Arbitrary file write through path traversal in PraisonAI recipe registry allows authenticated publishers to escape extraction directories when victims pull malicious recipes. Attackers craft .praison tar archives with ../ traversal entries that bypass extraction boundaries, enabling file overwrites outside intended directories (CVSS 7.3, AV:N/AC:L/PR:L/UI:R). Both LocalRegistry and HttpRegistry pull operations use unsafe tar.extractall() without member path validation. No public exploit identified at time of analysis, though proof-of-concept demonstrates reliable exploitation via recipe bundle uploads. EPSS data not available, but attack vector requires minimal complexity-authenticated publisher uploads malicious bundle, victim triggers file write by pulling recipe.
RemediationAI
Upgrade to PraisonAI v4.5.113 or later, released by the vendor to address this vulnerability (https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.113). The fix implements safe tar extraction that validates archive member paths before extraction, rejecting absolute paths, parent directory references (..), and any resolved paths escaping the intended directory. Installation command: pip install --upgrade praisonai>=4.5.113. If immediate upgrade is not feasible, implement the following compensating controls: (1) Restrict recipe registry publish access to thoroughly vetted trusted users only, eliminating the low-privilege publisher attack vector. (2) Pull recipes only from vendor-controlled or internally audited registries, never from public or community-contributed sources. (3) Execute recipe pull operations in isolated containers or sandboxed environments where filesystem writes cannot affect production systems - note this adds operational complexity and may break workflows expecting persistent recipe storage. (4) Implement filesystem monitoring to detect unexpected file creation outside designated recipe directories, though this is detective rather than preventive. (5) For CI/CD environments, run recipe pulls under dedicated service accounts with write permissions restricted to specific recipe storage paths only. These workarounds significantly reduce attack surface but do not eliminate the vulnerability - upgrade remains the definitive fix. Advisory URL: https://github.com/advisories/GHSA-4rx4-4r3x-6534.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PraisonAI implements a recipe registry system where users can publish and pull AI workflow bundles packaged as .praison tar.gz archives. The registry code (src/praisonai/praisonai/recipe/registry.py) uses Python's tarfile module to extract these archives during pull operations. The vulnerability exploits Python tarfile's default behavior where extractall() honors path components in archive member names without validation. When a tar archive contains entries like '../../escape-http.txt', extractall() will traverse up from the intended extraction directory and write to arbitrary filesystem locations. This is a classic instance of CWE-22 (Path Traversal) in archive extraction contexts. Both LocalRegistry.pull() (lines 289-345) and HttpRegistry.pull() (lines 691-739) share identical vulnerable code patterns. The publish workflow only validates manifest.json checksums but performs no inspection of other tar members, allowing malicious traversal payloads to pass through undetected. This creates an asymmetric attack where publishers can inject malicious archives that weaponize the pull operation performed by other users.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.
CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI
Lifecycle Timeline
3DescriptionCVE.org
Summary
PraisonAI's recipe registry pull flow extracts attacker-controlled .praison tar archives with tar.extractall() and does not validate archive member paths before extraction. A malicious publisher can upload a recipe bundle that contains ../ traversal entries and any user who later pulls that recipe will write files outside the output directory they selected.
This is a path traversal / arbitrary file write vulnerability on the client side of the recipe registry workflow. It affects both the local registry pull path and the HTTP registry pull path. The checksum verification does not prevent exploitation because the malicious traversal payload is part of the signed bundle itself.
Details
The issue is caused by unsafe extraction of tar archive contents during recipe pull.
- A malicious publisher creates a valid
.praisonbundle whosemanifest.jsonis benign enough to pass publish, but whose tar members include traversal entries such as:
../../escape-http.txtLocalRegistry.publish()insrc/praisonai/praisonai/recipe/registry.py:214-287only readsmanifest.json, calculates a checksum, and stores the uploaded bundle. It does not inspect or sanitize the rest of the tar members before saving the archive.- When a victim later pulls the recipe from a local registry,
LocalRegistry.pull()insrc/praisonai/praisonai/recipe/registry.py:289-345extracts the tarball directly:
recipe_dir = output_dir / name
recipe_dir.mkdir(parents=True, exist_ok=True)
with tarfile.open(bundle_path, "r:gz") as tar:
tar.extractall(recipe_dir)- The HTTP client path is also vulnerable.
HttpRegistry.pull()insrc/praisonai/praisonai/recipe/registry.py:691-739downloads the bundle and then performs the same unsafe extraction:
recipe_dir = output_dir / name
recipe_dir.mkdir(parents=True, exist_ok=True)
with tarfile.open(bundle_path, "r:gz") as tar:
tar.extractall(recipe_dir)- Because no archive member validation is performed, traversal entries escape
recipe_dirand create files elsewhere on disk.
Verified vulnerable behavior:
- Published recipe name:
evil-http - Victim-selected output directory:
/tmp/praisonai-pull-traversal-poc/victim-output - Artifact created outside that directory:
/tmp/praisonai-pull-traversal-poc/escape-http.txt - Artifact contents:
owned over http
This demonstrates that a remote publisher can cause filesystem writes outside the pull destination chosen by another user.
PoC
Run the single verification script from the checked-out repository:
cd "/Users/r1zzg0d/Documents/CVE hunting/targets/PraisonAI"
python3 tmp/pocs/poc2.pyExpected vulnerable output:
[+] Publish result: {'ok': True, 'name': 'evil-http', 'version': '1.0.0', ...}
[+] Pull result: {'name': 'evil-http', 'version': '1.0.0', ...}
[+] Outside artifact exists: True
[+] Artifact also inside output dir: False
[+] Outside artifact content: 'owned over http\n'
[+] RESULT: VULNERABLE - pulling the recipe created a file outside the chosen output directory.Then verify the created file manually:
ls -l /tmp/praisonai-pull-traversal-poc/escape-http.txt
cat /tmp/praisonai-pull-traversal-poc/escape-http.txt
find /tmp/praisonai-pull-traversal-poc -maxdepth 3 | sortWhat the script does internally:
- Starts a local PraisonAI recipe registry server.
- Builds a malicious
.praisonbundle containing the tar entry../../escape-http.txt. - Publishes the malicious bundle to the local HTTP registry.
- Simulates a victim pulling that recipe into
/tmp/praisonai-pull-traversal-poc/victim-output. - Confirms that the file is created outside the chosen output directory.
Impact
This is a path traversal / arbitrary file write vulnerability in the recipe pull workflow.
Impacted parties:
- Users who pull recipes from an untrusted or shared PraisonAI registry.
- Teams running internal registries where one publisher can influence what other users pull.
- Automated systems or CI jobs that fetch recipes into working directories near sensitive project files.
Security impact:
- Integrity impact is high because an attacker can create or overwrite files outside the expected extraction directory.
- Availability impact is significant if the overwritten target is a config file, project file, startup script, or another operational artifact.
- The issue crosses a real security boundary because the attacker only needs to publish a malicious recipe, while the victim triggers the write by pulling it.
Remediation
- Replace raw
tar.extractall()with a safe extraction routine that validates everyTarInfomember before extraction. Reject absolute paths,..segments, and any resolved path that escapes the intended extraction directory. - Apply the same archive member validation in both
LocalRegistry.pull()andHttpRegistry.pull()so that local and remote registry clients share the same safety guarantees. - Consider validating tar contents during publish as well, so malicious bundles are rejected before they ever enter the registry and cannot be served to downstream users.
Executive ViewAI
PraisonAI versions prior to v4.5.113 contain an arbitrary file write vulnerability that allows malicious recipe publishers to overwrite files on victim systems when users pull recipes from shared registries. This affects all organizations using PraisonAI for recipe management, potentially compromising system integrity and enabling supply chain attacks through the recipe distribution channel.
Apply vendor patch to v4.5.113 or later. Interim mitigations if patching is delayed: restrict recipe pulls to authenticated internal registries only, disable HTTP transport for recipe pulls and use only local transport with pre-validated archives, implement filesystem monitoring for unexpected file modifications in system directories, and require approval workflow for all recipe pull operations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-4rx4-4r3x-6534
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB