---
title: "CWE-284: Improper Access Control"
url: https://radicalnotion.ai/cwe/cwe-284
type: cwe
description: "The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-284: Improper Access Control

- **Abstraction:** Pillar
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 8,496
- **Of those, in CISA KEV:** 36
- **New in 2026:** 4,494
- **CWE catalog version:** 4.21

## Description

The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

Access control involves the use of several protection mechanisms such as:

Authentication (proving the identity of an actor)

Authorization (ensuring that a given actor can access a resource), and

Accountability (tracking of activities that were performed)

There are two distinct behaviors that can introduce access control weaknesses:

Specification: incorrect privileges, permissions, ownership, etc. are explicitly specified for either the user or the resource (for example, setting a password file to be world-writable, or giving administrator capabilities to a guest user). This action could be performed by the program or the administrator.

Enforcement: the mechanism contains errors that prevent it from properly enforcing the specified access control requirements (e.g., allowing the user to specify their own privileges, or allowing a syntactically-incorrect ACL to produce insecure settings). This problem occurs within the program itself, in that it does not actually enforce the intended security policy that the administrator specifies.

## Alternate terms

- **Authorization:** The terms "access control" and "authorization" are often used interchangeably, although many people have distinct definitions. The CWE usage of "access control" is intended as a general term for the various mechanisms that restrict which users can access which resources, and "authorization" is more narrowly defined. It is unlikely that there will be community consensus on the use of these terms.

## Modes of introduction

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

## Applicable platforms

**Technologies:** ICS/OT (Often), Web Based (Often)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Varies by Context, Gain Privileges or Assume Identity | When any mechanism is not applied or otherwise fails, attackers can compromise the security of the product by gaining privileges, reading sensitive information, executing commands, evading detection, etc. |

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

Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

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

This function runs an arbitrary SQL query on a given database, returning the result of the query.

Bad code:

```php
function runEmployeeQuery($dbName, $name){
    mysql_select_db($dbName,$globalDbHandle) or die("Could not open Database".$dbName);
    //Use a prepared statement to avoid CWE-89
    $preparedStatement = $globalDbHandle->prepare('SELECT * FROM employees WHERE name = :name');
    $preparedStatement->execute(array(':name' => $name));
    return $preparedStatement->fetchAll();
}
/.../

$employeeRecord = runEmployeeQuery('EmployeeDB',$_GET['EmployeeName']);
```

While this code is careful to avoid SQL Injection, the function does not confirm the user sending the query is authorized to do so. An attacker may be able to obtain sensitive employee information from the database.

### Example 3

In 2022, the OT:ICEFALL study examined products by 10 different Operational Technology (OT) vendors. The researchers reported 56 vulnerabilities and said that the products were "insecure by design" \[REF-1283\]. If exploited, these vulnerabilities often allowed adversaries to change how the products operated, ranging from denial of service to changing the code that the products executed. Since these products were often used in industries such as power, electrical, water, and others, there could even be safety implications.

Multiple vendors did not use any authentication or used client-side authentication for critical functionality in their OT products.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2023-26463 | Chain: IPSec VPN product uses the same variable for multiple purposes in the same function (CWE-1109), leading to incorrect access control (CWE-284) and expired pointer dereference (CWE-825) |
| CVE-2022-24985 | A form hosting website only checks the session authentication status for a single form, making it possible to bypass authentication when there are multiple forms |
| CVE-2022-29238 | Access-control setting in web-based document collaboration tool is not properly implemented by the code, which prevents listing hidden directories but does not prevent direct requests to files in those directories. |
| CVE-2022-23607 | Python-based HTTP library did not scope cookies to a particular domain such that "supercookies" could be sent to any domain on redirect |
| CVE-2021-21972 | Chain: Cloud computing virtualization platform does not require authentication for upload of a tar format file (CWE-306), then uses .. path traversal sequences (CWE-23) in the file to access unexpected files, as exploited in the wild per CISA KEV. |
| CVE-2021-37415 | IT management product does not perform authentication for some REST API requests, as exploited in the wild per CISA KEV. |
| CVE-2021-35033 | Firmware for a WiFi router uses a hard-coded password for a BusyBox shell, allowing bypass of authentication through the UART port |
| CVE-2020-10263 | Bluetooth speaker does not require authentication for the debug functionality on the UART port, allowing root shell access |
| CVE-2020-13927 | Default setting in workflow management product allows all API requests without authentication, as exploited in the wild per CISA KEV. |
| CVE-2010-4624 | Bulletin board applies restrictions on number of images during post creation, but does not enforce this on editing. |

## Real CVEs with this weakness (sample of 12 of 8,496)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-48907 | Joomla Extension - joomlacontenteditor.net - Remote Code Execution in JCE extension for Joomla \< 2.9.99.5 | critical | 10.0 | - | Yes | 2026-06-05 |
| CVE-2026-34908 | Ubiquiti UniFi OS Improper Access Control Vulnerability | critical | 10.0 | - | Yes | 2026-05-22 |
| CVE-2026-21962 | Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in: Weblogic Server Proxy Plug-in for Apache HTTP Server, Weblogic Server Proxy Plug-in for IIS - unauthorized data access and modification | critical | 10.0 | - | Yes | 2026-01-20 |
| CVE-2025-12480 | Gladinet Triofox Improper Access Control Vulnerability | critical | 10.0 | - | Yes | 2025-11-10 |
| CVE-2023-27350 | PaperCut MF/NG Improper Access Control Vulnerability | critical | 10.0 | - | Yes | 2023-04-20 |
| CVE-2023-26360 | Adobe ColdFusion Improper Access Control Arbitrary code execution | critical | 10.0 | - | Yes | 2023-03-23 |
| CVE-2016-8735 | Apache Tomcat Improper Access Control vulnerability | critical | 10.0 | - | Yes | 2017-04-06 |
| CVE-2015-3306 | ProFTPD Improper Access Control Vulnerability | critical | 10.0 | - | Yes | 2015-05-18 |
| CVE-2014-3120 | Elasticsearch Improper Access Control vulnerability | critical | 10.0 | - | Yes | 2014-07-28 |
| CVE-2013-2423 | Java Runtime Environment: Hotspot - unauthorized data modification | critical | 10.0 | - | Yes | 2013-04-17 |
| CVE-2023-24489 | Citrix Content Collaboration ShareFile Improper Access Control Vulnerability | critical | 9.8 | - | Yes | 2023-07-10 |
| CVE-2016-3427 | Java SE, Java SE Embedded, JRockit: JMX - takeover | critical | 9.8 | - | Yes | 2016-04-21 |

## Related attack patterns (CAPEC)

- [CAPEC-19](https://radicalnotion.ai/capec/capec-19): Embedding Scripts within Scripts
- [CAPEC-441](https://radicalnotion.ai/capec/capec-441): Malicious Logic Insertion
- [CAPEC-478](https://radicalnotion.ai/capec/capec-478): Modification of Windows Service Configuration
- [CAPEC-479](https://radicalnotion.ai/capec/capec-479): Malicious Root Certificate
- [CAPEC-502](https://radicalnotion.ai/capec/capec-502): Intent Spoof
- [CAPEC-503](https://radicalnotion.ai/capec/capec-503): WebView Exposure
- [CAPEC-536](https://radicalnotion.ai/capec/capec-536): Data Injected During Configuration
- [CAPEC-546](https://radicalnotion.ai/capec/capec-546): Incomplete Data Deletion in a Multi-Tenant Environment
- [CAPEC-550](https://radicalnotion.ai/capec/capec-550): Install New Service
- [CAPEC-551](https://radicalnotion.ai/capec/capec-551): Modify Existing Service
- [CAPEC-552](https://radicalnotion.ai/capec/capec-552): Install Rootkit
- [CAPEC-556](https://radicalnotion.ai/capec/capec-556): Replace File Extension Handlers
- [CAPEC-558](https://radicalnotion.ai/capec/capec-558): Replace Trusted Executable
- [CAPEC-562](https://radicalnotion.ai/capec/capec-562): Modify Shared File
- [CAPEC-563](https://radicalnotion.ai/capec/capec-563): Add Malicious File to Shared Webroot
- [CAPEC-564](https://radicalnotion.ai/capec/capec-564): Run Software at Logon
- [CAPEC-578](https://radicalnotion.ai/capec/capec-578): Disable Security Software

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Child | [CWE-269](https://radicalnotion.ai/cwe/cwe-269) | Improper Privilege Management |
| Child | [CWE-282](https://radicalnotion.ai/cwe/cwe-282) | Improper Ownership Management |
| Child | [CWE-285](https://radicalnotion.ai/cwe/cwe-285) | Improper Authorization |
| Child | [CWE-286](https://radicalnotion.ai/cwe/cwe-286) | Incorrect User Management |
| Child | [CWE-287](https://radicalnotion.ai/cwe/cwe-287) | Improper Authentication |
| Child | [CWE-288](https://radicalnotion.ai/cwe/cwe-288) | Authentication Bypass Using an Alternate Path or Channel |
| Child | [CWE-346](https://radicalnotion.ai/cwe/cwe-346) | Origin Validation Error |
| Child | [CWE-639](https://radicalnotion.ai/cwe/cwe-639) | Authorization Bypass Through User-Controlled Key |
| Child | [CWE-749](https://radicalnotion.ai/cwe/cwe-749) | Exposed Dangerous Method or Function |
| Child | [CWE-862](https://radicalnotion.ai/cwe/cwe-862) | Missing Authorization |
| Child | [CWE-863](https://radicalnotion.ai/cwe/cwe-863) | Incorrect Authorization |
| Child | [CWE-923](https://radicalnotion.ai/cwe/cwe-923) | Improper Restriction of Communication Channel to Intended Endpoints |
| Child | [CWE-1191](https://radicalnotion.ai/cwe/cwe-1191) | On-Chip Debug and Test Interface With Improper Access Control |
| Child | [CWE-1220](https://radicalnotion.ai/cwe/cwe-1220) | Insufficient Granularity of Access Control |
| Child | [CWE-1224](https://radicalnotion.ai/cwe/cwe-1224) | Improper Restriction of Write-Once Bit Fields |
| Child | [CWE-1231](https://radicalnotion.ai/cwe/cwe-1231) | Improper Prevention of Lock Bit Modification |
| Child | [CWE-1233](https://radicalnotion.ai/cwe/cwe-1233) | Security-Sensitive Hardware Controls with Missing Lock Bit Protection |
| Child | [CWE-1252](https://radicalnotion.ai/cwe/cwe-1252) | CPU Hardware Not Configured to Support Exclusivity of Write and Execute Operations |
| Child | [CWE-1257](https://radicalnotion.ai/cwe/cwe-1257) | Improper Access Control Applied to Mirrored or Aliased Memory Regions |
| Child | [CWE-1260](https://radicalnotion.ai/cwe/cwe-1260) | Improper Handling of Overlap Between Protected Memory Ranges |
| Child | [CWE-1262](https://radicalnotion.ai/cwe/cwe-1262) | Improper Access Control for Register Interface |
| Child | [CWE-1263](https://radicalnotion.ai/cwe/cwe-1263) | Improper Physical Access Control |
| Child | [CWE-1267](https://radicalnotion.ai/cwe/cwe-1267) | Policy Uses Obsolete Encoding |
| Child | [CWE-1274](https://radicalnotion.ai/cwe/cwe-1274) | Improper Access Control for Volatile Memory Containing Boot Code |
| Child | [CWE-1276](https://radicalnotion.ai/cwe/cwe-1276) | Hardware Child Block Incorrectly Connected to Parent System |
| Child | [CWE-1280](https://radicalnotion.ai/cwe/cwe-1280) | Access Control Check Implemented After Asset is Accessed |
| Child | [CWE-1283](https://radicalnotion.ai/cwe/cwe-1283) | Mutable Attestation or Measurement Reporting Data |
| Child | [CWE-1294](https://radicalnotion.ai/cwe/cwe-1294) | Insecure Security Identifier Mechanism |
| Child | [CWE-1296](https://radicalnotion.ai/cwe/cwe-1296) | Incorrect Chaining or Granularity of Debug Components |
| Child | [CWE-1304](https://radicalnotion.ai/cwe/cwe-1304) | Improperly Preserved Integrity of Hardware Configuration State During a Power Save/Restore Operation |
| Child | [CWE-1311](https://radicalnotion.ai/cwe/cwe-1311) | Improper Translation of Security Attributes by Fabric Bridge |
| Child | [CWE-1312](https://radicalnotion.ai/cwe/cwe-1312) | Missing Protection for Mirrored Regions in On-Chip Fabric Firewall |
| Child | [CWE-1313](https://radicalnotion.ai/cwe/cwe-1313) | Hardware Allows Activation of Test or Debug Logic at Runtime |
| Child | [CWE-1315](https://radicalnotion.ai/cwe/cwe-1315) | Improper Setting of Bus Controlling Capability in Fabric End-point |
| Child | [CWE-1316](https://radicalnotion.ai/cwe/cwe-1316) | Fabric-Address Map Allows Programming of Unwarranted Overlaps of Protected and Unprotected Ranges |
| Child | [CWE-1317](https://radicalnotion.ai/cwe/cwe-1317) | Improper Access Control in Fabric Bridge |
| Child | [CWE-1320](https://radicalnotion.ai/cwe/cwe-1320) | Improper Protection for Outbound Error Messages and Alert Signals |
| Child | [CWE-1323](https://radicalnotion.ai/cwe/cwe-1323) | Improper Management of Sensitive Trace Data |
| Child | [CWE-1334](https://radicalnotion.ai/cwe/cwe-1334) | Unauthorized Error Injection Can Degrade Hardware Redundancy |
| Child | [CWE-1462](https://radicalnotion.ai/cwe/cwe-1462) | Improper Session Management |
| Child | [CWE-1469](https://radicalnotion.ai/cwe/cwe-1469) | Improper Check for Credential Expiration |
| Child | [CWE-1472](https://radicalnotion.ai/cwe/cwe-1472) | Generation of Credential with Long Expiration |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Access Control List (ACL) errors | - | - |
| WASC | Insufficient Authorization | 2 | - |
| 7 Pernicious Kingdoms | Missing Access Control | - | - |

## Frequently asked questions

### What is CWE-284?

The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

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

8,496 recorded CVEs are attributed to CWE-284, including CVE-2026-48907, CVE-2026-34908 and CVE-2026-21962. 36 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-284?

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

### What are the consequences of CWE-284?

Exploiting CWE-284 can lead to: Varies by Context, Gain Privileges or Assume Identity.

### Is CWE-284 actively exploited?

Yes. 36 CWE-284 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 8,496 recorded CVEs.

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

---

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