Cyber Resilience

CVE-2025-32797

Anaconda Conda-Build ≤ 25.3.1

Published
16 June 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v4 6.0
Click a component to see what it means
Raw vectorCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0014 4th percentile
Risk Priority 30 floored blend · peak EPSS

Summary

CVE-2025-32797 is a medium-severity Insecure Inherited Permissions (CWE-277) vulnerability in Anaconda Conda-Build. Its CVSS base score is 6.0 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Path Interception (T1034); ranked at the 4th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-6 (Least Privilege) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1034 Path Interception Persistence
**This technique has been deprecated.
T1548 Abuse Elevation Control Mechanism Privilege Escalation
Adversaries may circumvent mechanisms designed to control privilege elevation to gain higher-level permissions.
T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-32798Same product: Anaconda Conda-Build
CVE-2025-32800Same product: Anaconda Conda-Build
CVE-2025-32799Same product: Anaconda Conda-Build
CVE-2024-23233Shared CWE-277
CVE-2024-36539Shared CWE-277
CVE-2024-36542Shared CWE-277
CVE-2024-6605Shared CWE-277
CVE-2024-27834Shared CWE-277
CVE-2024-29417Shared CWE-277
CVE-2024-27847Shared CWE-277

Affected Assets

anaconda
conda-build
≤ 25.3.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)
  • 8 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

Least privilege requires that only the minimal necessary permissions are granted, which structurally prevents the definition and inheritance of overly broad permissions.

Access enforcement directly stops insecure inherited permissions from being applied to new objects by requiring all access decisions to follow approved authorizations.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-05 mostly match
prevents

Directly addresses defining and enforcing secure access permissions and least privilege, which prevents insecure inheritance.

PR.PS-01 partial match
prevents

Configuration management practices include establishing secure permission baselines that avoid insecure inheritance.

PR.PS-06 partial match
prevents

Secure SDLC practices would catch and prevent defining insecure inherited permissions during development.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing may detect permission issues but does not prevent insecure inheritance by design.

degrades

Privileged access rights management can limit inheritance of excessive permissions but does not directly address insecure default permission inheritance.

prevents

Secure development lifecycle practices can include permission model reviews but do not guarantee secure inherited permissions.

prevents

Secure system architecture principles can incorporate least-privilege permission models but do not specifically mandate secure inheritance.

prevents

Secure coding standards can explicitly require setting restrictive permissions at object creation, directly mitigating insecure inheritance.

degrades

Information access restriction policies can reduce risk from inherited permissions but do not enforce secure permission inheritance at creation time.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).

Windows Server 2016 (2 rules)
  • V-224974 Domain-created Active Directory Organizational Unit (OU) objects must have proper access control permissions. prevents CWE-277
  • V-224972 Active Directory Group Policy objects must have proper access control permissions. prevents CWE-277
Windows Server 2019 (2 rules)
  • V-205743 Windows Server 2019 organization created Active Directory Organizational Unit (OU) objects must have proper access control permissions. prevents CWE-277
  • V-205741 Windows Server 2019 Active Directory Group Policy objects must have proper access control permissions. prevents CWE-277
Windows Server 2022 (1 rule)
  • V-254395 Windows Server 2022 organization created Active Directory Organizational Unit (OU) objects must have proper access control permissions. prevents CWE-277

References