CWEweakness

CWE-567 Unsynchronized Access to Shared Data in a Multithreaded Context

Official page ↗
Abstraction
Base
Structure
Simple
Status
Draft
Languages
Java
CWE version
5.0

Description

The product does not properly synchronize shared data, such as static variables across threads, which can lead to undefined behavior and unpredictable data changes.

Extended description

Within servlets, shared static variables are not protected from concurrent access, but servlets are multithreaded. This is a typical programming mistake in J2EE applications, since the multithreading is handled by the framework. When a shared variable can be influenced by an attacker, one thread could wind up modifying the variable to contain data that is not valid for a different thread that is also using the data within the variable. Note that this weakness is not unique to servlets.

Common consequences

• Confidentiality, Integrity, Availability: Read Application Data, Modify Application Data, DoS: Instability, DoS: Crash, Exit, or Restart — If the shared variable contains sensitive data, it may be manipulated or displayed in another user session. If this data is used to control the application, its value can be manipulated to cause the application to crash or perform poorly.

Potential mitigations

• [Implementation] Remove the use of static variables used between servlets. If this cannot be avoided, use synchronized access for these variables.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Related

Attack pattern · CAPEC (1)

  • CAPEC-25 Forced Deadlock attack pattern

Can precede · CWE (1)

  • CWE-488 Exposure of Data Element to Wrong Session weakness

Child of · CWE (2)

  • CWE-662 Improper Synchronization weakness
  • CWE-820 Missing Synchronization weakness

Referenced by CAPEC · weakness (1)

  • CAPEC-25 Forced Deadlock attack pattern

Referenced by CVE · weakness (12)

  • CVE-2026-93319 A malicious external BuildKit frontend can send requests using the internal API that can create conditions for a data race that can cause… vulnerability
  • CVE-2026-79962 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains a Concurrent… vulnerability
  • CVE-2026-79969 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains a Concurrent… vulnerability
  • CVE-2026-79973 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains an Unsynchronized… vulnerability
  • CVE-2026-73631 Exposure of data element to wrong session vulnerability in the JSON plugin of Apache Struts. vulnerability
  • CVE-2026-73632 Exposure of data element to wrong session vulnerability in the JSON plugin of Apache Struts. vulnerability
  • CVE-2026-48708 OliveTin gives access to predefined shell commands from a web interface. vulnerability
  • CVE-2026-46693 ImageMagick is free and open-source software used for editing and manipulating digital images. vulnerability
  • CVE-2025-14017 When doing multi-threaded LDAPS transfers (LDAP over TLS) with libcurl, changing TLS options in one thread would inadvertently change them… vulnerability
  • CVE-2025-48908 Ability Auto Startup service vulnerability in the foundation process Impact: Successful exploitation of this vulnerability may affect… vulnerability
  • CVE-2023-44374 A vulnerability has been identified in RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) (All versions < V8.0), RUGGEDCOM RM1224 LTE(4G) NAM… vulnerability
  • CVE-2020-25724 A flaw was found in RESTEasy, where an incorrect response to an HTTP request is provided. vulnerability

Referenced by CWE · has member (1)