CWE-285: Improper Authorization
Also known as: AuthZ
The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
Last updated
Also known as: AuthZ
The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
Last updated
CWE-285 (Improper Authorization) is a class-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
An access control list (ACL) represents who/what has permissions to a given object. Different operating systems implement (ACLs) in different ways. In UNIX, there are three types of permissions: read, write, and execute. Users are divided into three classes for file access: owner, group owner, and all other users where each class has a separate set of rights. In Windows NT, there are four basic types of permissions for files: "No access", "Read access", "Change access", and "Full control". Windows NT extends the concept of three types of users in UNIX to include a list of users and groups along with their associated permissions. A user can create an object (file) and assign specified permissions to that object.
1,615 recorded CVEs are caused by CWE-285 (Improper Authorization), including 1 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 616 new CWE-285 CVEs have been recorded so far in 2026 (308 in 2025).
Improper Authorization Vulnerability in HBS 3 (Hybrid Backup Sync)
DataStage on Cloud Pak for Data Improper Authorization
Totolink A3002MU Authentication Check boa sub_40FCFC improper authorization
Microsoft Edge (Chromium-based) Security Feature Bypass Vulnerability
Microsoft Azure Kubernetes Service Elevation of Privilege Vulnerability
Azure AI Foundry Elevation of Privilege Vulnerability
OneUptime has authorization bypass via client‑controlled is-multi-tenant-query header
FUXA Unauthenticated Remote Code Execution via Admin JWT Minting
PolarLearn allows Unauthenticated WebSocket access allows subscribing to and posting in arbitrary group chats
Microsoft Partner Center Elevation of Privilege Vulnerability
Incorrect Authorization with specially crafted requests
Showing 12 of 1,615 recorded CWE-285 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-285 is exploited.
Read Application Data, Read Files or Directories
Affects: Confidentiality
An attacker could read sensitive data, either by reading the data directly from a data store that is not properly restricted, or by accessing insufficiently-protected, privileged functionality to read the data.
Modify Application Data, Modify Files or Directories
Affects: Integrity
An attacker could modify sensitive data, either by writing the data directly to a data store that is not properly restricted, or by accessing insufficiently-protected, privileged functionality to write the data.
Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands
Affects: Access Control
When access control checks are not applied consistently - or not at all - an attacker could gain privileges and execute unauthorized code or commands by modifying or reading critical data directly, or by accessing insufficiently-protected, privileged functionality.
Typically introduced during these phases of the software lifecycle.
Technologies
Practical mitigations for CWE-285, grouped by where in the lifecycle they apply.
Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) to enforce the roles at the appropriate boundaries.
Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
Ensure that you perform access control checks related to your business logic. These checks may be different than the access control checks that you apply to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor.
For web applications, make sure that the access control mechanism is enforced correctly at the server side on every page. Users should not be able to access any unauthorized functionality or information by simply requesting direct access to that page.
One way to do this is to ensure that all pages containing sensitive information are not cached, and that all such pages restrict access to requests that are accompanied by an active and authenticated session token associated with a user who has the required permissions to access that page.
Use the access control capabilities of your operating system and server environment and define your access control lists accordingly. Use a "default deny" policy when defining these ACLs.
Automated static analysis is useful for detecting commonly-used idioms for authorization. A tool may be able to analyze related configuration files, such as .htaccess in Apache web servers, or detect the usage of commonly-used authorization libraries.
Generally, automated static analysis tools have difficulty detecting custom authorization schemes. In addition, the software's design may include some functionality that is accessible to any user and does not require an authorization check; an automated technique that detects the absence of authorization may report false positives.
Effectiveness: Limited
Automated dynamic analysis may find many or all possible interfaces that do not require authorization, but manual analysis is required to determine if the lack of authorization violates business logic
This weakness can be detected using tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session.
Specifically, manual static analysis is useful for evaluating the correctness of custom authorization mechanisms.
Effectiveness: Moderate
According to SOAR [8], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [8], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [8], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [8], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [8], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [8], the following detection techniques may be useful:
Highly cost effective:
Cost effective for partial coverage:
Effectiveness: High
MITRE examples of the weakness in code.
This function runs an arbitrary SQL query on a given database, returning the result of the query.
Vulnerable example
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.
The following program could be part of a bulletin board system that allows users to send private messages to each other. This program intends to authenticate the user before deciding whether a private message should be displayed. Assume that LookupMessageObject() ensures that the $id argument is numeric, constructs a filename based on that id, and reads the message details from that file. Also assume that the program stores all private messages for all users in the same directory.
Vulnerable example
sub DisplayPrivateMessage {
my($id) = @_;
my $Message = LookupMessageObject($id);
print "From: " . encodeHTML($Message->{from}) . "<br>\n";
print "Subject: " . encodeHTML($Message->{subject}) . "\n";
print "<hr>\n";
print "Body: " . encodeHTML($Message->{body}) . "\n";
}
my $q = new CGI;
# For purposes of this example, assume that CWE-309 and
# CWE-523 do not apply.
if (! AuthenticateUser($q->param('username'), $q->param('password'))) {
ExitError("invalid username or password");
}
my $id = $q->param('id');
DisplayPrivateMessage($id);Real CVEs that MITRE cites as examples of this weakness.
CAPEC attack patterns that exploit this weakness.
Common questions about CWE-285.
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-285 CVE affects your products, with AI-written analysis and remediation steps.