CVE-2025-32797: Conda-build Insecure Build Script Permissions Enabling Arbitrary Code Execution

Published Jun 16, 2025
·
Updated

Conda-build contains commands and tools to build conda packages. Prior to version 25.3.1, the writebuildscripts function in conda-build creates the temporary build script condabuild.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 condabuild.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.

Affected Software

2 affected components
conda conda-build<25.3.1
Anaconda conda-build<25.3.1

Event History

Jun 16, 2025
CVE Published
via MITRE·06:46 PM
Data Sourced
via MITRE·06:46 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-32797?

The severity of CVE-2025-32797 is considered medium due to overly permissive file permissions allowing potential unauthorized access.

2

How do I fix CVE-2025-32797?

To fix CVE-2025-32797, upgrade conda-build to version 25.3.1 or later to eliminate the permissions issue.

3

What could an attacker do with CVE-2025-32797?

An attacker could exploit CVE-2025-32797 to gain unauthorized write access to the temporary build scripts created by conda-build.

4

Which versions of conda-build are affected by CVE-2025-32797?

Conda-build versions prior to 25.3.1 are affected by CVE-2025-32797.

5

What is conda-build and how is it related to CVE-2025-32797?

Conda-build is a tool for building conda packages, and CVE-2025-32797 addresses the security vulnerability within this tool regarding file permissions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203