Skip to content
OpenAdvisories

Weakness (CWE)

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

Base Draft

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

More detail

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.

How to prevent it (1 mitigation)
  1. Implementation

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

Source: MITRE CWE-567

13 results · Feed

  • Medium 5.9

    Traefik 3.2.0 before 3.7.15 FastProxy Data Race Denial of Service

    Traefik from 3.2.0 before 3.7.15 contains a data race in the experimental FastProxy that allows unauthenticated attackers to crash the process by abusing HTTP/1 protocol upgrades. Attackers can repeatedly open and abort upgraded connections such as WebSocket,…

  • Medium 5.7

    A malicious frontend can cause a daemon panic

    A malicious external BuildKit frontend can send requests using the internal API that can create conditions for a data race that can cause the BuildKit daemon to panic.

  • Medium 5.3

    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…

  • Medium 5.3

    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…

  • Medium 6.3

    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…

  • Medium 4.3

    Apache Struts: Shared serialization state in the JSON plugin

    Exposure of data element to wrong session vulnerability in the JSON plugin of Apache Struts. Per-response serialization state could be shared across concurrent requests, allowing response content associated with one request to become observable in another. On…

  • Medium 4.3

    Apache Struts: Shared parsing state in the JSON plugin

    Exposure of data element to wrong session vulnerability in the JSON plugin of Apache Struts. Per-request parsing state could be shared across concurrent requests, allowing data associated with one request to become observable in another, and configured parsin…

  • High 7.5

    OliveTin has a Concurrent Template Parsing Race Condition which Leads to Cross-Request Command Contamination

    OliveTin gives access to predefined shell commands from a web interface. In versions 3000.0.0 and prior, the template engine uses a single shared text/template.Template instance (tpl package-level variable in service/internal/tpl/templates.go) across all goro…

  • Medium 4.1

    ImageMagick: Race Condition in distributed pixel cache server can result in file descriptor hijacking

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-48 and 7.1.2-23, an attacker who can connect to a magick -distribute-cache service can hijack a file descriptor in the server process when …

  • Medium 6.3

    broken TLS options for threaded LDAPS

    When doing multi-threaded LDAPS transfers (LDAP over TLS) with libcurl, changing TLS options in one thread would inadvertently change them globally and therefore possibly also affect other concurrently setup transfers. Disabling certificate verification for a…

  • Medium 6.7

    Ability Auto Startup service vulnerability in the foundation process Impact: Successful exploitation of this vulnerabil…

  • Medium 6.5

    A vulnerability has been identified in RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) (All versions < V8.0), RUGGEDCO…

  • Medium 4.3

    Unsynchronized Access to Shared Data in a Multithreaded Context in RESTEasy

    A flaw was found in RESTEasy, where an incorrect response to an HTTP request is provided. This flaw allows an attacker to gain access to privileged information. The highest threat from this vulnerability is to confidentiality and integrity. Versions before re…