Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. praisonai
  4. ›
  5. CVE-2026-44340

CVE-2026-44340: PraisonAI's symlink-extraction bypass of `_safe_extractall` writes outside `dest_dir`

May 11, 2026

The _safe_extractall helper that all recipe pull, recipe publish, and recipe unpack flows route through validates each archive member’s name for absolute paths, .. segments, and resolved-path escape — but does not validate member.linkname, does not reject symlink/hardlink members, and calls tar.extractall(dest_dir) without filter="data". A bundle that contains a symlink with a name inside dest_dir but a linkname pointing outside it, followed by a regular file whose path traverses through the just-created symlink, escapes dest_dir and lets the attacker write arbitrary content to an attacker-chosen location on the victim’s filesystem.

References

  • github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9q28-ghcr-c4x3
  • github.com/advisories/GHSA-9q28-ghcr-c4x3
  • nvd.nist.gov/vuln/detail/CVE-2026-44340

Code Behaviors & Features

Detect and mitigate CVE-2026-44340 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.6.37

Fixed versions

  • 4.6.37

Solution

Upgrade to version 4.6.37 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

pypi/praisonai/CVE-2026-44340.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:59 +0000.