CVE-2025-32798 Conda-build Allows Arbitrary Code Execution via Malicious Recipe Selectors
Attackers can execute arbitrary code by crafting malicious recipe selectors in conda-build, compromising the build environment.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-32798?
CVE-2025-32798 is a high-severity code injection vulnerability in conda-build, published on 16 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Conda-build contains commands and tools to build conda packages. Prior to version 25.4.0, the conda-build recipe processing logic has been found to be vulnerable to arbitrary code execution due to unsafe evaluation of recipe selectors. Currently, conda-build uses the eval function to process embedded selectors in meta.yaml files. This approach evaluates user-defined expressions without proper sanitization, which allows arbitrary code to be executed during the build process. As a result, the integrity of the build environment is compromised, and unauthorized commands or file operations may be performed. The vulnerability stems from the inherent risk of using eval() on untrusted input in a context intended to control dynamic build configurations. By directly interpreting selector expressions, conda-build creates a potential execution pathway for malicious code, violating security assumptions. This issue has been patched in version 25.4.0.
Weakness: CWE-94
Which versions are affected by CVE-2025-32798?
It affects 1 product.
Products include Anaconda Conda-Build.
How do I fix CVE-2025-32798?
No fix has been published for CVE-2025-32798 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-32798 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32798 exists.
Other vulnerabilities in conda-build
Sources
Also known as GHSA-6cc8-c3c9-3rgr.