---
title: "CWE-269: Improper Privilege Management"
url: https://radicalnotion.ai/cwe/cwe-269
type: cwe
description: "The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-269: Improper Privilege Management

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** Medium
- **CVEs with this as primary weakness:** 3,624
- **Of those, in CISA KEV:** 31
- **New in 2026:** 1,308
- **CWE catalog version:** 4.21

## Description

The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Gain Privileges or Assume Identity | - |

## Potential mitigations

### Architecture and Design, Operation

Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.

### Architecture and Design (Separation of Privilege)

Follow the principle of least privilege when assigning access rights to entities in a software system.

### Architecture and Design (Separation of Privilege)

Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.

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

Effectiveness: High

## Demonstrative examples

### Example 1

This code temporarily raises the program's privileges to allow creation of a new user folder.

Bad code:

```python
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 True
```

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

### Example 2

The following example demonstrates the weakness.

Bad code:

```c
seteuid(0);
/* do some stuff */

seteuid(getuid());
```

### Example 3

The following example demonstrates the weakness.

Bad code:

```java
AccessController.doPrivileged(new PrivilegedAction() {
    public Object run() {
        // privileged code goes here, for example:
        System.loadLibrary("awt");
        return null;
        // nothing to return
    }
```

### Example 4

This code intends to allow only Administrators to print debug information about a system.

Bad code:

```java
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.

### Example 5

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.

Bad code:

```java
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.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2001-1555 | Terminal privileges are not reset when a user logs out. |
| CVE-2001-1514 | Does not properly pass security context to child processes in certain cases, allows privilege escalation. |
| CVE-2001-0128 | Does not properly compute roles. |
| CVE-1999-1193 | untrusted user placed in unix "wheel" group |
| CVE-2005-2741 | Product allows users to grant themselves certain rights that can be used to escalate privileges. |
| CVE-2005-2496 | Product uses group ID of a user instead of the group, causing it to run with different privileges. This is resultant from some other unknown issue. |
| CVE-2004-0274 | Product mistakenly assigns a particular status to an entity, leading to increased privileges. |
| CVE-2007-4217 | FTP client program on a certain OS runs with setuid privileges and has a buffer overflow. Most clients do not need extra privileges, so an overflow is not a vulnerability for those clients. |
| CVE-2007-5159 | OS incorrectly installs a program with setuid privileges, allowing users to gain privileges. |
| CVE-2008-4638 | Composite: application running with high privileges (CWE-250) allows user to specify a restricted file to process, which generates a parsing error that leaks the contents of the file (CWE-209). |
| CVE-2007-3931 | Installation script installs some programs as setuid when they shouldn't be. |
| CVE-2002-1981 | Roles have access to dangerous procedures (Accessible entities). |
| CVE-2002-1671 | Untrusted object/method gets access to clipboard (Accessible entities). |
| CVE-2000-0315 | Traceroute program allows unprivileged users to modify source address of packet (Accessible entities). |
| CVE-2000-0506 | User with capability can prevent setuid program from dropping privileges (Unsafe privileged actions). |

## Real CVEs with this weakness (sample of 12 of 3,624)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2021-34523 | Microsoft Exchange Server Elevation of Privilege Vulnerability | critical | 9.8 | - | Yes | 2021-07-14 |
| CVE-2020-1938 | Improper Privilege Management in Tomcat | critical | 9.8 | - | Yes | 2020-02-24 |
| CVE-2026-102490 | Local privilege escalation in Zammad v1.5.0 to v7.2.2 installed via DEB or RPM package | critical | 9.4 | - | Yes | 2026-09-30 |
| CVE-2013-0643 | Adobe Flash Player Incorrect Default Permissions Vulnerability | critical | 9.4 | - | Yes | 2013-02-27 |
| CVE-2024-49035 | Partner.Microsoft.Com Elevation of Privilege Vulnerability | critical | 9.3 | - | Yes | 2024-11-26 |
| CVE-2023-35674 | Android Framework Privilege Escalation Vulnerability | critical | 9.3 | - | Yes | 2023-09-11 |
| CVE-2021-20021 | SonicWall Email Security Improper Privilege Management Vulnerability | critical | 9.3 | - | Yes | 2021-04-09 |
| CVE-2020-8655 | EyesOfNetwork Improper Privilege Management Vulnerability | critical | 9.3 | - | Yes | 2020-02-06 |
| CVE-2017-5689 | Intel Active Management Technology (AMT), Small Business Technology (SBT), and Standard Manageability Privilege Escalation Vulnerability | critical | 9.3 | - | Yes | 2017-05-02 |
| CVE-2016-0151 | Windows CSRSS Security Feature Bypass Vulnerability | critical | 9.3 | - | Yes | 2016-04-12 |
| CVE-2021-42287 | Active Directory Domain Services Elevation of Privilege Vulnerability | critical | 9.0 | - | Yes | 2021-11-10 |
| CVE-2023-28434 | MinIO is vulnerable to privilege escalation on Linux/MacOS | high | 8.7 | - | Yes | 2023-03-22 |

## Related attack patterns (CAPEC)

- [CAPEC-122](https://radicalnotion.ai/capec/capec-122): Privilege Abuse
- [CAPEC-233](https://radicalnotion.ai/capec/capec-233): Privilege Escalation
- [CAPEC-58](https://radicalnotion.ai/capec/capec-58): Restful Privilege Elevation

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-284](https://radicalnotion.ai/cwe/cwe-284) | Improper Access Control |
| Child | [CWE-250](https://radicalnotion.ai/cwe/cwe-250) | Execution with Unnecessary Privileges |
| Child | [CWE-266](https://radicalnotion.ai/cwe/cwe-266) | Incorrect Privilege Assignment |
| Child | [CWE-267](https://radicalnotion.ai/cwe/cwe-267) | Privilege Defined With Unsafe Actions |
| Child | [CWE-268](https://radicalnotion.ai/cwe/cwe-268) | Privilege Chaining |
| Child | [CWE-270](https://radicalnotion.ai/cwe/cwe-270) | Privilege Context Switching Error |
| Child | [CWE-271](https://radicalnotion.ai/cwe/cwe-271) | Privilege Dropping / Lowering Errors |
| Child | [CWE-274](https://radicalnotion.ai/cwe/cwe-274) | Improper Handling of Insufficient Privileges |
| Child | [CWE-648](https://radicalnotion.ai/cwe/cwe-648) | Incorrect Use of Privileged APIs |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Privilege Management Error | - | - |
| ISA/IEC 62443 | Req SP.03.08 BR | Part 2-4 | - |
| ISA/IEC 62443 | Req CR 3.1 | Part 3-2 | - |
| ISA/IEC 62443 | Req SR 1.2 | Part 3-3 | - |
| ISA/IEC 62443 | Req SR 2.1 | Part 3-3 | - |
| ISA/IEC 62443 | Req SD-3 | Part 4-1 | - |
| ISA/IEC 62443 | Req SD-4 | Part 4-1 | - |
| ISA/IEC 62443 | Req SI-1 | Part 4-1 | - |
| ISA/IEC 62443 | Req CR 1.1 | Part 4-2 | - |
| ISA/IEC 62443 | Req CR 2.1 | Part 4-2 | - |

## Frequently asked questions

### What is CWE-269?

The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.

### What CVEs are caused by CWE-269?

3,624 recorded CVEs are attributed to CWE-269, including CVE-2021-34523, CVE-2020-1938 and CVE-2026-102490. 31 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-269?

Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.

### How is CWE-269 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-269?

Exploiting CWE-269 can lead to: Gain Privileges or Assume Identity.

### Is CWE-269 actively exploited?

Yes. 31 CWE-269 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 3,624 recorded CVEs.

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

---

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