CWE-269: Improper Privilege Management
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Last updated
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Last updated
3,638 recorded CVEs are caused by CWE-269 (Improper Privilege Management), including 31 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 1,322 new CWE-269 CVEs have been recorded so far in 2026 (336 in 2025).
Microsoft Exchange Server Elevation of Privilege Vulnerability
Improper Privilege Management in Tomcat
Local privilege escalation in Zammad v1.5.0 to v7.2.2 installed via DEB or RPM package
Adobe Flash Player Incorrect Default Permissions Vulnerability
Partner.Microsoft.Com Elevation of Privilege Vulnerability
Android Framework Privilege Escalation Vulnerability
SonicWall Email Security Improper Privilege Management Vulnerability
EyesOfNetwork Improper Privilege Management Vulnerability
Intel Active Management Technology (AMT), Small Business Technology (SBT), and Standard Manageability Privilege Escalation Vulnerability
Windows CSRSS Security Feature Bypass Vulnerability
Active Directory Domain Services Elevation of Privilege Vulnerability
MinIO is vulnerable to privilege escalation on Linux/MacOS
Showing 12 of 3,638 recorded CWE-269 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-269 is exploited.
Gain Privileges or Assume Identity
Affects: Access Control
Typically introduced during these phases of the software lifecycle.
Practical mitigations for CWE-269, grouped by where in the lifecycle they apply.
Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
Follow the principle of least privilege when assigning access rights to entities in a software system.
Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.
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.)
Effectiveness: High
MITRE examples of the weakness in code.
This code temporarily raises the program's privileges to allow creation of a new user folder.
Vulnerable example
def makeNewUserDir(username):
if invalidUsername(username):
#avoid CWE-22 and CWE-78
print('Usernames cannot contain invalid characters')
return False
try:
raisePrivileges()
os.mkdir('/home/' + username)
lowerPrivileges()
except OSError:
print('Unable to create new user directory for user:' + username)
return False
return TrueWhile the program only raises its privilege level to create the folder and immediately lowers it again, if the call to os.mkdir() throws an exception, the call to lowerPrivileges() will not occur. As a result, the program is indefinitely operating in a raised privilege state, possibly allowing further exploitation to occur.
The following example demonstrates the weakness.
Vulnerable example
seteuid(0);
/* do some stuff */
seteuid(getuid());The following example demonstrates the weakness.
Vulnerable example
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
// privileged code goes here, for example:
System.loadLibrary("awt");
return null;
// nothing to return
}This code intends to allow only Administrators to print debug information about a system.
Vulnerable example
public enum Roles {
ADMIN,USER,GUEST
}
public void printDebugInfo(User requestingUser){
if(isAuthenticated(requestingUser)){
switch(requestingUser.role){
case GUEST:
System.out.println("You are not authorized to perform this command");
break;
default:
System.out.println(currentDebugState());
break;
}
}
else{
System.out.println("You must be logged in to perform this command");
}
}While the intention was to only allow Administrators to print the debug information, the code as written only excludes those with the role of "GUEST". Someone with the role of "ADMIN" or "USER" will be allowed access, which goes against the original intent. An attacker may be able to use this debug information to craft an attack on the system.
This code allows someone with the role of "ADMIN" or "OPERATOR" to reset a user's password. The role of "OPERATOR" is intended to have fewer privileges than an "ADMIN", but still be able to help users with small issues such as forgotten passwords.
Vulnerable example
public enum Roles {
ADMIN,OPERATOR,USER,GUEST
}
public void resetPassword(User requestingUser, User user, String password ){
if(isAuthenticated(requestingUser)){
switch(requestingUser.role){
case GUEST:
System.out.println("You are not authorized to perform this command");
break;
case USER:
System.out.println("You are not authorized to perform this command");
break;
default:
setPassword(user,password);
break;
}
}
else{
System.out.println("You must be logged in to perform this command");
}
}This code does not check the role of the user whose password is being reset. It is possible for an Operator to gain Admin privileges by resetting the password of an Admin account and taking control of that account.
Real CVEs that MITRE cites as examples of this weakness.
CAPEC attack patterns that exploit this weakness.
Common questions about CWE-269.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-269 CVE affects your products, with AI-written analysis and remediation steps.