CVE-2025-32797
CVE-2025-32797 is a high-severity vulnerability in Anaconda Conda-build with a CVSS 3.x base score of 7.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-277.
Key facts
- Severity: High (CVSS 3.x base score 7.0)
- CVSS v4: 6.0
- EPSS exploit prediction: 0% (4th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-18461
- Weakness: CWE-277
- Affected product: Anaconda Conda-build
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2025-32797?
- CVE-2025-32797 has a CVSS 3.x base score of 7.0, rated high severity. It is exploitable over local access with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2025-32797 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (4th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-32797?
- CVE-2025-32797 affects Anaconda Conda-build. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-32797?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2025-32797 have an EU (EUVD) identifier?
- Yes. CVE-2025-32797 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-18461.
- When was CVE-2025-32797 published?
- CVE-2025-32797 was published on 2025-06-16 and last updated on 2026-06-17.
References
- https://github.com/conda/conda-build/blob/3f06913bba22c4e1ef1065df9e00d86ac97f087c/conda_build/build.py#L3054-L3084
- https://github.com/conda/conda-build/commit/d246e49c8f45e8033915156ee3d77769926f3c2e
- https://github.com/conda/conda-build/pull/5
- https://github.com/conda/conda-build/security/advisories/GHSA-vfp6-3v8g-vcmm
Affected products (1)
- cpe:2.3:a:anaconda:conda-build:*:*:*:*:*:*:*:*
More vulnerabilities in Anaconda Conda-build
- CVE-2025-32800 — Critical (CVSS 9.8): Conda-build contains commands and tools to build conda packages. Prior to version 25.3.0, the pyproject.toml lists…
- CVE-2025-32799 — Critical (CVSS 9.8): Conda-build contains commands and tools to build conda packages. Prior to version 25.4.0, the conda-build processing…
- CVE-2025-32798 — Critical (CVSS 9.8): Conda-build contains commands and tools to build conda packages. Prior to version 25.4.0, the conda-build recipe…
All CVEs affecting Anaconda Conda-build →
Other CWE-277 vulnerabilities
- CVE-2024-36540 — Critical (CVSS 9.8): Insecure permissions in external-secrets v0.9.16 allows attackers to access sensitive data and escalate privileges by…
- CVE-2024-36539 — Critical (CVSS 9.8): Insecure permissions in contour v1.28.3 allows attackers to access sensitive data and escalate privileges by obtaining…
- CVE-2026-7891 — Critical (CVSS 9.3): The VerySecureApp made by DIVD using Mendix Studio Pro 11.8.0 Beta allows unintended data exposure due to authorization…
- CVE-2024-36542 — High (CVSS 8.8): Insecure permissions in kuma v2.7.0 allows attackers to access sensitive data and escalate privileges by obtaining the…
- CVE-2024-6605 — High (CVSS 8.8): Firefox Android allowed immediate interaction with permission prompts. This could be used for tapjacking. This…
- CVE-2023-27842 — High (CVSS 8.8): Insecure Permissions vulnerability found in Extplorer File manager eXtplorer v.2.1.15 allows a remote attacker to…