CWE•Base•Incomplete•18 recent CVEs
CWE-648Incorrect Use of Privileged APIs
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.
[object Object]
Common consequences
- Access Control→Gain Privileges or Assume IdentityAn attacker may be able to elevate privileges.
- Confidentiality→Read Application DataAn attacker may be able to obtain sensitive information.
- Integrity,Confidentiality,Availability→Execute Unauthorized Code or CommandsAn attacker may be able to execute code.
Potential mitigations
- ImplementationBefore calling privileged APIs, always ensure that the assumptions made by the privileged code hold true prior to making the call.
- Architecture and DesignKnow 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.
- ImplementationIf 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.
- ImplementationIf 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.
- ImplementationOnly call privileged APIs from safe, consistent and expected state.
- ImplementationEnsure 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).
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-95607.82026-05-26CVE-2026-412259.12026-05-13CVE-2026-413869.12026-04-28CVE-2026-413299.92026-04-21CVE-2026-356698.82026-04-10CVE-2026-356638.82026-04-10CVE-2026-356458.12026-04-09CVE-2026-356398.82026-04-09CVE-2026-356257.82026-04-09CVE-2025-11617.12025-12-10CVE-2025-632915.42025-11-14CVE-2025-59978.82025-07-28CVE-2025-23119.02025-03-20CVE-2023-65227.22024-04-05CVE-2023-49937.52024-02-15CVE-2023-61517.52023-11-28CVE-2023-61507.52023-11-28CVE-2023-49729.82023-09-14