Rattler cache: Rattler vulnerable to package cache path traversal via conda package build string (CVE-2026-53956)
`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.
AI Analysis
Technical Summary
rattler_cache and py-rattler handle package metadata from conda channels by using the package record's build string as part of a cache key that forms a filesystem path. If a malicious or untrusted channel publishes repodata with path separators or traversal components in the build string, it can lead to path traversal, allowing package contents to be written outside the configured package cache directory. This vulnerability is identified as CWE-22 and CWE-73 and affects versions prior to 0.9.0 for rattler_cache and prior to 0.24.0 for py-rattler. The issue requires interaction with untrusted conda channels, as curated channels are expected to prevent malformed build strings.
Potential Impact
The vulnerability allows an attacker controlling or influencing a conda channel to cause package contents to be written outside the intended cache directory on the user's filesystem. This can lead to integrity issues and potential denial of service by overwriting or placing files in unauthorized locations. There is no direct confidentiality impact reported. Exploitation requires user interaction with a malicious or untrusted channel. No known exploits are reported in the wild.
Mitigation Recommendations
Users should upgrade to versions 0.9.0 or later for rattler_cache and 0.24.0 or later for py-rattler where this issue is fixed. Additionally, users should avoid using untrusted or malicious conda channels, relying instead on curated channels that validate package metadata to prevent malformed build strings. Patch status is not explicitly confirmed in the provided data; users should verify the vendor advisory for official fixes.
Rattler cache: Rattler vulnerable to package cache path traversal via conda package build string (CVE-2026-53956)
Description
`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.
CVSS v3.1
Score 5.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
rattler_cache and py-rattler handle package metadata from conda channels by using the package record's build string as part of a cache key that forms a filesystem path. If a malicious or untrusted channel publishes repodata with path separators or traversal components in the build string, it can lead to path traversal, allowing package contents to be written outside the configured package cache directory. This vulnerability is identified as CWE-22 and CWE-73 and affects versions prior to 0.9.0 for rattler_cache and prior to 0.24.0 for py-rattler. The issue requires interaction with untrusted conda channels, as curated channels are expected to prevent malformed build strings.
Potential Impact
The vulnerability allows an attacker controlling or influencing a conda channel to cause package contents to be written outside the intended cache directory on the user's filesystem. This can lead to integrity issues and potential denial of service by overwriting or placing files in unauthorized locations. There is no direct confidentiality impact reported. Exploitation requires user interaction with a malicious or untrusted channel. No known exploits are reported in the wild.
Mitigation Recommendations
Users should upgrade to versions 0.9.0 or later for rattler_cache and 0.24.0 or later for py-rattler where this issue is fixed. Additionally, users should avoid using untrusted or malicious conda channels, relying instead on curated channels that validate package metadata to prevent malformed build strings. Patch status is not explicitly confirmed in the provided data; users should verify the vendor advisory for official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-h672-p7h7-97v9
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53956"]
- Ecosystems
- ["crates.io","PyPI"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a50ba3c68715ace4357db21
Added to database: 07/10/2026, 09:24:12 UTC
Last enriched: 07/10/2026, 09:33:25 UTC
Last updated: 07/31/2026, 12:27:30 UTC
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.