CWEweakness

CWE-270 Privilege Context Switching Error

Official page ↗
Abstraction
Base
Structure
Simple
Status
Draft
Languages
Not Language-Specific
CWE version
5.0

Description

The product does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control.

Common consequences

• Access Control: Gain Privileges or Assume Identity — A user can assume the identity of another user with separate privileges in another context. This will give the user unauthorized access that may allow them to acquire the access information of other users.

Potential mitigations

• [Architecture and Design, Operation] Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software. • [Architecture and Design, Operation] Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations. • [Architecture and Design] Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.

Observed examples

• CVE-2002-1688: Web browser cross domain problem when user hits "back" button. • CVE-2003-1026: Web browser cross domain problem when user hits "back" button. • CVE-2002-1770: Cross-domain issue - third party product passes code to web browser, which executes it in unsafe zone. • CVE-2005-2263: Run callback in different security context after it has been changed from untrusted to trusted. * note that "context switch before actions are completed" is one type of problem that happens frequently, espec. in browsers.

Related

Attack pattern · CAPEC (3)

  • CAPEC-17 Using Malicious Files attack pattern
  • CAPEC-30 Hijacking a Privileged Thread of Execution attack pattern
  • CAPEC-35 Leverage Executable Code in Non-Executable Files attack pattern

Observed example · CVE (4)

  • CVE-2005-2263 The InstallTrigger.install method in Firefox before 1.0.5 and Mozilla before 1.7.9 allows remote attackers to execute a callback function… vulnerability
  • CVE-2003-1026 Internet Explorer 5.01 through 6 SP1 allows remote attackers to bypass zone restrictions via a javascript protocol URL in a sub-frame,… vulnerability
  • CVE-2002-1688 The browser history feature in Microsoft Internet Explorer 5.5 through 6.0 allows remote attackers to execute arbitrary script as other… vulnerability
  • CVE-2002-1770 Qualcomm Eudora 5.1 allows remote attackers to execute arbitrary code via an HTML e-mail message that uses a file:// URL in a t:video tag… vulnerability

Child of · CWE (1)

  • CWE-269 Improper Privilege Management weakness

Referenced by CAPEC · weakness (3)

  • CAPEC-17 Using Malicious Files attack pattern
  • CAPEC-30 Hijacking a Privileged Thread of Execution attack pattern
  • CAPEC-35 Leverage Executable Code in Non-Executable Files attack pattern

Referenced by CVE · weakness (27)

  • CVE-2026-88200 Privilege context switching error in Microsoft Office SharePoint allows an authorized attacker to elevate privileges over a network. vulnerability
  • CVE-2026-9560 Privilege escalation via background service of OpenVPN Connect 3.5.1 through 3.8.1 on macOS allows attackers to execute arbitrary commands… vulnerability
  • CVE-2026-34853 Permission bypass vulnerability in the LBS module. vulnerability
  • CVE-2025-55210 FreePBX is an open-source web-based graphical user interface (GUI) that manages Asterisk. vulnerability
  • CVE-2025-60721 Privilege context switching error in Windows Administrator Protection allows an authorized attacker to elevate privileges locally. vulnerability
  • CVE-2025-9408 System call entry on Cortex M (and possibly R and A, but I think not) has a race which allows very practical privilege escalation for… vulnerability
  • CVE-2025-26499 Under heavy system utilization a random race condition can occur during authentication or token refresh operation. vulnerability
  • CVE-2025-46406 A Privilege Context Switching Error (CWE-270) in the Command Center Server could allow a privileged Operator with high level access in one… vulnerability
  • CVE-2025-49581 XWiki is a generic wiki platform. vulnerability
  • CVE-2025-49583 XWiki is a generic wiki platform. vulnerability
  • CVE-2024-46975 Kernel software installed and running inside a Guest VM may exploit memory shared with the GPU Firmware to write data into another Guest's… vulnerability
  • CVE-2024-12570 An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.7 prior to 17.4.6, from 17.5 prior to 17.5.4, and from… vulnerability
  • CVE-2024-11263 When the Global Pointer (GP) relative addressing is enabled (CONFIG_RISCV_GP=y), the gp reg points at 0x800 bytes past the start of the… vulnerability
  • CVE-2024-36513 A privilege context switching error vulnerability [CWE-270] in FortiClient Windows version 7.2.4 and below, version 7.0.12 and below, 6.4… vulnerability
  • CVE-2024-51987 Duende.AccessTokenManagement.OpenIdConnect is a set of .NET libraries that manage OAuth and OpenId Connect access tokens. vulnerability
  • CVE-2024-47173 Aimeos is an e-commerce framework. vulnerability
  • CVE-2024-8641 An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.7 prior to 17.1.7, from 17.2 prior to 17.2.5, and from… vulnerability
  • CVE-2024-37294 Aimeos is an Open Source e-commerce framework for online shops. vulnerability
  • CVE-2023-37912 XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. vulnerability
  • CVE-2023-25754 Privilege Context Switching Error vulnerability in Apache Software Foundation Apache Airflow.This issue affects Apache Airflow: before… vulnerability
  • CVE-2023-26475 XWiki Platform is a generic wiki platform. vulnerability
  • CVE-2020-1719 A flaw was found in wildfly. vulnerability
  • CVE-2021-3493 The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file capabilities… vulnerability
  • CVE-2020-7020 Elasticsearch versions before 6.8.13 and 7.9.2 contain a document disclosure flaw when Document or Field Level Security is used. vulnerability
  • CVE-2020-7019 In Elasticsearch before 7.9.0 and 6.8.12 a field disclosure flaw was found when running a scrolling search with Field Level Security. vulnerability
  • CVE-2019-14819 A flaw was found during the upgrade of an existing OpenShift Container Platform 3.x cluster. vulnerability
  • CVE-2017-2663 It was found that subscription-manager's DBus interface before 1.19.4 let unprivileged user access the com.redhat.RHSM1.Facts.GetFacts and… vulnerability

Referenced by CWE · has member (1)