CyberSecBulletin

Privilege Context Switching Error

CWE-270

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

We track 11 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.3. 1 has been exploited in real attacks.

How this weakness is prevented

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

Latest Privilege Context Switching Error vulnerabilities

  • 7.8 High severity

    OpenVPN Connect: Improper Neutralization of Special Elements used in an OS Command

    CVE-2026-9560OpenVPN

    Privilege escalation via background service of OpenVPN Connect 3.5.1 through 3.8.1 on macOS allows attackers to execute arbitrary commands with elevated privileges via local IPC channel

  • 7.5 High severity

    api: Privilege Context Switching Error

    CVE-2025-55210FreePBX

    FreePBX is an open-source web-based graphical user interface (GUI) that manages Asterisk. Prior to 17.0.5 and 16.0.17, FreePBX module api (PBX API) is vulnerable to privilege escalation by authenticated users with REST/GraphQL API access. This vulnerability al

  • 8.1 High severity

    Zephyr: Privilege Context Switching Error

    CVE-2025-9408Zephyrproject-rtos

    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 malicious userspace processes.

  • 8.8 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2025-49581XWiki

    XWiki is a generic wiki platform. Any user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation. The main pr

  • 7.9 High severity

    Graphics DDK: Privilege Context Switching Error

    CVE-2024-46975Imagination Technologies

    Kernel software installed and running inside a Guest VM may exploit memory shared with the GPU Firmware to write data into another Guest's virtualised GPU memory.

  • 8.4 High severity

    Zephyr: Privilege Context Switching Error

    CVE-2024-11263Zephyrproject-rtos

    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 .sdata section which is then used by the linker to relax accesses to global symbols.

  • 8.8 High severity

    FortiClientWindows: Privilege Context Switching Error

    CVE-2024-36513Fortinet

    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 all versions may allow an authenticated user to escalate their privileges via lua auto patch scripts.

  • 8.8 High severity

    GitLab: Privilege Context Switching Error

    CVE-2024-8641GitLab

    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 17.3 prior to 17.3.2. It may have been possible for an attacker with a victim's CI_JOB_TOKEN to obtain a GitLab session

  • 8.8 High severity

    xwiki-rendering: Privilege Context Switching Error

    CVE-2023-37912XWikiEPSS 1.45%

    XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. Prior to version 14.10.6 of `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` and `org.xwiki.platform:xwiki-rendering-macro-footnotes` and

  • 8.8 High severity

    xwiki-platform: Improper Privilege Management

    CVE-2023-26475XWikiEPSS 63.6%

    XWiki Platform is a generic wiki platform. Starting in version 2.3-milestone-1, the annotation displayer does not execute the content in a restricted context. This allows executing anything with the right of the author of any document by annotating the documen

  • 7.8 High severity

    Linux Kernel Privilege Escalation Exploited

    CVE-2021-3493UbuntuEPSS 49.2%

    The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file capabilities on files in an underlying file system. Due to the combination of unprivileged user namespaces along with a patch carried