---
title: "CWE-648: Incorrect Use of Privileged APIs"
url: https://radicalnotion.ai/cwe/cwe-648
type: cwe
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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-648: Incorrect Use of Privileged APIs

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **Likelihood of exploit:** Low
- **CVEs with this as primary weakness:** 74
- **Of those, in CISA KEV:** 2
- **New in 2026:** 19
- **CWE catalog version:** 4.21

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

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.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| 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 | Description |
| --- | --- |
| 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. |

## Real CVEs with this weakness (sample of 12 of 74)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-76460 | Cisco Identity Services Engine Authentication Bypass Vulnerability | critical | 10.0 | - | Yes | 2026-09-16 |
| CVE-2026-20122 | Cisco Catalyst SD-WAN Manager Arbitrary File Overwrite Vulnerability | high | 8.6 | - | Yes | 2026-02-25 |
| CVE-2024-8785 | WhatsUp Gold Registry Overwrite Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2024-12-02 |
| CVE-2024-11068 | D-Link DSL6740C - Incorrect Use of Privileged APIs | critical | 9.8 | - | No | 2024-11-11 |
| CVE-2023-4972 | Information Disclosure in Digital Yepas | critical | 9.8 | - | No | 2023-09-14 |
| CVE-2022-2023 | Incorrect Use of Privileged APIs in polonel/trudesk | critical | 9.8 | - | No | 2022-06-20 |
| CVE-2019-14813 | ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443) | critical | 9.8 | - | No | 2019-09-06 |
| CVE-2019-1010178 | - | critical | 9.8 | - | No | 2019-07-24 |
| CVE-2026-35639 | OpenClaw \< 2026.3.22 - Privilege Escalation via device.pair.approve Scope Validation | critical | 9.4 | - | No | 2026-04-09 |
| CVE-2026-35663 | OpenClaw \< 2026.3.25 - Privilege Escalation via Backend Reconnect Scope Self-Claim | critical | 9.3 | - | No | 2026-04-10 |
| CVE-2026-41386 | OpenClaw \< 2026.3.22 - Privilege Escalation via Unbound Bootstrap Setup Codes | critical | 9.1 | - | No | 2026-04-28 |
| CVE-2024-37018 | - | critical | 9.1 | - | No | 2024-05-31 |

## Related attack patterns (CAPEC)

- [CAPEC-107](https://radicalnotion.ai/capec/capec-107): Cross Site Tracing
- [CAPEC-234](https://radicalnotion.ai/capec/capec-234): Hijacking a privileged process

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-269](https://radicalnotion.ai/cwe/cwe-269) | Improper Privilege Management |

## Frequently asked questions

### 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?

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

### How is CWE-648 detected?

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

### 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 74 recorded CVEs.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/648.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-648). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
