CAPEC-26 / ATTACK-PATTERN
Leveraging Race Conditions
The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with their version and cause the system to read the malicious file.
- Category
- CAPEC patterns
- Version / scope
- CAPEC 3.9; release 2023-01-24; publisher status Stable
- Affected / relevant technologies
- Platform scope not specified separately in this source
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
A resource is accessed/modified concurrently by multiple processes such that a race condition exists. The adversary has the ability to modify the resource.
Potential impact
Confidentiality Access Control Authorization Gain Privileges Integrity Modify Data
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CAPEC 3.9; release 2023-01-24; publisher status Stable. Source checked: 2026-11-18.
Source object: CAPEC-26. Object modified: 2022-09-29.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- No standalone detection method is provided in the selected source fields. Do not infer that absence of an alert establishes safety.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Use safe libraries to access resources such as files.
- Be aware that improper use of access function calls such as chown(), tempfile(), chmod(), etc. can cause a race condition.
- Use synchronization to control the flow of execution.
- Use static analysis tools to find race conditions.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-26 → Related_Weakness → CWE-1223 Open related reference
- CAPEC-26 → Related_Weakness → CWE-1254 Open related reference
- CAPEC-26 → Related_Weakness → CWE-1298 Open related reference
- CAPEC-26 → Related_Weakness → CWE-362 Open related reference
- CAPEC-26 → Related_Weakness → CWE-363 Open related reference
- CAPEC-26 → Related_Weakness → CWE-366 Open related reference
- CAPEC-26 → Related_Weakness → CWE-368 Open related reference
- CAPEC-26 → Related_Weakness → CWE-370 Open related reference
- CAPEC-26 → Related_Weakness → CWE-662 Open related reference
- CAPEC-26 → Related_Weakness → CWE-665 Open related reference
- CAPEC-26 → Related_Weakness → CWE-667 Open related reference
- CAPEC-26 → Related_Weakness → CWE-689 Open related reference
- CAPEC-29 → ChildOf → CAPEC-26 Open related reference
- CWE-1223 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-1254 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-1298 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-362 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-363 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-366 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-368 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-370 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-662 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-665 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-667 → Related_Attack_Pattern → CAPEC-26 Open related reference
- CWE-689 → Related_Attack_Pattern → CAPEC-26 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- Publisher reference: CAPEC-26 — source accessed 2026-11-18
- capec — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
