Skip to main content

rattler_cache EUVDEUVD-2026-75141

| CVE-2026-53956 MEDIUM
Path Traversal (CWE-22)
2026-07-09 https://github.com/conda/rattler GHSA-h672-p7h7-97v9 PYSEC-2026-2970
5.4
CVSS 3.1 · Vendor: https://github.com/conda/rattler
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish crafted repodata on malicious channel
  2. Delivery
    Embed path traversal in package build string
  3. Exploit
    Social-engineer victim to add untrusted channel
  4. Execution
    Victim installs package triggering cache write
  5. Persist
    rattler_cache materializes files to attacker-controlled path
  6. Impact
    Attacker-chosen files written outside cache root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to explicitly add and use a malicious or untrusted conda channel that contains package metadata with path traversal sequences (e.g., '../', directory separators) embedded in the build field of a package record. This is a hard prerequisite: curated channels such as conda-forge and the official Anaconda channel validate package metadata and are not expected to permit such malformed build strings, so users restricted to those channels are not exposed. The CVSS UI:R metric reflects that the victim must actively initiate an install operation from the untrusted channel. The unchanged scope (S:U) confines the impact to files writable by the process running rattler_cache, typically the victim's own user account. There is no privilege escalation beyond what the cache-writing process already holds.

Impact

The CVSS 5.4 Medium score (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L) accurately reflects a moderate-risk, conditionally exploitable flaw. Attack complexity is low once a malicious channel is in place, and no attacker-side privileges are required. However, UI:R is a meaningful real-world brake: exploitation cannot occur without the victim actively configuring and using the malicious channel. Scope is unchanged (S:U) and there is no confidentiality impact, so the blast radius is limited to integrity and availability of files on the victim's local system. No EPSS score was provided, no CISA KEV listing exists, and no public POC has been identified - all consistent with a supply-chain-style flaw that requires social engineering rather than opportunistic scanning. The primary realistic risk is targeted attack via a lookalike or compromised community channel, not mass exploitation. Defenders using only validated channels (conda-forge, official Anaconda) face essentially no exposure.

Exploit ScenarioDerived

An attacker operates a malicious conda channel and crafts repodata JSON containing a package record whose build field includes path traversal sequences such as '../../sensitive_dir'. A user who adds this channel to their conda or pixi configuration and installs the crafted package causes rattler_cache to join the traversal string into the cache path, writing package contents to an attacker-chosen directory outside the cache root - potentially overwriting application configs, scripts, or other user-writable files. No public POC exists at time of analysis, but the technique is straightforward for any operator with channel publishing access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

Path traversal in rattler_cache and py-rattler exposes the victim's filesystem to out-of-bounds file writes when package metadata from an untrusted conda channel contains path separators or directory traversal sequences in the build string. Users who install packages from a malicious channel trigger cache materialization logic that joins the unsanitized build string into a filesystem path, allowing package contents to land outside the configured cache directory. No public exploit has been identified and no CISA KEV listing exists; exploitation requires deliberate use of an untrusted channel (CVSS UI:R), meaningfully limiting real-world exposure.

RemediationAI

Upgrade rattler_cache and py-rattler to the patched version as documented in the GitHub Security Advisory GHSA-h672-p7h7-97v9 (https://github.com/conda/rattler/security/advisories/GHSA-h672-p7h7-97v9). Exact patched version numbers are not independently confirmed from available data - verify the specific target version against the advisory before deploying. As an immediate compensating control, restrict conda channel configuration exclusively to validated, curated sources such as conda-forge or the official Anaconda channel; this eliminates the attack surface entirely because curated channels are not expected to permit malformed build strings. Removing or disabling untrusted channels has no functional downside for users relying on standard package sources.

Affected VersionsENISA

rattler_cache < 0.9.0
py-rattler < 0.24.0

Affected Packages

cargo py-rattler fix: 0.24.0
cargo rattler_cache fix: 0.9.0
pypi py-rattler fix: 0.24.0
pypi rattler-cache fix: 0.9.0
euvd py_rattler fix: 0.24.0
euvd rattler_cache fix: 0.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in cargo, pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rattler_cache is a Rust crate (pkg:rust/rattler_cache) and py-rattler is its Python binding (pkg:pip/py_rattler), both part of the conda/rattler ecosystem used for resolving, fetching, and caching conda packages. During cache materialization, the code constructs a filesystem path by joining the package record's build string as a cache key component. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) applies directly: the build field is incorporated into the path without stripping path separator characters or traversal sequences such as '../', allowing an attacker-controlled string to escape the cache root. The vulnerability lives at the interface between conda channel repodata (JSON metadata served by a channel) and the local cache write logic, not in package archive extraction itself.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/conda/rattler) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
vuln.today AI 5.4 MEDIUM

Network vector fits malicious channel delivery; PR:N for the attacker (channel operator); UI:R because victim must actively install from the untrusted channel; no confidentiality impact described.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/conda/rattler).

CVSS VectorVendor: https://github.com/conda/rattler

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 pypi packages depend on py-rattler (3 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.24.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche conda tooling library, limited production footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy