---
title: "CWE-402: Transmission of Private Resources into a New Sphere"
url: https://radicalnotion.ai/cwe/cwe-402
type: cwe
description: "The product makes resources available to untrusted parties when those resources are only intended to be accessed by the product."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-402: Transmission of Private Resources into a New Sphere

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

## Description

The product makes resources available to untrusted parties when those resources are only intended to be accessed by the product.

## Alternate terms

- Resource Leak

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | - |

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

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2003-0740 | Server leaks a privileged file descriptor, allowing the server to be hijacked. |
| CVE-2004-1033 | File descriptor leak allows read of restricted files. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2021-23264 | Transmission of Private Resources into a New Sphere ('Resource Leak') and Exposure of Resource to Wrong Sphere in Crafter Search | critical | 9.1 | - | No | 2021-12-02 |
| CVE-2025-29925 | XWiki allows unregistered users to access private pages information through REST endpoint | high | 8.7 | - | No | 2025-03-19 |
| CVE-2021-31410 | Project sources exposure in Vaadin Designer | high | 8.6 | - | No | 2021-04-23 |
| CVE-2021-31407 | Server classes and resources exposure in OSGi applications using Vaadin 12-14 and 19 | high | 8.6 | - | No | 2021-04-23 |
| CVE-2025-48383 | Django-Select2 Vulnerable to Widget Instance Secret Cache Key Leaking | high | 8.2 | - | No | 2025-05-27 |
| CVE-2025-32360 | - | high | 8.1 | - | No | 2025-04-05 |
| CVE-2021-47160 | net: dsa: mt7530: fix VLAN traffic leaks | high | 8.1 | - | No | 2024-03-25 |
| CVE-2022-48720 | net: macsec: Fix offload support for NETDEV\_UNREGISTER event | high | 7.8 | - | No | 2024-06-20 |
| CVE-2025-67745 | Myhoard logs backup encryption key in plain text | high | 7.5 | - | No | 2025-12-18 |
| CVE-2024-41079 | nvmet: always initialize cqe.result | high | 7.5 | - | No | 2024-07-29 |
| CVE-2024-26834 | netfilter: nft\_flow\_offload: release dst in case direct xmit path is used | high | 7.5 | - | No | 2024-04-17 |
| CVE-2024-29900 | @electron/packager's build process memory potentially leaked into final executable | high | 7.5 | - | No | 2024-03-29 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-668](https://radicalnotion.ai/cwe/cwe-668) | Exposure of Resource to Wrong Sphere |
| Child | [CWE-403](https://radicalnotion.ai/cwe/cwe-403) | Exposure of File Descriptor to Unintended Control Sphere |
| Child | [CWE-619](https://radicalnotion.ai/cwe/cwe-619) | Dangling Database Cursor |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Resource leaks | - | - |

## Frequently asked questions

### What is CWE-402?

The product makes resources available to untrusted parties when those resources are only intended to be accessed by the product.

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

89 recorded CVEs are attributed to CWE-402, including CVE-2021-23264, CVE-2025-29925 and CVE-2021-31410.

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

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

### Is CWE-402 actively exploited?

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

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

---

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