CWE-306: Missing Authentication for Critical Functionality
The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
Last updated
The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
Last updated
CWE-306 (Missing Authentication for Critical Functionality) is a base-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.
3,597 recorded CVEs are caused by CWE-306 (Missing Authentication for Critical Functionality), including 46 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 1,995 new CWE-306 CVEs have been recorded so far in 2026 (414 in 2025).
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
ProjectSend Unauthenticated Configuration Modification
CyberPanel Incorrect Default Permissions Vulnerability
Junos OS: SRX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload and download arbitrary files
NUUO NVRmini2 Devices Missing Authentication Vulnerability
SAP NetWeaver Remote Code Execution Vulnerability
Drupal core - Highly critical - Remote code execution - SA-CORE-2026-017
Microsoft SharePoint Server Elevation of Privilege Vulnerability
PeopleSoft Enterprise PeopleTools: Updates Environment Management - takeover
Unauthenticated Arbitrary File Creation and Truncation in a PostgreSQL Sidecar Service Endpoint in Splunk Enterprise
Oracle Payments: File Transmission - takeover
TrueConf Server Missing Authentication for Critical Function Vulnerability
Showing 12 of 3,597 recorded CWE-306 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-306 is exploited.
Gain Privileges or Assume Identity, Varies by Context
Affects: Access Control, Other
Exposing critical functionality essentially provides an attacker with the privilege level of that functionality. The consequences will depend on the associated functionality, but they can range from reading or modifying sensitive data, accessing administrative or other privileged functionality, or possibly even executing arbitrary code.
Typically introduced during these phases of the software lifecycle.
Languages
Technologies
Practical mitigations for CWE-306, grouped by where in the lifecycle they apply.
Divide the software into anonymous, normal, privileged, and administrative areas. Identify which of these areas require a proven user identity, and use a centralized authentication capability.
Identify all potential communication channels, or other means of interaction with the software, to ensure that all channels are appropriately protected, including those channels that are assumed to be accessible only by authorized parties. Developers sometimes perform authentication at the primary channel, but open up a secondary channel that is assumed to be private. For example, a login mechanism may be listening on one network port, but after successful authentication, it may open up a second port where it waits for the connection, but avoids authentication because it assumes that only the authenticated party will connect to the port.
In general, if the software or protocol allows a single session or user state to persist across multiple connections or channels, authentication and appropriate credential management need to be used throughout.
For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Where possible, avoid implementing custom, "grow-your-own" authentication routines and consider using authentication capabilities as provided by the surrounding framework, operating system, or environment. These capabilities may avoid common weaknesses that are unique to authentication; support automatic auditing and tracking; and make it easier to provide a clear separation between authentication tasks and authorization tasks.
In environments such as the World Wide Web, the line between authentication and authorization is sometimes blurred. If custom authentication routines are required instead of those provided by the server, then these routines must be applied to every single page, since these pages could be requested directly.
Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
For example, consider using libraries with authentication capabilities such as OpenSSL or the ESAPI Authenticator [3].
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 authentication mechanisms.
Automated static analysis is useful for detecting commonly-used idioms for authentication. A tool may be able to analyze related configuration files, such as .htaccess in Apache web servers, or detect the usage of commonly-used authentication libraries.
Generally, automated static analysis tools have difficulty detecting custom authentication schemes. In addition, the software's design may include some functionality that is accessible to any user and does not require an established identity; an automated technique that detects the absence of authentication may report false positives.
Effectiveness: Limited
According to SOAR [10], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [10], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [10], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [10], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [10], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [10], the following detection techniques may be useful:
Highly cost effective:
Cost effective for partial coverage:
Effectiveness: High
MITRE examples of the weakness in code.
In the following Java example the method createBankAccount is used to create a BankAccount object for a bank management application.
Vulnerable example
public BankAccount createBankAccount(String accountNumber, String accountType,
String accountName, String accountSSN, double balance) {
BankAccount account = new BankAccount();
account.setAccountNumber(accountNumber);
account.setAccountType(accountType);
account.setAccountOwnerName(accountName);
account.setAccountOwnerSSN(accountSSN);
account.setBalance(balance);
return account;
}Safe example
private boolean isUserAuthentic = false;
// authenticate user,
// if user is authenticated then set variable to true
// otherwise set variable to false
public boolean authenticateUser(String username, String password) {
...
}
public BankAccount createNewBankAccount(String accountNumber, String accountType,
String accountName, String accountSSN, double balance) {
BankAccount account = null;
if (isUserAuthentic) {
account = new BankAccount();
account.setAccountNumber(accountNumber);
account.setAccountType(accountType);
account.setAccountOwnerName(accountName);
account.setAccountOwnerSSN(accountSSN);
account.setBalance(balance);
}
return account;
}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" [4]. 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 for critical functionality in their OT products.
In 2021, a web site operated by PeopleGIS stored data of US municipalities in Amazon Web Service (AWS) Simple Storage Service (S3) buckets.
Vulnerable example
A security researcher found 86 S3 buckets that could be accessed without authentication (CWE-306) and stored data unencrypted (CWE-312). These buckets exposed over 1000 GB of data and 1.6 million files including physical addresses, phone numbers, tax documents, pictures of driver's license IDs, etc. [6] [5]
Safe example
The sensitive information could have been protected by ensuring that the buckets did not have public read access, e.g., by enabling the s3-account-level-public-access-blocks-periodic rule to Block Public Access. In addition, the data could have been encrypted at rest using the appropriate S3 settings, e.g., by enabling server-side encryption using the s3-bucket-server-side-encryption-enabled setting. Other settings are available to further prevent bucket data from being leaked. [7]
While it was not publicly disclosed how the data was protected after discovery, multiple options could have been considered.
Real CVEs that MITRE cites as examples of this weakness.
CAPEC attack patterns that exploit this weakness.
Common questions about CWE-306.
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-306 CVE affects your products, with AI-written analysis and remediation steps.