CWE-648: Incorrect Use of Privileged APIs
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.
Last updated
Overview
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.
Real-world CVEs
66 recorded CVEs are caused by CWE-648 (Incorrect Use of Privileged APIs), including 2 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 16 new CWE-648 CVEs have been recorded so far in 2026 (14 in 2025).
- CVE-2026-76460CISA KEV
Cisco Identity Services Engine Authentication Bypass Vulnerability
Critical · CVSS 10.0 · EPSS 100th2026-09-16 - CVE-2026-20122CISA KEV
Cisco Catalyst SD-WAN Manager Arbitrary File Overwrite Vulnerability
High · CVSS 8.6 · EPSS 98th2026-02-25 - CVE-2024-8785
WhatsUp Gold Registry Overwrite Remote Code Execution Vulnerability
Critical · CVSS 9.8 · EPSS 96th2024-12-02 - CVE-2024-11068
D-Link DSL6740C - Incorrect Use of Privileged APIs
Critical · CVSS 9.8 · EPSS 68th2024-11-11 - CVE-2023-4972
Information Disclosure in Digital Yepas
Critical · CVSS 9.8 · EPSS 53th2023-09-14 - CVE-2022-2023
Incorrect Use of Privileged APIs in polonel/trudesk
Critical · CVSS 9.8 · EPSS 88th2022-06-20 - CVE-2019-14813Critical · CVSS 9.8 · EPSS 96th2019-09-06
- CVE-2019-1010178Critical · CVSS 9.8 · EPSS 92th2019-07-24
- CVE-2026-35639
OpenClaw < 2026.3.22 - Privilege Escalation via device.pair.approve Scope Validation
Critical · CVSS 9.4 · EPSS 41th2026-04-09 - CVE-2026-35663
OpenClaw < 2026.3.25 - Privilege Escalation via Backend Reconnect Scope Self-Claim
Critical · CVSS 9.3 · EPSS 21th2026-04-10 - CVE-2026-41386
OpenClaw < 2026.3.22 - Privilege Escalation via Unbound Bootstrap Setup Codes
Critical · CVSS 9.1 · EPSS 26th2026-04-28 - CVE-2024-37018Critical · CVSS 9.1 · EPSS 38th2024-05-31
Showing 12 of 66 recorded CWE-648 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsCommon consequences
What can happen when CWE-648 is exploited.
Gain Privileges or Assume Identity
Affects: Access Control
An attacker may be able to elevate privileges.
Read Application Data
Affects: Confidentiality
An attacker may be able to obtain sensitive information.
Execute Unauthorized Code or Commands
Affects: Integrity, Confidentiality, Availability
An attacker may be able to execute code.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-648, grouped by where in the lifecycle they apply.
Before calling privileged APIs, always ensure that the assumptions made by the privileged code hold true prior to making the call.
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.
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.
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.
Only call privileged APIs from safe, consistent and expected state.
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).
Illustrative examples
Real CVEs that MITRE cites as examples of this weakness.
- 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.
Attack patterns
CAPEC attack patterns that exploit this weakness.
Frequently asked questions
Common questions about CWE-648.
- What is CWE-648?
- 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.
- What CVEs are caused by CWE-648?
- 66 recorded CVEs are attributed to CWE-648, including CVE-2026-76460, CVE-2026-20122 and CVE-2024-8785. 2 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- How do you prevent CWE-648?
- Before calling privileged APIs, always ensure that the assumptions made by the privileged code hold true prior to making the call.
- What are the consequences of CWE-648?
- Exploiting CWE-648 can lead to: Gain Privileges or Assume Identity, Read Application Data, Execute Unauthorized Code or Commands.
- Is CWE-648 actively exploited?
- Yes. 2 CWE-648 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 66 recorded CVEs.
References
- MITRE CWE definition (CWE-648) (opens in a new tab)
- CWE-648 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-648 CVEs
Get an alert when a new CWE-648 CVE affects your products, with AI-written analysis and remediation steps.