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.
View on MITRENo mitigation information available for this CWE.
No detection method information available for this CWE.
Archive extractor decompresses files with world-readable permissions, then later sets permissions to what the archive specified.
View DetailsProduct inserts a new object into database before setting the object's permissions, introducing a race condition.
View DetailsDatabase product creates files world-writable before initializing the setuid bits, leading to modification of executables.
View DetailsNo relationship information available for this CWE.
CWE-689: Permission Race Condition During Resource Copy is a Common Weakness Enumeration (CWE) entry maintained by MITRE. 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.
If exploited, CWE-689 (Permission Race Condition During Resource Copy) it can compromise Confidentiality and Integrity, leading to outcomes such as Read Application Data and Modify Application Data.
CWE-689 commonly affects C and Perl. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.
MITRE documents real CVEs mapped to CWE-689, including CVE-2002-0760, CVE-2005-2174, CVE-2006-5214, CVE-2005-2475 and CVE-2003-0265. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.
A CWE (Common Weakness Enumeration) like CWE-689 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.