---
title: "CWE-668: Exposure of Resource to Wrong Sphere"
url: https://radicalnotion.ai/cwe/cwe-668
type: cwe
description: "The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-668: Exposure of Resource to Wrong Sphere

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

## Description

The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.

Resources such as files and directories may be inadvertently exposed through mechanisms such as insecure permissions, or when a program accidentally operates on the wrong object. For example, a program may intend that private files can only be provided to a specific user. This effectively defines a control sphere that is intended to prevent attackers from accessing these private files. If the file permissions are insecure, then parties other than the user will be able to access those files.

A separate control sphere might effectively require that the user can only access the private files, but not any other files on the system. If the program does not ensure that the user is only requesting private files, then the user might be able to access other files on the system.

In either case, the end result is that a resource has been exposed to the wrong party.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | An adversary that gains access to a resource exposed to a wrong sphere could potentially retrieve private data from that resource, thus breaking the intended confidentiality of that data. |
| Integrity | Modify Application Data | An adversary that gains access to a resource exposed to a wrong sphere could potentially modify data held within that resource, thus breaking the intended integrity of that data and causing the system relying on that resource to make unintended decisions. |
| Other | Varies by Context | The consequences may vary widely depending on how the product uses the affected resource. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-128797 | Web administration panel exposed over public IPv6 | critical | 10.0 | - | No | 2026-11-24 |
| CVE-2026-92940 | vm2 3.11.3 through 3.11.6 HTTPS Credential Exposure via globalAgent | critical | 10.0 | - | No | 2026-09-17 |
| CVE-2025-2857 | Incorrect handle could lead to sandbox escapes | critical | 10.0 | - | No | 2025-03-27 |
| CVE-2019-8779 | iOS and iPadOS: Sandbox - Third party app extensions may not receive the correct sandbox restrictions | critical | 10.0 | - | No | 2019-12-18 |
| CVE-2012-1846 | - | critical | 10.0 | - | No | 2012-03-22 |
| CVE-2022-1467 | AVEVA InTouch Access Anywhere Exposure of Resource to Wrong Sphere | critical | 9.9 | - | No | 2022-05-23 |
| CVE-2019-16541 | Jenkins JIRA Plugin allows users to select and use credentials with System scope | critical | 9.9 | - | No | 2019-11-21 |
| CVE-2026-45411 | vm2: Sandbox Breakout Using Async Generator | critical | 9.8 | - | No | 2026-05-13 |
| CVE-2026-44009 | vm2: Sandbox Breakout Through Null Proto Exception | critical | 9.8 | - | No | 2026-05-13 |
| CVE-2026-44008 | vm2 has sandbox breakout via \`neutralizeArraySpeciesBatch\` | critical | 9.8 | - | No | 2026-05-13 |
| CVE-2026-20160 | Cisco Smart Software Manager On-Prem Arbitrary Command Execution Vulnerability | critical | 9.8 | - | No | 2026-04-01 |
| CVE-2024-5660 | - | critical | 9.8 | - | No | 2024-12-10 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-664](https://radicalnotion.ai/cwe/cwe-664) | Improper Control of a Resource Through its Lifetime |
| Child | [CWE-8](https://radicalnotion.ai/cwe/cwe-8) | J2EE Misconfiguration: Entity Bean Declared Remote |
| Child | [CWE-134](https://radicalnotion.ai/cwe/cwe-134) | Use of Externally-Controlled Format String |
| Child | [CWE-200](https://radicalnotion.ai/cwe/cwe-200) | Exposure of Sensitive Information to an Unauthorized Actor |
| Child | [CWE-374](https://radicalnotion.ai/cwe/cwe-374) | Passing Mutable Objects to an Untrusted Method |
| Child | [CWE-375](https://radicalnotion.ai/cwe/cwe-375) | Returning a Mutable Object to an Untrusted Caller |
| Child | [CWE-402](https://radicalnotion.ai/cwe/cwe-402) | Transmission of Private Resources into a New Sphere |
| Child | [CWE-426](https://radicalnotion.ai/cwe/cwe-426) | Untrusted Search Path |
| Child | [CWE-427](https://radicalnotion.ai/cwe/cwe-427) | Uncontrolled Search Path Element |
| Child | [CWE-428](https://radicalnotion.ai/cwe/cwe-428) | Unquoted Search Path or Element |
| Child | [CWE-488](https://radicalnotion.ai/cwe/cwe-488) | Exposure of Data Element to Wrong Session |
| Child | [CWE-491](https://radicalnotion.ai/cwe/cwe-491) | Public cloneable() Method Without Final |
| Child | [CWE-492](https://radicalnotion.ai/cwe/cwe-492) | Use of Inner Class Containing Sensitive Data |
| Child | [CWE-495](https://radicalnotion.ai/cwe/cwe-495) | Private Data Structure Returned From A Public Method |
| Child | [CWE-496](https://radicalnotion.ai/cwe/cwe-496) | Public Data Assigned to Private Array-Typed Field |
| Child | [CWE-498](https://radicalnotion.ai/cwe/cwe-498) | Cloneable Class Containing Sensitive Information |
| Child | [CWE-499](https://radicalnotion.ai/cwe/cwe-499) | Serializable Class Containing Sensitive Data |
| Child | [CWE-522](https://radicalnotion.ai/cwe/cwe-522) | Insufficiently Protected Credentials |
| Child | [CWE-524](https://radicalnotion.ai/cwe/cwe-524) | Use of Cache Containing Sensitive Information |
| Child | [CWE-552](https://radicalnotion.ai/cwe/cwe-552) | Files or Directories Accessible to External Parties |
| Child | [CWE-642](https://radicalnotion.ai/cwe/cwe-642) | External Control of Critical State Data |
| Child | [CWE-732](https://radicalnotion.ai/cwe/cwe-732) | Incorrect Permission Assignment for Critical Resource |
| Child | [CWE-767](https://radicalnotion.ai/cwe/cwe-767) | Access to Critical Private Variable via Public Method |
| Child | [CWE-1189](https://radicalnotion.ai/cwe/cwe-1189) | Improper Isolation of Shared Resources on System-on-a-Chip (SoC) |
| Child | [CWE-1282](https://radicalnotion.ai/cwe/cwe-1282) | Assumed-Immutable Data is Stored in Writable Memory |
| Child | [CWE-1331](https://radicalnotion.ai/cwe/cwe-1331) | Improper Isolation of Shared Resources in Network On Chip (NoC) |
| Related | [CWE-22](https://radicalnotion.ai/cwe/cwe-22) | Improper Limitation of a Pathname to a Restricted Directory |
| Related | [CWE-441](https://radicalnotion.ai/cwe/cwe-441) | Unintended Proxy or Intermediary |
| Related | [CWE-942](https://radicalnotion.ai/cwe/cwe-942) | Permissive Cross-domain Security Policy with Untrusted Domains |

## Frequently asked questions

### What is CWE-668?

The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.

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

508 recorded CVEs are attributed to CWE-668, including CVE-2026-128797, CVE-2026-92940 and CVE-2025-2857.

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

Exploiting CWE-668 can lead to: Read Application Data, Modify Application Data, Varies by Context.

### Is CWE-668 actively exploited?

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

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

---

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