Skip to content
OpenAdvisories

Weakness (CWE)

CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization

Class Draft

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 to prevent it (8 mitigations)
  1. Architecture and Design

    In languages that support it, use synchronization primitives. Only wrap these around critical code to minimize the impact on performance.

  2. Architecture and Design

    Use thread-safe capabilities such as the data access abstraction in Spring.

  3. Architecture and Design

    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.

    Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).

  4. Implementation

    When using multithreading and operating on shared variables, only use thread-safe functions.

  5. Implementation

    Use atomic operations on shared variables. Be wary of innocent-looking constructs such as "x++". This may appear atomic at the code layer, but it is actually non-atomic at the instruction layer, since it involves a read, followed by a computation, followed by a write.

  6. Implementation

    Use a mutex if available, but be sure to avoid related weaknesses such as CWE-412.

  7. Implementation

    Avoid double-checked locking (CWE-609) and other implementation errors that arise when trying to avoid the overhead of synchronization.

  8. Implementation

    Disable interrupts or signals over critical parts of the code, but also make sure that the code does not go into a large or infinite loop.

Source: MITRE CWE-362

542 results · Clear filters · Feed

  • Medium 4.2

    Race condition in WebAppInstalls in Google Chrome prior to 153.0.8010.47 allowed a remote attacker to spoof UI elements…

  • Medium 6.7

    In multiple locations, there is a possible time-of-check to time-of-use due to a race condition. This could lead to loc…

  • Medium 6.4

    In multiple functions of bluetooth_cco.cc, there is a possible use-after-free due to a race condition. This could lead …

  • Medium 6.4

    In multiple locations, there is a possible use-after-free due to a race condition. This could lead to local escalation …

  • Medium 6.4

    In handle_unmap_req of tipc_virtio_dev.c, there is a possible memory corruption due to a race condition. This could lea…

  • Medium 6.4

    In bigo_worker_thread of bigo.c, there is a possible escalation of privilege due to a race condition. This could lead t…

  • Medium 4.7

    A race condition was addressed with improved locking. This issue is fixed in macOS Golden Gate 27, macOS Sequoia 15.8, …

  • Medium 5.9

    A race condition was addressed with improved state management. This issue is fixed in macOS Golden Gate 27. An app may …

  • Medium 6.3

    A race condition was addressed with improved state handling. This issue is fixed in iOS 18.7.10 and iPadOS 18.7.10, iOS…

  • Medium 4.7

    A race condition was addressed with improved state handling. This issue is fixed in iOS 26.7 and iPadOS 26.7, iOS 27 an…

  • Medium 4.7

    A race condition was addressed with additional validation. This issue is fixed in macOS Tahoe 26.6. An app may be able …

  • Medium 4.7

    A race condition was addressed with improved state handling. This issue is fixed in iOS 26.7 and iPadOS 26.7, iOS 27 an…

  • Medium 4.7

    A race condition was addressed with improved state handling. This issue is fixed in iOS 26.7 and iPadOS 26.7, iOS 27 an…

  • Medium 5.5

    A race condition was addressed with improved state handling. This issue is fixed in macOS Golden Gate 27, macOS Tahoe 2…

  • Medium 4.7

    A race condition was addressed with improved state handling. This issue is fixed in iOS 27 and iPadOS 27, macOS Golden …

  • Medium 4.7

    A race condition was addressed with additional validation. This issue is fixed in macOS Golden Gate 27, macOS Sequoia 1…

  • Medium 5.3

    Envoy Gateway: Wasm cache ServeHTTP reads mappingPath2Cache without lock

    Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based application gateway. Prior to 1.7.4 and 1.8.1, HTTPServer.ServeHTTP in internal/wasm/httpserver.go reads the plain mappingPath2Cache map without synchronizati…

  • Medium 4.2

    IBM i is Affected By Multiple Vulnerabilities in Navigator for i and Digital Certificate Manager for i.

    IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authenticated attacker to obtain sensitive information due to a race condition during the WebSocket handshake process.

    IBM i
  • Medium 5.3

    Yealink SIP-T33G < 124.87.0.0 Race Condition via Diagnostic File Deletion

    Yealink SIP-T33G firmware versions 124.86.x.x prior to 124.87.0.0 contain a race condition vulnerability that allows authenticated attackers to interrupt active diagnostic processes by concurrently deleting output files written to predictable paths under the …

  • Medium 5.0

    vvbbnn00 WARP-Clash-API Save Account Job race condition

    A vulnerability was determined in vvbbnn00 WARP-Clash-API up to c7bf2360073959861219b422e51ae86411051b46. This impacts an unknown function of the component Save Account Job. This manipulation causes race condition. The attack may be initiated remotely. The at…

  • Medium 5.0

    vvbbnn00 WARP-Clash-API doUpdateLicenseKey race condition

    A vulnerability was found in vvbbnn00 WARP-Clash-API up to c7bf2360073959861219b422e51ae86411051b46. This affects the function doUpdateLicenseKey. The manipulation results in race condition. The attack can be launched remotely. The attack requires a high leve…

  • Medium 6.5

    Snipe-IT 8.6.3 Race Condition via Consumable Checkout

    Snipe-IT versions up to and including 8.6.3 contain a race condition (TOCTOU) in the consumable checkout API endpoint (POST /api/v1/consumables/{consumable_id}/checkout). The requested quantity is validated against the number of remaining units before the dat…

  • Medium 5.3

    Race condition in Browser in Google Chrome prior to 153.0.8010.36 allowed a remote attacker to bypass system access res…

  • Medium 5.4

    Race condition in Payments in Google Chrome prior to 153.0.8010.36 allowed a remote attacker leveraging social engineer…

  • Medium 4.7

    Windows Win32K Security Feature Bypass Vulnerability

    Concurrent execution using shared resource with improper synchronization ('race condition') in Windows Win32K allows an authorized attacker to bypass a security feature locally.

  • Medium 6.4

    Windows Management Instrumentation Elevation of Privilege Vulnerability

    Concurrent execution using shared resource with improper synchronization ('race condition') in Windows Management Instrumentation allows an authorized attacker to elevate privileges locally.

  • Medium 5.9

    Windows DNS Denial of Service Vulnerability

    Concurrent execution using shared resource with improper synchronization ('race condition') in Windows DNS allows an unauthorized attacker to deny service over a network.

  • Medium 6.5

    x86: DMs may cause mem leak by IRQ binding

    When guests are terminated, various pieces of cleanup need carrying out. The cleaning up of PCI devices which were assigned to guests, and the associated removal of tracking structures for IRQs used by the devices occurs relatively early in the process. Unfor…

  • Medium 5.6

    jofpin trape Telemetry Endpoint user.py race condition

    A security vulnerability has been detected in jofpin trape 2.0. This vulnerability affects unknown code of the file core/user.py of the component Telemetry Endpoint. Such manipulation of the argument vId leads to race condition. The attack can be executed rem…

  • Medium 4.2

    macrozheng mall Order Submission submit race condition

    A security vulnerability has been detected in macrozheng mall up to 1.0.3. This impacts an unknown function of the file /order/submit of the component Order Submission. The manipulation leads to race condition. It is possible to initiate the attack remotely. …

  • Medium 4.4

    Copilot Chat (Microsoft Edge) Information Disclosure Vulnerability

    Concurrent execution using shared resource with improper synchronization ('race condition') in Copilot Chat (Microsoft Edge) allows an authorized attacker to disclose information over a network.

  • Medium 5.9

    SvelteKit 2.38.0 before 2.60.1 Cross-User Data Disclosure via query.batch

    SvelteKit versions from 2.38.0 before 2.60.1 contain a race condition in query.batch that allows concurrent requests from different users to merge under a single request context. Attackers can exploit specific timing conditions to access sensitive data from o…

  • Medium 4.2

    Shared JSR-223 ScriptEngine evaluated concurrently without THREADING check

    A single ScriptEngine instance is reused for every message on a script-backed channel. For JSR-223 engines that report THREADING=null (not thread-safe, e.g. the Kotlin kts engine), concurrent message processing can corrupt engine-internal state, potentially l…

  • Medium 4.3

    Race condition in Core in Google Chrome on on Windows prior to 152.0.7977.65 allowed a remote attacker leveraging socia…

  • Medium 6.5

    Race condition in Workers in Google Chrome prior to 152.0.7977.65 allowed a remote attacker to bypass system access res…

  • Medium 4.3

    Race condition in Autofill in Google Chrome prior to 152.0.7977.65 allowed a remote attacker who had compromised the re…

  • Medium 4.3

    Race condition in WebAppInstalls in Google Chrome on on Android prior to 152.0.7977.65 allowed a remote attacker levera…

  • Medium 5.9

    OpenTelemetry-Go: Unsynchronized baggage map can panic under concurrent access

    OpenTelemetry-Go is the Go implementation of OpenTelemetry. From version 0.11.0 through 1.44.0, the OpenTracing bridge's bridgeSpan contains an unsynchronized extraBaggageItems map which can cause a panic. Because Go maps are not safe for concurrent read/writ…

  • Medium —

    Zoo Design Studio: Memory-corruption in memory handling of lib-kcl

    A race condition in kcl-lib can result in a use-after-free when accessing environments concurrently. During Vec reallocation, the previous buffer containing Box pointers is freed and replaced. A concurrent get_env operation that has already loaded a pointer t…

  • Medium 5.9

    HCL IntelliOps Event Management is affected by multiple security vulnerabilities.

    HCL IntelliOps Event Management (IEM) is affected by a race condition. A "timing window" can occur where an attacker can modify the resource causing unpredictable behavior.