Skip to content

CWE-266: Incorrect Privilege Assignment

Base

A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.

Consequences

  • Access Control: Gain Privileges or Assume Identity

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

Recent advisories

  • GHSA-gr2m-v5gq-v685 — Electron: Windows opened from a sandboxed top-level document do not inherit its sandbox restrictions
  • GHSA-3w57-8xmc-8v26 — AnyIO run_process/open_process ignores extra_groups and can retain parent supplementary groups
  • GHSA-rh79-75qm-gwjr — Gitea LFS Deploy-Key Privilege Escalation
  • GHSA-rvmm-v933-jgxq — Craft CMS: Missing authorization check allows non-admin control panel users access to user registration metrics
  • GHSA-8qpj-27x8-pwpq — Langflow: PythonREPLComponent executes unsandboxed Python code, enabling authenticated RCE and privilege escalation
  • GHSA-m2v5-74w2-qhcj — BerriAI litellm: UI User Enumeration leads to System-Wide Information Disclosure
  • GHSA-qmf3-4767-5fg3 — LiteLLM: M2M JWT Handler Has Improper Authorization
  • GHSA-6qr3-3g89-m4jj — LiteLLM: Admin Key Handler Has Improper Authorization
  • GHSA-6jcq-6546-qrrw — PraisonAI SandlockSandbox falls back to unrestricted subprocess execution when Landlock is unavailable
  • GHSA-9v8j-9c9g-w66c — OpenClaw: Bootstrap token replay could widen pending pairing scopes
  • GHSA-x629-46cc-7xgw — OpenClaw: Active Memory write scope could mutate global config
  • GHSA-6fvr-66p3-3qj4 — OpenClaw: Hook-triggered CLI runs could receive owner MCP tool authority
  • GHSA-7fg5-vc77-69fp — Dolibarr ERP CRM is vulnerable to Improper Authorization through its Leave Request REST API
  • GHSA-q623-f4j4-p4xj — OpenStack Keystone has an Incorrect Authorization issue
  • GHSA-32h4-44jj-c5vx — Keycloak has privilege escalation via improper scope mapping enforcement

All advisories for CWE-266

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor