---
title: "CWE-488: Exposure of Data Element to Wrong Session"
url: https://radicalnotion.ai/cwe/cwe-488
type: cwe
description: "The product does not sufficiently enforce boundaries between the states of different sessions, causing data to be provided to, or used by, the wrong session."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-488: Exposure of Data Element to Wrong Session

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

## Description

The product does not sufficiently enforce boundaries between the states of different sessions, causing data to be provided to, or used by, the wrong session.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | In the case of Servlets, developers sometimes do not understand that, unless a Servlet implements the SingleThreadModel interface, the Servlet is a singleton; there is only one instance of the Servlet, and that single instance is used and re-used to handle multiple requests that are processed simultaneously by different threads. A common result is that developers use Servlet member fields in such a way that one user may inadvertently see another user's data. |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | Data can "bleed" from one session to another through member variables of singleton objects, such as Servlets, and objects from a shared pool. Storing user data in Servlet member fields introduces a data access race condition. |

## Potential mitigations

### Architecture and Design

Protect the application's sessions from information leakage. Make sure that a session's data is not used or visible by other sessions.

### Testing

Use a static analysis tool to scan the code for information leakage vulnerabilities (e.g. Singleton Member Field).

### Architecture and Design

In a multithreading environment, storing user data in Servlet member fields introduces a data access race condition. Do not use member fields to store information in the Servlet.

## 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 Servlet stores the value of a request parameter in a member field and then later echoes the parameter value to the response output stream.

Bad code:

```java
public class GuestBook extends HttpServlet {
    String name;

    protected void doPost (HttpServletRequest req, HttpServletResponse res) {
        name = req.getParameter("name");
        ...
        out.println(name + ", thanks for visiting!");
    }
}
```

While this code will work perfectly in a single-user environment, if two users access the Servlet at approximately the same time, it is possible for the two request handler threads to interleave in the following way: Thread 1: assign "Dick" to name Thread 2: assign "Jane" to name Thread 1: print "Jane, thanks for visiting!" Thread 2: print "Jane, thanks for visiting!" Thereby showing the first user the second user's name.

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-16326 | consul-mcp-server vulnerable to cross-tenant credential reuse in streamable-HTTP stateless mode | critical | 10.0 | - | No | 2026-07-29 |
| CVE-2026-16498 | terraform-mcp-server vulnerable to cross-tenant credential reuse in streamable-HTTP stateless mode | critical | 10.0 | - | No | 2026-07-28 |
| CVE-2026-97888 | Apache TomEE: Caller identity leaks across requests in embedded HTTP server | critical | 9.8 | - | No | 2026-11-10 |
| CVE-2026-111245 | Apache TomEE: Privilege escalation via WS-Security caller identity leaking between requests | critical | 9.8 | - | No | 2026-11-10 |
| CVE-2026-19931 | Negotiate ambient user conn reuse | critical | 9.8 | - | No | 2026-09-06 |
| CVE-2024-38367 | CoacoaPods trunk sessions verification step could be manipulated for owner session hijacking | critical | 9.6 | - | No | 2024-07-01 |
| CVE-2026-130838 | Radicale 3.3.0 before 3.8.3 Authorization Bypass via Stale Group Memberships | critical | 9.1 | - | No | 2026-11-17 |
| CVE-2026-86411 | FTP connection reuse inherits client-certificate | critical | 9.1 | - | No | 2026-10-20 |
| CVE-2025-47928 | Spotipy repo vulnerable to secrets exfiltration via \`pull\_request\_target\` | critical | 9.1 | - | No | 2025-05-15 |
| CVE-2026-52911 | ksmbd: scope conn-\>binding slowpath to bound sessions only | high | 8.8 | - | No | 2026-06-21 |
| CVE-2024-6162 | Undertow: url-encoded request path information can be broken on ajp-listener | high | 8.7 | - | No | 2024-06-20 |
| CVE-2026-115419 | Unintended disclosure of data element to wrong session in Strands Agents SDK A2A Server | high | 8.6 | - | No | 2026-10-22 |

## Related attack patterns (CAPEC)

- [CAPEC-59](https://radicalnotion.ai/capec/capec-59): Session Credential Falsification through Prediction
- [CAPEC-60](https://radicalnotion.ai/capec/capec-60): Reusing Session IDs (aka Session Replay)

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-668](https://radicalnotion.ai/cwe/cwe-668) | Exposure of Resource to Wrong Sphere |
| Related | [CWE-567](https://radicalnotion.ai/cwe/cwe-567) | Unsynchronized Access to Shared Data in a Multithreaded Context |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Data Leaking Between Users | - | - |

## Frequently asked questions

### What is CWE-488?

The product does not sufficiently enforce boundaries between the states of different sessions, causing data to be provided to, or used by, the wrong session.

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

57 recorded CVEs are attributed to CWE-488, including CVE-2026-16326, CVE-2026-16498 and CVE-2026-97888.

### How do you prevent CWE-488?

Protect the application's sessions from information leakage. Make sure that a session's data is not used or visible by other sessions.

### How is CWE-488 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-488?

Exploiting CWE-488 can lead to: Read Application Data.

### Is CWE-488 actively exploited?

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

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

---

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