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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 6
- CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS probability
- 0.16%
- CWE
- CWE-277
- Published
- 2025-06-16
- Last modified
- 2026-03-13
Affected products
- conda conda-build
Weakness type
Related vulnerabilities
- CVE-2026-9046 — A potential insecure permissions vulnerability was reported in Legion Zone and the Lenovo App Store...
- CVE-2026-7891 — The VerySecureApp made by DIVD using Mendix Studio Pro 11.8.0 Beta allows unintended data exposure...
- CVE-2025-32092 — Insecure inherited permissions for some Intel(R) Graphics Software before version 25.30.1702.0...
- CVE-2025-65111 — SpiceDB's LookupResources with Multiple Entrypoints across Different Definitions Can Return Incomplete Results
- CVE-2025-64185 — Open OnDemand RPM packages create world writable locations
- CVE-2025-24327 — Insecure inherited permissions for some Intel(R) Rapid Storage Technology Application before...
- CVE-2025-11554 — Portabilis i-Educar User Type AccessLevelController.php insecure inherited permissions
- CVE-2025-58437 — Coder's privilege escalation vulnerability could lead to a cross workspace compromise