CWEweakness
CWE-648 Incorrect Use of Privileged APIs
Low
Official page ↗
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Likelihood of exploit
- Low
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly.
Extended description
When a product contains certain functions that perform operations requiring an elevated level of privilege, the caller of a privileged API must be careful to:
• ensure that assumptions made by the APIs are valid, such as validity of arguments
• account for known weaknesses in the design/implementation of the API
• call the API from a safe context
If the caller of the API does not follow these requirements, then it may allow a malicious user or process to elevate their privilege, hijack the process, or steal sensitive data.
For instance, it is important to know if privileged APIs do not shed their privileges before returning to the caller or if the privileged function might make certain assumptions about the data, context or state information passed to it by the caller. It is important to always know when and how privileged APIs can be called in order to ensure that their elevated level of privilege cannot be exploited.
Common consequences
• Access Control: Gain Privileges or Assume Identity — An attacker may be able to elevate privileges.
• Confidentiality: Read Application Data — An attacker may be able to obtain sensitive information.
• Integrity, Confidentiality, Availability: Execute Unauthorized Code or Commands — An attacker may be able to execute code.
Potential mitigations
• [Implementation] Before calling privileged APIs, always ensure that the assumptions made by the privileged code hold true prior to making the call.
• [Architecture and Design] Know architecture and implementation weaknesses of the privileged APIs and make sure to account for these weaknesses before calling the privileged APIs to ensure that they can be called safely.
• [Implementation] If privileged APIs make certain assumptions about data, context or state validity that are passed by the caller, the calling code must ensure that these assumptions have been validated prior to making the call.
• [Implementation] If privileged APIs do not shed their privilege prior to returning to the calling code, then calling code needs to shed these privileges immediately and safely right after the call to the privileged APIs. In particular, the calling code needs to ensure that a privileged thread of execution will never be returned to the user or made available to user-controlled processes.
• [Implementation] Only call privileged APIs from safe, consistent and expected state.
• [Implementation] Ensure that a failure or an error will not leave a system in a state where privileges are not properly shed and privilege escalation is possible (i.e. fail securely with regards to handling of privileges).
Detection methods
• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Observed examples
• CVE-2003-0645: A Unix utility that displays online help files, if installed setuid, could allow a local attacker to gain privileges when a particular file-opening function is called.
Related
Attack pattern · CAPEC (2)
Observed example · CVE (1)
- CVE-2003-0645 man-db 2.3.12 and 2.3.18 to 2.4.1 uses certain user-controlled DEFINE directives from the ~/.manpath file, even when running setuid, which… vulnerability
Child of · CWE (1)
- CWE-269 Improper Privilege Management weakness
Referenced by CAPEC · weakness (2)
Referenced by CVE · weakness (69)
- CVE-2026-112177 A flaw was found in Ghostscript as shipped with Red Hat Enterprise Linux 8. vulnerability
- CVE-2026-76460 A vulnerability in an API of Cisco Identity Services Engine (ISE) could allow an unauthenticated, remote attacker to bypass authentication. vulnerability
- CVE-2026-63727 Anchore Enterprise versions from 5.11.0 to 5.27.1 and 6.0.0 contain an improper privilege escalation vulnerability in the user management… vulnerability
- CVE-2026-54424 An Incorrect Use of Privileged APIs vulnerability in Unity Parsec on Windows hosts leads to a potential Elevation of Privilege. vulnerability
- CVE-2026-11877 An unauthorized user can modify configuration through API calls that affects the OpenText Access Manager. 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-41225 A vulnerability exists in iControl REST where a highly privileged, authenticated attacker with at least the Manager role can create… vulnerability
- CVE-2026-41386 OpenClaw before 2026.3.22 contains a privilege escalation vulnerability where bootstrap setup codes are not bound to intended device roles… vulnerability
- CVE-2026-41329 OpenClaw before 2026.3.31 contains a sandbox bypass vulnerability allowing attackers to escalate privileges via heartbeat context… vulnerability
- CVE-2025-54502 Incorrect use of boot service in the AMD Platform Configuration Blob (APCB) SMM driver could allow a privileged attacker with local access… vulnerability
- CVE-2026-35663 OpenClaw before 2026.3.25 contains a privilege escalation vulnerability allowing non-admin operators to self-request broader scopes during… vulnerability
- CVE-2026-35669 OpenClaw before 2026.3.25 contains a privilege escalation vulnerability in gateway-authenticated plugin HTTP routes that incorrectly mint… vulnerability
- CVE-2026-35625 OpenClaw before 2026.3.25 contains a privilege escalation vulnerability where silent local shared-auth reconnects auto-approve… vulnerability
- CVE-2026-35639 OpenClaw before 2026.3.22 contains a privilege escalation vulnerability in the device.pair.approve method that allows an operator.pairing… vulnerability
- CVE-2026-35645 OpenClaw before 2026.3.25 contains a privilege escalation vulnerability in the gateway plugin subagent fallback deleteSession function that… vulnerability
- CVE-2026-20122 A vulnerability in the API of Cisco Catalyst SD-WAN Manager could allow an authenticated, remote attacker to overwrite arbitrary files on… vulnerability
- CVE-2026-20126 A vulnerability in Cisco Catalyst SD-WAN Manager could allow an authenticated, local attacker with low privileges to gain root privileges… vulnerability
- CVE-2026-22922 Apache Airflow versions 3.1.0 through 3.1.6 contain an authorization flaw that can allow an authenticated user with custom permissions… vulnerability
- CVE-2025-1161 Incorrect Use of Privileged APIs vulnerability in NomySoft Information Technology Training and Consulting Inc. vulnerability
- CVE-2025-63291 When processing API requests, the Alteryx server 2022.1.1.42654 and 2024.1 used MongoDB object IDs to uniquely identify the data being… vulnerability
- CVE-2024-32008 A vulnerability has been identified in Spectrum Power 4 (All versions < V4.70 SP12 Update 2). vulnerability
- CVE-2025-54765 An API endpoint that should be limited to web application administrators is hidden from, but accessible by, lower-level read only web… vulnerability
- CVE-2025-54766 An API endpoint that should be limited to web application administrators is hidden from, but accessible by, lower-level read only web… vulnerability
- CVE-2025-54767 An authenticated, read-only user can kill any processes running on the Xormon Original virtual appliance as the lpar2rrd user. vulnerability
- CVE-2025-54768 An API endpoint that should be limited to web application administrators is hidden from, but accessible by, lower-level read only web… vulnerability
- CVE-2025-54769 An authenticated, read-only user can upload a file and perform a directory traversal to have the uploaded file placed in a location of… vulnerability
- CVE-2025-5997 Incorrect Use of Privileged APIs vulnerability in Beamsec PhishPro allows Privilege Abuse. vulnerability
- CVE-2025-7344 The EAI developed by Digiwin has a Privilege Escalation vulnerability, allowing remote attackers with regular privileges to elevate their… vulnerability
- CVE-2025-23375 Dell PowerProtect Data Manager Reporting, version(s) 19.17, contain(s) an Incorrect Use of Privileged APIs vulnerability. vulnerability
- CVE-2022-26323 Incorrect Use of Privileged APIs vulnerability in OpenText™ Operations Bridge Manager, OpenText™ Operations Bridge Suite (Containerized),… vulnerability
Referenced by CWE · has member (1)
- CWE-884 CWE Cross-section view