CVE-2025-32797 Details
Description
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.
A vulnerability in Conda-Build versions prior to 25.3.1 allows for arbitrary code execution by exploiting a race condition. The issue arises because the 'write_build_scripts' function creates a temporary build script, 'conda_build.sh', with overly permissive file permissions (0o766), granting write access to all users. In shared environments, attackers with filesystem access can overwrite the script before it is executed, executing arbitrary code under the victim's privileges. This vulnerability is particularly concerning in multi-user systems and CI/CD pipelines, where it could lead to full system compromise.
Users can upgrade to Conda-Build version 25.3.1 or later, where this vulnerability has been patched. Alternatively, the permissions of the 'conda_build.sh' script can be manually restricted from 0o766 to 0o700, allowing only the owner to read, write, and execute the file. For an additional layer of protection, use atomic file creation by writing to a temporary randomized filename and renaming it atomically to reduce the risk of exploitation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-277 | Insecure Inherited Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| anaconda conda-build | < 25.3.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 11, 2025 | Initial Analysis | [email protected] |
| Jun 16, 2025 | New CVE Received | [email protected] |