Advisory

PYSEC-2026-2970

Also known as: CVE-2026-53956, GHSA-h672-p7h7-97v9

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.

Severity

Medium Basis: CVSS v3 score 5.4, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Dates

Published
2026-07-13 15:46 UTC
Modified
2026-07-13 16:33 UTC

Affected packages and fixes

py-rattler

PyPI · All systems

Affected

  • introduced 0, fixed 0.24.0 (ecosystem)

Fixed versions

0.24.0

Fix

  • Fixed version 0.24.0
    pip install --upgrade py-rattler==0.24.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences