Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
conda conda-build
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Conda-build是Conda开源的一个用于构建conda包的命令和工具。 Conda-build 25.3.1之前版本存在安全漏洞,该漏洞源于临时构建脚本conda_build.sh权限设置不当,可能导致任意代码执行。

AI Predicted 6.5 Difficulty: Moderate EPSS 0.15% · P5
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-32797

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Conda-build Insecure Build Script Permissions Enabling Arbitrary Code Execution
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
不安全的继承权限
Source: CVE Program / CVE List V5
Vulnerability Title
Conda-build 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Conda-build是Conda开源的一个用于构建conda包的命令和工具。 Conda-build 25.3.1之前版本存在安全漏洞,该漏洞源于临时构建脚本conda_build.sh权限设置不当,可能导致任意代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
conda conda-build < 25.3.1 -

II. Public POCs for CVE-2025-32797

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-32797

登录查看更多情报信息。

Patches & Fixes for CVE-2025-32797 (1)

Same Patch Batch · conda · 2025-06-16 · 4 CVEs total

CVE-2025-32798 Conda-build Allows Arbitrary Code Execution via Malicious Recipe Selectors
CVE-2025-32799 Conda-build Vulnerable to Path Traversal via Malicious Tar File
CVE-2025-32800 Conda-build vulnerable to supply chain attack vector due to pyproject.toml referring to de

IV. Related Vulnerabilities

V. Comments for CVE-2025-32797

No comments yet


Leave a comment