1. CVE archive
  2. Vulnerability types
  3. CWE-270
CWE-270 · #313 most frequent type in the archive

Privilege Context Switching Error

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

Part of: CWE-269 · Improper Privilege Management

22CVEs of this type in the archive
1critical (CVSS ≥ 9)
13high severity (7–8.9)
Nov 24, 2026latest published

What it is

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

Impact on systems

ScopeImpact
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.

How to prevent it

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 · Environment Hardening Run your code using the lowest privileges that are required to accomplish the necessary tasks. 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 · Separation of Privilege Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-270 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20181
20211
20232
20247
20256
20265

All CWE-270 CVEs

22 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.