setuptools@67.3.2 vulnerabilities

Easily download, build, install, upgrade, and uninstall Python packages

  • latest version

    80.9.0

  • latest non vulnerable version

  • first published

    19 years ago

  • latest version published

    6 months ago

  • licenses detected

    • [19.5,78.1.1)
  • Direct Vulnerabilities

    Known vulnerabilities in the setuptools 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

    Affected versions of this package are vulnerable to Directory Traversal through the ‎PackageIndex._download_url method. Due to insufficient sanitization of special characters, an attacker can write files to arbitrary locations on the filesystem with the permissions of the process running the Python code. In certain scenarios, an attacker could potentially escalate to remote code execution by leveraging malicious URLs present in a package index.

    How to fix Directory Traversal?

    Upgrade setuptools to version 78.1.1 or higher.

    [,78.1.1)
    • H
    Improper Control of Generation of Code ('Code Injection')

    Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the package_index module's download functions due to the unsafe usage of os.system. An attacker can execute arbitrary commands on the system by providing malicious URLs or manipulating the URLs retrieved from package index servers.

    Note

    Because easy_install and package_index are deprecated, the exploitation surface is reduced, but it's conceivable through social engineering or minor compromise to a package index could grant remote access.

    How to fix Improper Control of Generation of Code ('Code Injection')?

    Upgrade setuptools to version 70.0.0 or higher.

    [,70.0.0)