High severity · published Jun 16, 2025
CVE-2025-32797
Conda-build Insecure Build Script Permissions Enabling Arbitrary Code Execution
7.0
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 7% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
conda-build · conda
< 25.3.1 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-32797
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-32797
Product
https://github.com/conda/conda-build/blob/3f06913bba22c4e1ef1065df9e00d86ac97f087c/conda_build/build.py#L3054-L3084
Patch
https://github.com/conda/conda-build/commit/d246e49c8f45e8033915156ee3d77769926f3c2e
Issue Tracking
https://github.com/conda/conda-build/pull/5
Vendor Advisory
https://github.com/conda/conda-build/security/advisories/GHSA-vfp6-3v8g-vcmm
More from conda-build
9.8
CVE-2025-32800
Conda-build vulnerable to supply chain attack vector due to pyproject.toml referring to dependencies not present in PyPI
9.8
CVE-2025-32799
Conda-build Vulnerable to Path Traversal via Malicious Tar File
9.8
CVE-2025-32798
Conda-build Allows Arbitrary Code Execution via Malicious Recipe Selectors
