PYSEC-2026-2970

    Dashboard / Vulnerabilities / PYSEC-2026-2970

    PYSEC-2026-2970

    Published: 13 Jul 2026Last Modified: 13 Jul 2026

    Summary: Rattler vulnerable to package cache path traversal via conda package build string

    Details: `rattler_cache` and `py-rattler` were vulnerable to package-cache path traversal when handling package metadata from conda channels. During cache materialization, the `ratter_cache` code used the package record `build` string as part of a cache key that was joined into a filesystem path. A malicious or untrusted channel could publish repodata with path separators or traversal components in that field, causing package contents to be written outside the configured package cache directory. The issue requires use of a malicious or otherwise untrusted conda channel. Curated channels that validate package metadata are not expected to allow malformed build strings of this form. Users should upgrade to a patched version and avoid untrusted conda channels.

    Affected packages

    Package

    Name: py-rattler

    Purl: pkg:pypi/py-rattler

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -0.24.0

    Affected versions

    0.1.0
    0.1.1
    0.1.2

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    PYSEC-2026-2970 | CVE-DB