Race Condition (CWE-362)
CWE-362, Race Condition, is the MITRE CWE entry for weaknesses in which the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. The database tracks 9 CVE records mapped to CWE-362, and 9 of them are in the CISA Known Exploited Vulnerabilities catalog.
Updated
About CWE-362
MITRE lists these common consequences: DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other), DoS: Crash, Exit, or Restart, DoS: Instability, Read Files or Directories, Read Application Data, Execute Unauthorized Code or Commands, Gain Privileges or Assume Identity, Bypass Protection Mechanism, affecting availability, confidentiality, integrity, access control.
- MITRE name
- Concurrent Execution using Shared Resource with Improper Synchronization
- Abstraction
- Class: a very abstract weakness, typically independent of language or technology
- Status
- Draft
Also Known As
- Race Condition
Mitigations
- In languages that support it, use synchronization primitives. Only wrap these around critical code to minimize the impact on performance.
- Use thread-safe capabilities such as the data access abstraction in Spring.
- Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring.
- When using multithreading and operating on shared variables, only use thread-safe functions.
Detection
MITRE lists these detection methods: Automated Static Analysis - Binary or Bytecode (high), Dynamic Analysis with Manual Results Interpretation (high), Manual Static Analysis - Source Code (high), Automated Static Analysis - Source Code (high), Architecture or Design Review (high).
CWE-362 in the KEV Catalog
as of 2026-11-16- 9 CISA KEV entries name Race Condition (CWE-362) in their CVE record, tied for 33rd among the 195 weaknesses named in the catalog.
- Linux Kernel and Microsoft have the most CWE-362 entries in the CISA KEV catalog (3 each).
Related Attack Patterns
2 CAPEC patternsCAPEC-26Leveraging Race ConditionsMeta · Severity High · Likelihood High
Loading…
CAPEC-29Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race ConditionsStandard · Severity High · Likelihood High
Loading…
CWE-362 Vulnerabilities
9 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2025-39964KEV crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg | crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg | Linux | 7.8 | 1.6% | KEV | 2025-10-13 |
| CVE-2025-62215KEV Windows Kernel Elevation of Privilege Vulnerability | Windows Kernel Elevation of Privilege Vulnerability | Microsoft | 7.0 | 4.5% | KEV | 2025-11-11 |
| CVE-2023-36884KEV Windows Search Remote Code Execution Vulnerability | Windows Search Remote Code Execution Vulnerability | Microsoft | 7.5 | 99.4% | KEV | 2023-07-11 |
| CVE-2021-25395KEV Samsung Mobile Devices Race Condition Vulnerability | Samsung Mobile Devices Race Condition Vulnerability | Samsung Mobile | 6.4 | 0.4% | KEV | 2021-06-11 |
| CVE-2014-0196KEV Linux Kernel Race Condition Vulnerability | Linux Kernel Race Condition Vulnerability | - | 5.5 | 20.3% | KEV | 2014-05-07 |
| CVE-2022-26904KEV Windows User Profile Service Elevation of Privilege Vulnerability | Windows User Profile Service Elevation of Privilege Vulnerability | Microsoft | 7.0 | 16.9% | KEV | 2022-04-15 |
| CVE-2016-5195KEV Linux Kernel Race Condition Vulnerability | Linux Kernel Race Condition Vulnerability | - | 7.0 | 83.5% | KEV | 2016-11-10 |
| CVE-2021-21166KEV Google Chromium Race Condition Vulnerability | Google Chromium Race Condition Vulnerability | 8.8 | 24.0% | KEV | 2021-03-09 | |
| CVE-2020-6820KEV Mozilla Firefox And Thunderbird Use-After-Free Vulnerability | Mozilla Firefox And Thunderbird Use-After-Free Vulnerability | Mozilla | 8.1 | 7.1% | KEV | 2020-04-24 |
Frequently Asked Questions
What is CWE-362?→
CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization) is a MITRE CWE entry. The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
How many exploited vulnerabilities are classified as CWE-362?→
This database lists 9 CVE records mapped to CWE-362 by their CVE Numbering Authority. 9 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 1 to known ransomware campaigns. Examples include CVE-2025-39964, CVE-2025-62215, CVE-2023-36884.
Weakness description, consequences, and mitigations from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.