---
title: "CWE-689: Permission Race Condition During Resource Copy"
url: https://radicalnotion.ai/cwe/cwe-689
type: cwe
description: "The product, while copying or cloning a resource, does not set the resource's permissions or access control until the copy is complete, leaving the resource exposed to other spheres while the copy is taking place."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-689: Permission Race Condition During Resource Copy

- **Abstraction:** Compound
- **Structure:** Composite
- **Status:** Draft
- **CVEs with this as primary weakness:** 3
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product, while copying or cloning a resource, does not set the resource's permissions or access control until the copy is complete, leaving the resource exposed to other spheres while the copy is taking place.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Languages:** C (Undetermined), Perl (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity | Read Application Data, Modify Application Data | - |

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-0760 | Archive extractor decompresses files with world-readable permissions, then later sets permissions to what the archive specified. |
| CVE-2005-2174 | Product inserts a new object into database before setting the object's permissions, introducing a race condition. |
| CVE-2006-5214 | Error file has weak permissions before a chmod is performed. |
| CVE-2005-2475 | Archive permissions issue using hard link. |
| CVE-2003-0265 | Database product creates files world-writable before initializing the setuid bits, leading to modification of executables. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2022-28768 | Local Privilege Escalation in Zoom Client Installer for macOS | high | 8.8 | - | No | 2022-11-17 |
| CVE-2025-40909 | Perl threads have a working directory race condition where file operations may target unintended paths | medium | 5.9 | - | No | 2025-05-30 |
| CVE-2025-0087 | Elevation of privilege in Framework | medium | 5.1 | - | No | 2025-09-04 |

## Related attack patterns (CAPEC)

- [CAPEC-26](https://radicalnotion.ai/capec/capec-26): Leveraging Race Conditions
- [CAPEC-27](https://radicalnotion.ai/capec/capec-27): Leveraging Race Conditions via Symbolic Links

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-362](https://radicalnotion.ai/cwe/cwe-362) | Concurrent Execution using Shared Resource with Improper Synchronization |
| Requires | [CWE-732](https://radicalnotion.ai/cwe/cwe-732) | Incorrect Permission Assignment for Critical Resource |

## Frequently asked questions

### What is CWE-689?

The product, while copying or cloning a resource, does not set the resource's permissions or access control until the copy is complete, leaving the resource exposed to other spheres while the copy is taking place.

### What CVEs are caused by CWE-689?

3 recorded CVEs are attributed to CWE-689, including CVE-2022-28768, CVE-2025-40909 and CVE-2025-0087.

### What are the consequences of CWE-689?

Exploiting CWE-689 can lead to: Read Application Data, Modify Application Data.

### Is CWE-689 actively exploited?

3 recorded CVEs are caused by CWE-689; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/689.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-689). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
