patool@4.0.1

portable archive file manager

  • latest version

    4.0.5

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the patool package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Directory Traversal

    patool is a portable archive file manager

    Affected versions of this package are vulnerable to Directory Traversal in the safe_extract function in patoolib/programs/py_tarfile.py when running on Python versions before 3.12, due to the use of os.path.commonprefix() for character-level string comparison instead of path-level comparison. An attacker can write arbitrary files outside the intended extraction directory by supplying a malicious archive with specially crafted member paths.

    How to fix Directory Traversal?

    Upgrade patool to version 4.0.5 or higher.

    [,4.0.5)