---
title: "CWE-567: Unsynchronized Access to Shared Data in a Multithreaded Context"
url: https://radicalnotion.ai/cwe/cwe-567
type: cwe
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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

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

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 14
- **Of those, in CISA KEV:** 0
- **New in 2026:** 8
- **CWE catalog version:** 4.21

## 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.

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.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Languages:** Java (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| 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.)

Effectiveness: High

## Demonstrative examples

### Example 1

The following code implements a basic counter for how many times the page has been accessed.

Bad code:

```java
public static class Counter extends HttpServlet {
    static int count = 0;
    protected void doGet(HttpServletRequest in, HttpServletResponse out)
    throws ServletException, IOException {
        out.setContentType("text/plain");
        PrintWriter p = out.getWriter();
        count++;
        p.println(count + " hits so far!");
    }
}
```

## Real CVEs with this weakness (sample of 12 of 14)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2015-4732 | Java SE, Java SE Embedded: Libraries - takeover | critical | 10.0 | - | No | 2015-07-16 |
| CVE-2026-119574 | Traefik 3.2.0 before 3.7.15 FastProxy Data Race Denial of Service | high | 8.2 | - | No | 2026-10-30 |
| CVE-2023-44374 | Unsynchronized Access to Shared Data in a Multithreaded Context in Siemens SCALANCE W700 | high | 7.1 | - | No | 2023-11-14 |
| CVE-2025-48908 | Ability Auto Startup service vulnerability in the foundation process | medium | 6.7 | - | No | 2025-06-06 |
| CVE-2026-79973 | - | medium | 6.3 | - | No | 2026-09-09 |
| CVE-2025-14017 | broken TLS options for threaded LDAPS | medium | 6.3 | - | No | 2026-01-08 |
| CVE-2026-79962 | - | medium | 5.9 | - | No | 2026-09-09 |
| CVE-2026-79969 | - | medium | 5.9 | - | No | 2026-09-09 |
| CVE-2026-93319 | A malicious frontend can cause a daemon panic | medium | 5.7 | - | No | 2026-10-05 |
| CVE-2021-47256 | mm/memory-failure: make sure wait for page writeback in memory\_failure | medium | 5.5 | - | No | 2024-05-21 |
| CVE-2026-73632 | Apache Struts: Shared serialization state in the JSON plugin | medium | 4.3 | - | No | 2026-08-15 |
| CVE-2026-73631 | Apache Struts: Shared parsing state in the JSON plugin | medium | 4.3 | - | No | 2026-08-15 |

## Related attack patterns (CAPEC)

- [CAPEC-25](https://radicalnotion.ai/capec/capec-25): Forced Deadlock

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-662](https://radicalnotion.ai/cwe/cwe-662) | Improper Synchronization |
| Parent | [CWE-820](https://radicalnotion.ai/cwe/cwe-820) | Missing Synchronization |
| Can precede | [CWE-488](https://radicalnotion.ai/cwe/cwe-488) | Exposure of Data Element to Wrong Session |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| The CERT Oracle Secure Coding Standard for Java (2011) | Ensure visibility when accessing shared primitive variables | VNA00-J | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | Ensure that compound operations on shared variables are atomic | VNA02-J | - |
| Software Fault Patterns | Missing Lock | SFP19 | - |

## Frequently asked questions

### What is CWE-567?

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

### What CVEs are caused by CWE-567?

14 recorded CVEs are attributed to CWE-567, including CVE-2015-4732, CVE-2026-119574 and CVE-2023-44374.

### How do you prevent CWE-567?

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

### How is CWE-567 detected?

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.)

### What are the consequences of CWE-567?

Exploiting CWE-567 can lead to: Read Application Data, Modify Application Data, DoS: Instability, DoS: Crash, Exit, or Restart.

### Is CWE-567 actively exploited?

14 recorded CVEs are caused by CWE-567; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/567.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-567). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
