Vulnerability in Anaconda Conda-Build
CVE-2025-32797
Conda-build contains commands and tools to build conda packages. Prior to version 25.3.1, the write_build_scripts function in conda-build creates the temporary build script conda_build.sh with overly permissive file permissions (0o766), allowing write access to all users. Attackers with filesystem access can exploit a race condition to overwrite the script before execution, enabling arbitrary code execution under the victim's privileges. This risk is significant in shared environments, potentially leading to full system compromise. Even with non-static directory names, attackers can monitor parent directories for file creation events. The brief window between script creation (with insecure permissions) and execution allows rapid overwrites. Directory names can also be inferred via timestamps or logs, and automation enables exploitation even with semi-randomized paths by acting within milliseconds of detection. This issue has been patched in version 25.3.1. A workaround involves restricting conda_build.sh permissions from 0o766 to 0o700 (owner-only read/write/execute). Additionally, use atomic file creation (write to a temporary randomized filename and rename atomically) to minimize the race condition window.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (5.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 6th percentile — 5.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.001 · newest: 0.002 · change: +0.000
Affected products
- Anaconda Conda-Build
- Conda Conda-Build — versions < 25.3.1
Weakness classification (CWE)
References
- github.com/conda/conda-build/security/advisories/GHSA-vfp6-3v8g-vcmm (Vendor Advisory)
- github.com/conda/conda-build/pull/5 (Issue Tracking)
- github.com/conda/conda-build/commit/d246e49c8f45e8033915156ee3d77769926f3c2e (Patch)
- github.com/conda/conda-build/blob/3f06913bba22c4e1ef1065df9e00d86ac97f087c/cond… (Product)
Frequently asked questions
- What is CVE-2025-32797?
- CVE-2025-32797 is a high-severity vulnerability in Anaconda Conda-Build, classified under Insecure Inherited Permissions. CVSS score: 7.0/10. Published 2025-06-16.
- How severe is CVE-2025-32797?
- High severity. CVSS v3 base score is 7.0 out of 10.