Software Weaknesses Taxonomy (CWE-699: Software Development)

Filters

CWE-1228: API / Function Errors

Weaknesses in this category are related to the use of built-in functions or external APIs.

Weaknesses:
CWE-242: Use of Inherently Dangerous Function Other Varies by Context

The product calls a function that can never be guaranteed to work safely.

CWE-474: Use of Function with Inconsistent Implementations Other Quality Degradation Varies by Context

The code uses a function that has inconsistent implementations across operating systems and versions.

CWE-475: Undefined Behavior for Input to API Other Quality Degradation Varies by Context

The behavior of this function is undefined unless its control parameter is set to a specific value.

CWE-477: Use of Obsolete Function Other Quality Degradation

The code uses deprecated or obsolete functions, which suggests that the code has not been actively reviewed or maintained.

CWE-676: Use of Potentially Dangerous Function Other Quality Degradation Unexpected State Varies by Context

The product invokes a potentially dangerous function that could introduce a vulnerability if it is used incorrectly, but the function can also be used safely.

CWE-695: Use of Low-Level Functionality Other Other

The product uses low-level functionality that is explicitly prohibited by the framework or specification under which the product is supposed to operate.

CWE-749: Exposed Dangerous Method or Function Access Control Availability Confidentiality Integrity Other Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data Other Read Application Data

The product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted.

CWE-1210: Audit / Logging Errors

Weaknesses in this category are related to audit-based components of a software system. Frequently these deal with logging user activities in order to identify undesired access and modifications to the system. The weaknesses in this category could lead to a degradation of the quality of the audit capability if they are not addressed.

Weaknesses:
CWE-117: Improper Output Neutralization for Logs Availability Confidentiality Integrity Non-Repudiation Execute Unauthorized Code or Commands Hide Activities Modify Application Data

The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.

CWE-222: Truncation of Security-relevant Information Non-Repudiation Hide Activities

The product truncates the display, recording, or processing of security-relevant information in a way that can obscure the source or nature of an attack.

CWE-223: Omission of Security-relevant Information Non-Repudiation Hide Activities

The product does not record or display information that would be important for identifying the source or nature of an attack, or determining if an action is safe.

Child Weaknesses:
CWE-778: Insufficient Logging Non-Repudiation Hide Activities

When a security-critical event occurs, the product either does not record the event or omits important details about the event when logging it.

CWE-224: Obscured Security-relevant Information by Alternate Name Access Control Non-Repudiation Gain Privileges or Assume Identity Hide Activities

The product records security-relevant information according to an alternate name of the affected entity, instead of the canonical name.

CWE-779: Logging of Excessive Data Availability Non-Repudiation DoS: Resource Consumption (CPU) DoS: Resource Consumption (Other) Hide Activities

The product logs too much information, making log files hard to process and possibly hindering recovery efforts or forensic analysis after an attack.

CWE-1211: Authentication Errors

Weaknesses in this category are related to authentication components of a system. Frequently these deal with the ability to verify that an entity is indeed who it claims to be. If not addressed when designing or implementing a software system, these weaknesses could lead to a degradation of the quality of the authentication capability.

Weaknesses:
CWE-289: Authentication Bypass by Alternate Name Access Control Bypass Protection Mechanism

The product performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor.

CWE-290: Authentication Bypass by Spoofing Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.

CWE-294: Authentication Bypass by Capture-replay Access Control Gain Privileges or Assume Identity

A capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes).

CWE-295: Improper Certificate Validation Authentication Integrity Bypass Protection Mechanism Gain Privileges or Assume Identity

The product does not validate, or incorrectly validates, a certificate.

CWE-301: Reflection Attack in an Authentication Protocol Access Control Gain Privileges or Assume Identity

Simple authentication protocols are subject to reflection attacks if a malicious user can use the target machine to impersonate a trusted user.

CWE-303: Incorrect Implementation of Authentication Algorithm Access Control Bypass Protection Mechanism

The requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect.

CWE-305: Authentication Bypass by Primary Weakness Access Control Bypass Protection Mechanism

The authentication algorithm is sound, but the implemented mechanism can be bypassed as the result of a separate weakness that is primary to the authentication error.

CWE-306: Missing Authentication for Critical Function Access Control Other Gain Privileges or Assume Identity Varies by Context

The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

Child Weaknesses:
CWE-322: Key Exchange without Entity Authentication Access Control Confidentiality Bypass Protection Mechanism Read Application Data

The product performs a key exchange with an actor without verifying the identity of that actor.

CWE-307: Improper Restriction of Excessive Authentication Attempts Access Control Bypass Protection Mechanism

The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.

CWE-308: Use of Single-factor Authentication Access Control Bypass Protection Mechanism

The product uses an authentication algorithm that uses a single factor (e.g., a password) in a security context that should require more than one factor.

CWE-309: Use of Password System for Primary Authentication Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The use of password systems as the primary means of authentication may be subject to several flaws or shortcomings, each reducing the effectiveness of the mechanism.

CWE-603: Use of Client-Side Authentication Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

A client/server product performs authentication within client code but not in server code, allowing server-side authentication to be bypassed via a modified client that omits the authentication check.

CWE-645: Overly Restrictive Account Lockout Mechanism Availability DoS: Resource Consumption (Other)

The product contains an account lockout protection mechanism, but the mechanism is too restrictive and can be triggered too easily, which allows attackers to deny service to legitimate users by causing their accounts to be locked out.

CWE-804: Guessable CAPTCHA Access Control Other Bypass Protection Mechanism Other

The product uses a CAPTCHA challenge, but the challenge can be guessed or automatically recognized by a non-human actor.

CWE-836: Use of Password Hash Instead of Password for Authentication Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product records password hashes in a data store, receives a hash of a password from a client, and compares the supplied hash to the hash obtained from the data store.

CWE-1212: Authorization Errors

Weaknesses in this category are related to authorization components of a system. Frequently these deal with the ability to enforce that agents have the required permissions before performing certain operations, such as modifying data. If not addressed when designing or implementing a software system, these weaknesses could lead to a degradation of the quality of the authorization capability.

Weaknesses:
CWE-425: Direct Request ('Forced Browsing') Access Control Availability Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data Read Application Data

The web application does not adequately enforce appropriate authorization on all restricted URLs, scripts, or files.

CWE-551: Incorrect Behavior Order: Authorization Before Parsing and Canonicalization Access Control Bypass Protection Mechanism

If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection.

CWE-552: Files or Directories Accessible to External Parties Confidentiality Integrity Modify Files or Directories Read Files or Directories

The product makes files or directories accessible to unauthorized actors, even though they should not be.

CWE-639: Authorization Bypass Through User-Controlled Key Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.

CWE-653: Improper Isolation or Compartmentalization Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions.

CWE-842: Placement of User into Incorrect Group Access Control Gain Privileges or Assume Identity

The product or the administrator places a user into an incorrect group.

CWE-939: Improper Authorization in Handler for Custom URL Scheme Access Control Other Bypass Protection Mechanism Gain Privileges or Assume Identity Varies by Context

The product uses a handler for a custom URL scheme, but it does not properly restrict which actors can invoke the handler using the scheme.

CWE-1220: Insufficient Granularity of Access Control Access Control Availability Confidentiality Integrity Bypass Protection Mechanism Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Memory Other Read Memory

The product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. However, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets.

CWE-1230: Exposure of Sensitive Information Through Metadata Confidentiality Read Application Data

The product prevents direct access to a resource containing sensitive information, but it does not sufficiently limit access to metadata that is derived from the original, sensitive information.

CWE-1006: Bad Coding Practices

Weaknesses in this category are related to coding practices that are deemed unsafe and increase the chances that an exploitable vulnerability will be present in the application. These weaknesses do not directly introduce a vulnerability, but indicate that the product has not been carefully developed or maintained. If a program is complex, difficult to maintain, not portable, or shows evidence of neglect, then there is a higher likelihood that weaknesses are buried in the code.

Weaknesses:
CWE-358: Improperly Implemented Security Check for Standard Access Control Bypass Protection Mechanism

The product does not implement or incorrectly implements one or more security-relevant checks as specified by the design of a standardized algorithm, protocol, or technique.

CWE-360: Trust of System Event Data Access Control Availability Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity

Security based on event locations are insecure and can be spoofed.

CWE-478: Missing Default Case in Multiple Condition Expression Integrity Alter Execution Logic Varies by Context

The code does not have a default case in an expression with multiple conditions, such as a switch statement.

CWE-487: Reliance on Package-level Scope Confidentiality Integrity Modify Application Data Read Application Data

Java packages are not inherently closed; therefore, relying on them for code security is not a good practice.

CWE-489: Active Debug Code Access Control Availability Confidentiality Integrity Other Bypass Protection Mechanism Gain Privileges or Assume Identity Read Application Data Varies by Context

The product is released with debugging code still enabled or active.

CWE-547: Use of Hard-coded, Security-relevant Constants Other Quality Degradation Reduce Maintainability Varies by Context

The product uses hard-coded constants instead of symbolic names for security-critical values, which increases the likelihood of mistakes during code maintenance or security policy change.

CWE-561: Dead Code Other Quality Degradation Reduce Maintainability

The product contains dead code, which can never be executed.

CWE-562: Return of Stack Variable Address Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

A function returns the address of a stack variable, which will cause unintended program behavior, typically in the form of a crash.

CWE-563: Assignment to Variable without Use Other Quality Degradation Varies by Context

The variable's value is assigned but never used, making it a dead store.

CWE-581: Object Model Violation: Just One of Equals and Hashcode Defined Integrity Other Other

The product does not maintain equal hashcodes for equal objects.

CWE-586: Explicit Call to Finalize() Integrity Other Quality Degradation Unexpected State

The product makes an explicit call to the finalize() method from outside the finalizer.

CWE-605: Multiple Binds to the Same Port Confidentiality Integrity Read Application Data

When multiple sockets are allowed to bind to the same port, other services on that port may be stolen or spoofed.

CWE-628: Function Call with Incorrectly Specified Arguments Access Control Other Gain Privileges or Assume Identity Quality Degradation

The product calls a function, procedure, or routine with arguments that are not correctly specified, leading to always-incorrect behavior and resultant weaknesses.

CWE-654: Reliance on a Single Factor in a Security Decision Access Control Non-Repudiation Gain Privileges or Assume Identity Hide Activities

A protection mechanism relies exclusively, or to a large extent, on the evaluation of a single condition or the integrity of a single object or entity in order to make a decision about granting access to restricted resources or functionality.

CWE-656: Reliance on Security Through Obscurity Availability Confidentiality Integrity Other Other

The product uses a protection mechanism whose strength depends heavily on its obscurity, such that knowledge of its algorithms or key data is sufficient to defeat the mechanism.

CWE-694: Use of Multiple Resources with Duplicate Identifier Access Control Other Bypass Protection Mechanism Quality Degradation

The product uses multiple resources that can have the same identifier, in a context in which unique identifiers are required.

CWE-807: Reliance on Untrusted Inputs in a Security Decision Access Control Availability Confidentiality Other Bypass Protection Mechanism Gain Privileges or Assume Identity Varies by Context

The product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism.

CWE-1041: Use of Redundant Code Other Reduce Maintainability

The product has multiple functions, methods, procedures, macros, etc. that contain the same code.

CWE-1043: Data Element Aggregating an Excessively Large Number of Non-Primitive Elements Other Reduce Performance

The product uses a data element that has an excessively large number of sub-elements with non-primitive data types such as structures or aggregated objects.

CWE-1044: Architecture with Number of Horizontal Layers Outside of Expected Range Other Reduce Maintainability

The product's architecture contains too many - or too few - horizontal layers.

CWE-1045: Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor Other Reduce Reliability

A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor.

CWE-1046: Creation of Immutable Text Using String Concatenation Other Reduce Performance

The product creates an immutable text string using string concatenation operations.

CWE-1048: Invokable Control Element with Large Number of Outward Calls Other Increase Analytical Complexity Reduce Maintainability

The code contains callable control elements that contain an excessively large number of references to other application objects external to the context of the callable, i.e. a Fan-Out value that is excessively large.

CWE-1049: Excessive Data Query Operations in a Large Data Table Other Reduce Performance

The product performs a data query with a large number of joins and sub-queries on a large data table.

CWE-1050: Excessive Platform Resource Consumption within a Loop Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other) Reduce Performance

The product has a loop body or loop condition that contains a control element that directly or indirectly consumes platform resources, e.g. messaging, sessions, locks, or file descriptors.

CWE-1063: Creation of Class Instance within a Static Code Block Other Reduce Performance

A static code block creates an instance of a class.

CWE-1065: Runtime Resource Management Control Element in a Component Built to Run on Application Servers Other Reduce Reliability

The product uses deployed components from application servers, but it also uses low-level functions/methods for management of resources, instead of the API provided by the application server.

CWE-1066: Missing Serialization Control Element Other Reduce Reliability

The product contains a serializable data element that does not have an associated serialization method.

CWE-1067: Excessive Execution of Sequential Searches of Data Resource Availability Reduce Performance

The product contains a data query against an SQL table or view that is configured in a way that does not utilize an index and may cause sequential searches to be performed.

CWE-1070: Serializable Data Element Containing non-Serializable Item Elements Other Reduce Reliability

The product contains a serializable, storable data element such as a field or member, but the data element contains member elements that are not serializable.

CWE-1071: Empty Code Block Other Reduce Reliability

The source code contains a block that does not contain any code, i.e., the block is empty.

CWE-1072: Data Resource Access without Use of Connection Pooling Other Reduce Performance

The product accesses a data resource through a database without using a connection pooling capability.

CWE-1073: Non-SQL Invokable Control Element with Excessive Number of Data Resource Accesses Other Reduce Performance

The product contains a client with a function or method that contains a large number of data accesses/queries that are sent through a data manager, i.e., does not use efficient database capabilities.

CWE-1079: Parent Class without Virtual Destructor Method Other Reduce Reliability

A parent class contains one or more child classes, but the parent class does not have a virtual destructor method.

CWE-1082: Class Instance Self Destruction Control Element Other Reduce Reliability

The code contains a class instance that calls the method or function to delete or destroy itself.

CWE-1084: Invokable Control Element with Excessive File or Data Access Operations Other Reduce Maintainability

A function or method contains too many operations that utilize a data manager or file resource.

CWE-1085: Invokable Control Element with Excessive Volume of Commented-out Code Other Reduce Maintainability

A function, method, procedure, etc. contains an excessive amount of code that has been commented out within its body.

CWE-1087: Class with Virtual Method without a Virtual Destructor Other Reduce Reliability

A class contains a virtual method, but the method does not have an associated virtual destructor.

CWE-1089: Large Data Table with Excessive Number of Indices Other Reduce Performance

The product uses a large data table that contains an excessively large number of indices.

CWE-1092: Use of Same Invokable Control Element in Multiple Architectural Layers Other Reduce Maintainability

The product uses the same control element across multiple architectural layers.

CWE-1094: Excessive Index Range Scan for a Data Resource Other Reduce Performance

The product contains an index range scan for a large data table, but the scan can cover a large number of rows.

CWE-1097: Persistent Storable Data Element without Associated Comparison Control Element Other Reduce Reliability

The product uses a storable data element that does not have all of the associated functions or methods that are necessary to support comparison.

CWE-1098: Data Element containing Pointer Item without Proper Copy Control Element Other Reduce Reliability

The code contains a data element with a pointer that does not have an associated copy or constructor method.

CWE-1099: Inconsistent Naming Conventions for Identifiers Other Increase Analytical Complexity Reduce Maintainability

The product's code, documentation, or other artifacts do not consistently use the same naming conventions for variables, callables, groups of related callables, I/O capabilities, data types, file names, or similar types of elements.

CWE-1101: Reliance on Runtime Component in Generated Code Other Reduce Maintainability

The product uses automatically-generated code that cannot be executed without a specific runtime support component.

CWE-1102: Reliance on Machine-Dependent Data Representation Other Reduce Maintainability

The code uses a data representation that relies on low-level data representation or constructs that may vary across different processors, physical machines, OSes, or other physical components.

CWE-1103: Use of Platform-Dependent Third Party Components Other Reduce Maintainability

The product relies on third-party components that do not provide equivalent functionality across all desirable platforms.

CWE-1104: Use of Unmaintained Third Party Components Other Reduce Maintainability Varies by Context

The product relies on third-party components that are not actively supported or maintained by the original developer or a trusted proxy for the original developer.

CWE-1106: Insufficient Use of Symbolic Constants Other Increase Analytical Complexity Reduce Maintainability

The source code uses literal constants that may need to change or evolve over time, instead of using symbolic constants.

CWE-1107: Insufficient Isolation of Symbolic Constant Definitions Other Reduce Maintainability

The source code uses symbolic constants, but it does not sufficiently place the definitions of these constants into a more centralized or isolated location.

CWE-1108: Excessive Reliance on Global Variables Other Increase Analytical Complexity Reduce Maintainability

The code is structured in a way that relies too much on using or setting global variables throughout various points in the code, instead of preserving the associated information in a narrower, more local context.

CWE-1109: Use of Same Variable for Multiple Purposes Other Increase Analytical Complexity Reduce Maintainability

The code contains a callable, block, or other code element in which the same variable is used to control more than one unique task or store more than one instance of data.

CWE-1113: Inappropriate Comment Style Other Increase Analytical Complexity Reduce Maintainability

The source code uses comment styles or formats that are inconsistent or do not follow expected standards for the product.

CWE-1114: Inappropriate Whitespace Style Other Increase Analytical Complexity Reduce Maintainability

The source code contains whitespace that is inconsistent across the code or does not follow expected standards for the product.

CWE-1115: Source Code Element without Standard Prologue Other Increase Analytical Complexity Reduce Maintainability

The source code contains elements such as source files that do not consistently provide a prologue or header that has been standardized for the project.

CWE-1116: Inaccurate Source Code Comments Other Increase Analytical Complexity Reduce Maintainability

The source code contains comments that do not accurately describe or explain aspects of the portion of the code with which the comment is associated.

CWE-1117: Callable with Insufficient Behavioral Summary Other Reduce Maintainability

The code contains a function or method whose signature and/or associated inline documentation does not sufficiently describe the callable's inputs, outputs, side effects, assumptions, or return codes.

CWE-1126: Declaration of Variable with Unnecessarily Wide Scope Other Increase Analytical Complexity Reduce Maintainability

The source code declares a variable in one scope, but the variable is only used within a narrower scope.

CWE-1127: Compilation with Insufficient Warnings or Errors Other Reduce Maintainability

The code is compiled without sufficient warnings enabled, which may prevent the detection of subtle bugs or quality issues.

CWE-1235: Incorrect Use of Autoboxing and Unboxing for Performance Critical Operations Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other) Reduce Performance

The code uses boxed primitives, which may introduce inefficiencies into performance-critical operations.

CWE-438: Behavioral Problems

Weaknesses in this category are related to unexpected behaviors from code that an application uses.

Weaknesses:
CWE-115: Misinterpretation of Input Integrity Unexpected State

The product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion.

CWE-179: Incorrect Behavior Order: Early Validation Access Control Integrity Bypass Protection Mechanism Execute Unauthorized Code or Commands

The product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification.

CWE-408: Incorrect Behavior Order: Early Amplification Availability DoS: Amplification DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory)

The product allows an entity to perform a legitimate but expensive operation before authentication or authorization has taken place.

CWE-437: Incomplete Model of Endpoint Features Integrity Other Unexpected State Varies by Context

A product acts as an intermediary or monitor between two or more endpoints, but it does not have a complete model of an endpoint's features, behaviors, or state, potentially causing the product to perform incorrect actions based on this incomplete model.

CWE-439: Behavioral Change in New Version or Environment Other Quality Degradation Varies by Context

A's behavior or functionality changes with a new version of A, or a new environment, which is not known (or manageable) by B.

CWE-440: Expected Behavior Violation Other Quality Degradation Varies by Context

A feature, API, or function does not perform according to its specification.

CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') Access Control Integrity Non-Repudiation Bypass Protection Mechanism Hide Activities Unexpected State

The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination.

CWE-480: Use of Incorrect Operator Other Alter Execution Logic

The product accidentally uses the wrong operator, which changes the logic in security-relevant ways.

CWE-483: Incorrect Block Delimitation Availability Confidentiality Integrity Alter Execution Logic

The code does not explicitly delimit a block that is intended to contain 2 or more statements, creating a logic error.

CWE-484: Omitted Break Statement in Switch Other Alter Execution Logic

The product omits a break statement within a switch or similar construct, causing code associated with multiple conditions to execute. This can cause problems when the programmer only intended to execute code associated with one condition.

CWE-551: Incorrect Behavior Order: Authorization Before Parsing and Canonicalization Access Control Bypass Protection Mechanism

If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection.

CWE-698: Execution After Redirect (EAR) Availability Confidentiality Integrity Other Alter Execution Logic Execute Unauthorized Code or Commands

The web application sends a redirect to another location, but instead of exiting, it executes additional code.

CWE-733: Compiler Optimization Removal or Modification of Security-critical Code Access Control Other Alter Execution Logic Bypass Protection Mechanism

The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified.

CWE-783: Operator Precedence Logic Error Availability Confidentiality Integrity Unexpected State Varies by Context

The product uses an expression in which operator precedence causes incorrect logic to be used.

CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') Availability DoS: Amplification DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory)

The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

CWE-837: Improper Enforcement of a Single, Unique Action Other Varies by Context

The product requires that an actor should only be able to perform an action once, or to have only one unique action, but the product does not enforce or improperly enforces this restriction.

CWE-841: Improper Enforcement of Behavioral Workflow Other Alter Execution Logic

The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence.

CWE-1025: Comparison Using Wrong Factors Other Varies by Context

The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities, which can lead to incorrect results and resultant weaknesses.

CWE-1037: Processor Optimization Removal or Modification of Security-critical Code Integrity Bypass Protection Mechanism

The developer builds a security-critical protection mechanism into the software, but the processor optimizes the execution of the program such that the mechanism is removed or modified.

CWE-840: Business Logic Errors

Weaknesses in this category identify some of the underlying problems that commonly allow attackers to manipulate the business logic of an application. Errors in business logic can be devastating to an entire application. They can be difficult to find automatically, since they typically involve legitimate use of the application's functionality. However, many business logic errors can exhibit patterns that are similar to well-understood implementation and design weaknesses.

Weaknesses:
CWE-283: Unverified Ownership Access Control Gain Privileges or Assume Identity

The product does not properly verify that a critical resource is owned by the proper entity.

CWE-639: Authorization Bypass Through User-Controlled Key Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.

CWE-640: Weak Password Recovery Mechanism for Forgotten Password Access Control Availability Integrity Other DoS: Resource Consumption (Other) Gain Privileges or Assume Identity Other

The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.

CWE-708: Incorrect Ownership Assignment Confidentiality Integrity Modify Application Data Read Application Data

The product assigns an owner to a resource, but the owner is outside of the intended control sphere.

CWE-770: Allocation of Resources Without Limits or Throttling Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other)

The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

CWE-826: Premature Release of Resource During Expected Lifetime Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Application Data Modify Memory Read Application Data Read Memory

The product releases a resource that is still intended to be used by itself or another actor.

CWE-837: Improper Enforcement of a Single, Unique Action Other Varies by Context

The product requires that an actor should only be able to perform an action once, or to have only one unique action, but the product does not enforce or improperly enforces this restriction.

CWE-841: Improper Enforcement of Behavioral Workflow Other Alter Execution Logic

The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence.

CWE-417: Communication Channel Errors

Weaknesses in this category are related to improper handling of communication channels and access paths. These weaknesses include problems in creating, managing, or removing alternate channels and alternate paths. Some of these can overlap virtual file problems and are commonly used in "bypass" attacks, such as those that exploit authentication errors.

Weaknesses:
CWE-322: Key Exchange without Entity Authentication Access Control Confidentiality Bypass Protection Mechanism Read Application Data

The product performs a key exchange with an actor without verifying the identity of that actor.

CWE-346: Origin Validation Error Access Control Other Gain Privileges or Assume Identity Varies by Context

The product does not properly verify that the source of data or communication is valid.

CWE-385: Covert Timing Channel Confidentiality Other Other Read Application Data

Covert timing channels convey information by modulating some aspect of system behavior over time, so that the program receiving the information can observe system behavior and infer protected information.

CWE-419: Unprotected Primary Channel Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product uses a primary channel for administration or restricted functionality, but it does not properly protect the channel.

CWE-420: Unprotected Alternate Channel Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product protects a primary channel, but it does not use the same level of protection for an alternate channel.

CWE-425: Direct Request ('Forced Browsing') Access Control Availability Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data Read Application Data

The web application does not adequately enforce appropriate authorization on all restricted URLs, scripts, or files.

CWE-515: Covert Storage Channel Confidentiality Integrity Read Application Data

A covert storage channel transfers information through the setting of bits by one program and the reading of those bits by another. What distinguishes this case from that of ordinary operation is that the bits are used to convey encoded information.

CWE-918: Server-Side Request Forgery (SSRF) Access Control Confidentiality Integrity Bypass Protection Mechanism Execute Unauthorized Code or Commands Read Application Data

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

CWE-924: Improper Enforcement of Message Integrity During Transmission in a Communication Channel Confidentiality Integrity Gain Privileges or Assume Identity

The product establishes a communication channel with an endpoint and receives a message from that endpoint, but it does not sufficiently ensure that the message was not modified during transmission.

CWE-940: Improper Verification of Source of a Communication Channel Access Control Other Bypass Protection Mechanism Gain Privileges or Assume Identity Varies by Context

The product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin.

CWE-941: Incorrectly Specified Destination in a Communication Channel Access Control Other Bypass Protection Mechanism Gain Privileges or Assume Identity Varies by Context

The product creates a communication channel to initiate an outgoing request to an actor, but it does not correctly specify the intended destination for that actor.

CWE-1327: Binding to an Unrestricted IP Address Availability DoS: Amplification

The product assigns the address 0.0.0.0 for a database server, a cloud service/instance, or any computing resource that communicates remotely.

CWE-1226: Complexity Issues

Weaknesses in this category are associated with things being overly complex.

Weaknesses:
CWE-1043: Data Element Aggregating an Excessively Large Number of Non-Primitive Elements Other Reduce Performance

The product uses a data element that has an excessively large number of sub-elements with non-primitive data types such as structures or aggregated objects.

CWE-1047: Modules with Circular Dependencies Other Reduce Maintainability

The product contains modules in which one module has references that cycle back to itself, i.e., there are circular dependencies.

CWE-1055: Multiple Inheritance from Concrete Classes Other Reduce Maintainability

The product contains a class with inheritance from more than one concrete class.

CWE-1056: Invokable Control Element with Variadic Parameters Other Reduce Reliability

A named-callable or method control element has a signature that supports a variable (variadic) number of parameters or arguments.

CWE-1060: Excessive Number of Inefficient Server-Side Data Accesses Other Reduce Performance

The product performs too many data queries without using efficient data processing functionality such as stored procedures.

CWE-1064: Invokable Control Element with Signature Containing an Excessive Number of Parameters Other Increase Analytical Complexity Reduce Maintainability

The product contains a function, subroutine, or method whose signature has an unnecessarily large number of parameters/arguments.

CWE-1074: Class with Excessively Deep Inheritance Other Increase Analytical Complexity Reduce Maintainability

A class has an inheritance level that is too high, i.e., it has a large number of parent classes.

CWE-1075: Unconditional Control Flow Transfer outside of Switch Block Other Increase Analytical Complexity Reduce Maintainability

The product performs unconditional control transfer (such as a "goto") in code outside of a branching structure such as a switch block.

CWE-1080: Source Code File with Excessive Number of Lines of Code Other Increase Analytical Complexity Reduce Maintainability

A source code file has too many lines of code.

CWE-1086: Class with Excessive Number of Child Classes Other Increase Analytical Complexity Reduce Maintainability

A class contains an unnecessarily large number of children.

CWE-1095: Loop Condition Value Update within the Loop Other Increase Analytical Complexity Reduce Maintainability

The product uses a loop with a control flow condition based on a value that is updated within the body of the loop.

CWE-1119: Excessive Use of Unconditional Branching Other Increase Analytical Complexity Reduce Maintainability

The code uses too many unconditional branches (such as "goto").

CWE-1121: Excessive McCabe Cyclomatic Complexity Other Increase Analytical Complexity Reduce Maintainability

The code contains McCabe cyclomatic complexity that exceeds a desirable maximum.

CWE-1122: Excessive Halstead Complexity Other Increase Analytical Complexity Reduce Maintainability

The code is structured in a way that a Halstead complexity measure exceeds a desirable maximum.

CWE-1123: Excessive Use of Self-Modifying Code Other Increase Analytical Complexity Reduce Maintainability

The product uses too much self-modifying code.

CWE-1124: Excessively Deep Nesting Other Reduce Maintainability

The code contains a callable or other code grouping in which the nesting / branching is too deep.

CWE-1125: Excessive Attack Surface Other Varies by Context

The product has an attack surface whose quantitative measurement exceeds a desirable maximum.

CWE-1333: Inefficient Regular Expression Complexity Availability DoS: Resource Consumption (CPU)

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

CWE-557: Concurrency Issues

Weaknesses in this category are related to concurrent use of shared resources.

Weaknesses:
CWE-364: Signal Handler Race Condition Access Control Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data Modify Memory

The product uses a signal handler that introduces a race condition.

CWE-366: Race Condition within a Thread Integrity Other Alter Execution Logic Unexpected State

If two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined.

CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition Integrity Non-Repudiation Other Alter Execution Logic Hide Activities Modify Application Data Modify Files or Directories Modify Memory Other Unexpected State

The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.

CWE-368: Context Switching Race Condition Confidentiality Integrity Modify Application Data Read Application Data

A product performs a series of non-atomic actions to switch between contexts that cross privilege or other security boundaries, but a race condition allows an attacker to modify or misrepresent the product's behavior during the switch.

CWE-386: Symbolic Name not Mapping to Correct Object Access Control Confidentiality Integrity Non-Repudiation Other Gain Privileges or Assume Identity Hide Activities Modify Application Data Modify Files or Directories Other Read Application Data Read Files or Directories

A constant symbolic reference to an object is used, even though the reference can resolve to a different object over time.

CWE-421: Race Condition During Access to Alternate Channel Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product opens an alternate channel to communicate with an authorized user, but the channel is accessible to other actors.

CWE-663: Use of a Non-reentrant Function in a Concurrent Context Confidentiality Integrity Other Alter Execution Logic Modify Application Data Modify Memory Read Application Data Read Memory

The product calls a non-reentrant function in a concurrent context in which a competing code sequence (e.g. thread or signal handler) may have an opportunity to call the same function or otherwise influence its state.

CWE-820: Missing Synchronization Confidentiality Integrity Other Alter Execution Logic Modify Application Data Read Application Data

The product utilizes a shared resource in a concurrent manner but does not attempt to synchronize access to the resource.

CWE-821: Incorrect Synchronization Confidentiality Integrity Other Alter Execution Logic Modify Application Data Read Application Data

The product utilizes a shared resource in a concurrent manner, but it does not correctly synchronize access to the resource.

CWE-1058: Invokable Control Element in Multi-Thread Context with non-Final Static Storable or Member Element Other Reduce Reliability

The code contains a function or method that operates in a multi-threaded environment but owns an unsafe non-final static storable or member data element.

CWE-1322: Use of Blocking Code in Single-threaded, Non-blocking Context Availability DoS: Resource Consumption (CPU)

The product uses a non-blocking model that relies on a single threaded process for features such as scalability, but it contains code that can block when it is invoked.

CWE-255: Credentials Management Errors

Weaknesses in this category are related to the management of credentials.

Weaknesses:
CWE-256: Plaintext Storage of a Password Access Control Gain Privileges or Assume Identity

The product stores a password in plaintext within resources such as memory or files.

CWE-257: Storing Passwords in a Recoverable Format Access Control Confidentiality Gain Privileges or Assume Identity

The storage of passwords in a recoverable format makes them subject to password reuse attacks by malicious users. In fact, it should be noted that recoverable encrypted passwords provide no significant benefit over plaintext passwords since they are subject not only to reuse by malicious attackers but also by malicious insiders. If a system administrator can recover a password directly, or use a brute force search on the available information, the administrator can use the password on other accounts.

CWE-260: Password in Configuration File Access Control Gain Privileges or Assume Identity

The product stores a password in a configuration file that might be accessible to actors who do not know the password.

CWE-261: Weak Encoding for Password Access Control Gain Privileges or Assume Identity

Obscuring a password with a trivial encoding does not protect the password.

CWE-262: Not Using Password Aging Access Control Gain Privileges or Assume Identity

The product does not have a mechanism in place for managing password aging.

CWE-263: Password Aging with Long Expiration Access Control Gain Privileges or Assume Identity

The product supports password aging, but the expiration period is too long.

CWE-324: Use of a Key Past its Expiration Date Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.

CWE-521: Weak Password Requirements Access Control Gain Privileges or Assume Identity

The product does not require that users should have strong passwords.

CWE-523: Unprotected Transport of Credentials Access Control Gain Privileges or Assume Identity

Login pages do not use adequate measures to protect the user name and password while they are in transit from the client to the server.

CWE-549: Missing Password Field Masking Access Control Bypass Protection Mechanism

The product does not mask passwords during entry, increasing the potential for attackers to observe and capture passwords.

CWE-620: Unverified Password Change Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

When setting a new password for a user, the product does not require knowledge of the original password, or using another form of authentication.

CWE-640: Weak Password Recovery Mechanism for Forgotten Password Access Control Availability Integrity Other DoS: Resource Consumption (Other) Gain Privileges or Assume Identity Other

The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.

CWE-798: Use of Hard-coded Credentials Access Control Availability Confidentiality Integrity Other Bypass Protection Mechanism Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Other Read Application Data

The product contains hard-coded credentials, such as a password or cryptographic key.

CWE-916: Use of Password Hash With Insufficient Computational Effort Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.

CWE-1392: Use of Default Credentials Authentication Gain Privileges or Assume Identity

The product uses default credentials (such as passwords or cryptographic keys) for potentially critical functionality.

CWE-310: Cryptographic Issues

Weaknesses in this category are related to the design and implementation of data confidentiality and integrity. Frequently these deal with the use of encoding techniques, encryption libraries, and hashing algorithms. The weaknesses in this category could lead to a degradation of the quality data if they are not addressed.

Weaknesses:
CWE-261: Weak Encoding for Password Access Control Gain Privileges or Assume Identity

Obscuring a password with a trivial encoding does not protect the password.

CWE-324: Use of a Key Past its Expiration Date Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.

CWE-328: Use of Weak Hash Access Control Bypass Protection Mechanism

The product uses an algorithm that produces a digest (output value) that does not meet security expectations for a hash function that allows an adversary to reasonably determine the original input (preimage attack), find another input that can produce the same hash (2nd preimage attack), or find multiple inputs that evaluate to the same hash (birthday attack).

Child Weaknesses:
CWE-916: Use of Password Hash With Insufficient Computational Effort Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.

CWE-331: Insufficient Entropy Access Control Other Bypass Protection Mechanism Other

The product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others.

CWE-334: Small Space of Random Values Access Control Other Bypass Protection Mechanism Other

The number of possible random values is smaller than needed by the product, making it more susceptible to brute force attacks.

CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG) Access Control Other Bypass Protection Mechanism Other

The product uses a Pseudo-Random Number Generator (PRNG) but does not correctly manage seeds.

CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Access Control Bypass Protection Mechanism

The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.

CWE-347: Improper Verification of Cryptographic Signature Access Control Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data

The product does not verify, or incorrectly verifies, the cryptographic signature for data.

CWE-1204: Generation of Weak Initialization Vector (IV) Confidentiality Read Application Data

The product uses a cryptographic primitive that uses an Initialization Vector (IV), but the product does not generate IVs that are sufficiently unpredictable or unique according to the expected cryptographic requirements for that primitive.

CWE-1240: Use of a Cryptographic Primitive with a Risky Implementation Confidentiality Read Application Data

To fulfill the need for a cryptographic primitive, the product implements a cryptographic algorithm using a non-standard, unproven, or disallowed/non-compliant cryptographic implementation.

Child Weaknesses:
CWE-325: Missing Cryptographic Step Access Control Accountability Confidentiality Integrity Non-Repudiation Bypass Protection Mechanism Hide Activities Modify Application Data Read Application Data

The product does not implement a required step in a cryptographic algorithm, resulting in weaker encryption than advertised by the algorithm.

CWE-1214: Data Integrity Issues

Weaknesses in this category are related to a software system's data integrity components. Frequently these deal with the ability to ensure the integrity of data, such as messages, resource files, deployment files, and configuration files. The weaknesses in this category could lead to a degradation of data integrity quality if they are not addressed.

Weaknesses:
CWE-322: Key Exchange without Entity Authentication Access Control Confidentiality Bypass Protection Mechanism Read Application Data

The product performs a key exchange with an actor without verifying the identity of that actor.

CWE-346: Origin Validation Error Access Control Other Gain Privileges or Assume Identity Varies by Context

The product does not properly verify that the source of data or communication is valid.

CWE-347: Improper Verification of Cryptographic Signature Access Control Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data

The product does not verify, or incorrectly verifies, the cryptographic signature for data.

CWE-348: Use of Less Trusted Source Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.

CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data Access Control Integrity Bypass Protection Mechanism Modify Application Data

The product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted.

CWE-351: Insufficient Type Distinction Other Other

The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.

CWE-353: Missing Support for Integrity Check Integrity Non-Repudiation Other Hide Activities Other

The product uses a transmission protocol that does not include a mechanism for verifying the integrity of the data during transmission, such as a checksum.

CWE-354: Improper Validation of Integrity Check Value Integrity Non-Repudiation Other Hide Activities Modify Application Data Other

The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.

CWE-494: Download of Code Without Integrity Check Availability Confidentiality Integrity Other Alter Execution Logic Execute Unauthorized Code or Commands Other

The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code.

CWE-565: Reliance on Cookies without Validation and Integrity Checking Access Control Availability Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data

The product relies on the existence or values of cookies when performing security-critical operations, but it does not properly ensure that the setting is valid for the associated user.

CWE-649: Reliance on Obfuscation or Encryption of Security-Relevant Inputs without Integrity Checking Integrity Unexpected State

The product uses obfuscation or encryption of inputs that should not be mutable by an external actor, but the product does not use integrity checks to detect if those inputs have been modified.

CWE-829: Inclusion of Functionality from Untrusted Control Sphere Availability Confidentiality Integrity Execute Unauthorized Code or Commands

The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

CWE-924: Improper Enforcement of Message Integrity During Transmission in a Communication Channel Confidentiality Integrity Gain Privileges or Assume Identity

The product establishes a communication channel with an endpoint and receives a message from that endpoint, but it does not sufficiently ensure that the message was not modified during transmission.

CWE-137: Data Neutralization Issues

Weaknesses in this category are related to the creation or neutralization of data using an incorrect format.

Weaknesses:
CWE-76: Improper Neutralization of Equivalent Special Elements Other Other

The product correctly neutralizes certain special elements, but it improperly neutralizes equivalent special elements.

CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') Availability Confidentiality Integrity Non-Repudiation DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Hide Activities Modify Application Data Modify Files or Directories Read Application Data Read Files or Directories

The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') Access Control Availability Confidentiality Integrity Bypass Protection Mechanism Execute Unauthorized Code or Commands Read Application Data

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') Availability Confidentiality Integrity Other Alter Execution Logic Execute Unauthorized Code or Commands Modify Application Data Read Application Data

The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') Access Control Authentication Availability Confidentiality Integrity Bypass Protection Mechanism Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data Read Application Data

The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') Availability Confidentiality Integrity Execute Unauthorized Code or Commands Modify Application Data Read Application Data

The product constructs all or part of an LDAP query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended LDAP query when it is sent to a downstream component.

CWE-91: XML Injection (aka Blind XPath Injection) Availability Confidentiality Integrity Execute Unauthorized Code or Commands Modify Application Data Read Application Data

The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.

CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') Integrity Modify Application Data

The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.

CWE-94: Improper Control of Generation of Code ('Code Injection') Access Control Availability Confidentiality Integrity Non-Repudiation Bypass Protection Mechanism Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Hide Activities

The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

CWE-117: Improper Output Neutralization for Logs Availability Confidentiality Integrity Non-Repudiation Execute Unauthorized Code or Commands Hide Activities Modify Application Data

The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.

CWE-140: Improper Neutralization of Delimiters Integrity Unexpected State

The product does not neutralize or incorrectly neutralizes delimiters.

CWE-170: Improper Null Termination Access Control Availability Confidentiality Integrity Other Alter Execution Logic DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Execute Unauthorized Code or Commands Modify Memory Read Memory

The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.

CWE-463: Deletion of Data Structure Sentinel Authorization Availability Other Other

The accidental deletion of a data-structure sentinel can cause serious programming logic problems.

CWE-464: Addition of Data Structure Sentinel Integrity Modify Application Data

The accidental addition of a data-structure sentinel can cause serious programming logic problems.

CWE-641: Improper Restriction of Names for Files and Other Resources Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Read Application Data

The product constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name.

CWE-694: Use of Multiple Resources with Duplicate Identifier Access Control Other Bypass Protection Mechanism Quality Degradation

The product uses multiple resources that can have the same identifier, in a context in which unique identifiers are required.

CWE-791: Incomplete Filtering of Special Elements Integrity Unexpected State

The product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component.

CWE-838: Inappropriate Encoding for Output Context Availability Confidentiality Integrity Execute Unauthorized Code or Commands Modify Application Data

The product uses or specifies an encoding when generating output to a downstream component, but the specified encoding is not the same as the encoding that is expected by the downstream component.

CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') Confidentiality Integrity Execute Unauthorized Code or Commands Read Application Data

The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

CWE-1236: Improper Neutralization of Formula Elements in a CSV File Confidentiality Execute Unauthorized Code or Commands Read Application Data

The product saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product.

CWE-19: Data Processing Errors

Weaknesses in this category are typically found in functionality that processes data. Data processing is the manipulation of input to retrieve or save information.

Weaknesses:
CWE-130: Improper Handling of Length Parameter Inconsistency Confidentiality Integrity Modify Memory Read Memory Varies by Context

The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.

CWE-166: Improper Handling of Missing Special Element Availability DoS: Crash, Exit, or Restart

The product receives input from an upstream component, but it does not handle or incorrectly handles when an expected special element is missing.

CWE-167: Improper Handling of Additional Special Element Integrity Unexpected State

The product receives input from an upstream component, but it does not handle or incorrectly handles when an additional unexpected special element is provided.

CWE-168: Improper Handling of Inconsistent Special Elements Access Control Availability Non-Repudiation Bypass Protection Mechanism DoS: Crash, Exit, or Restart Hide Activities

The product does not properly handle input in which an inconsistency exists between two or more special characters or reserved words.

CWE-178: Improper Handling of Case Sensitivity Access Control Bypass Protection Mechanism

The product does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results.

CWE-182: Collapse of Data into Unsafe Value Access Control Bypass Protection Mechanism

The product filters data in a way that causes it to be reduced or "collapsed" into an unsafe value that violates an expected security property.

CWE-186: Overly Restrictive Regular Expression Access Control Bypass Protection Mechanism

A regular expression is overly restrictive, which prevents dangerous values from being detected.

CWE-229: Improper Handling of Values Integrity Unexpected State

The product does not properly handle when the expected number of values for parameters, fields, or arguments is not provided in input, or if those values are undefined.

CWE-233: Improper Handling of Parameters Integrity Unexpected State

The product does not properly handle when the expected number of parameters, fields, or arguments is not provided in input, or if those parameters are undefined.

CWE-237: Improper Handling of Structural Elements Integrity Unexpected State

The product does not handle or incorrectly handles inputs that are related to complex structures.

CWE-241: Improper Handling of Unexpected Data Type Integrity Other Unexpected State Varies by Context

The product does not handle or incorrectly handles when a particular element is not the expected type, e.g. it expects a digit (0-9) but is provided with a letter (A-Z).

CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) Availability DoS: Amplification DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory)

The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

CWE-472: External Control of Assumed-Immutable Web Parameter Integrity Modify Application Data

The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields.

CWE-601: URL Redirection to Untrusted Site ('Open Redirect') Access Control Confidentiality Other Bypass Protection Mechanism Gain Privileges or Assume Identity Other

The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.

CWE-611: Improper Restriction of XML External Entity Reference Availability Confidentiality Integrity Bypass Protection Mechanism DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Read Application Data Read Files or Directories

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

CWE-624: Executable Regular Expression Error Availability Confidentiality Integrity Execute Unauthorized Code or Commands

The product uses a regular expression that either (1) contains an executable component with user-controlled inputs, or (2) allows a user to enable execution by inserting pattern modifiers.

CWE-625: Permissive Regular Expression Access Control Bypass Protection Mechanism

The product uses a regular expression that does not sufficiently restrict the set of allowed values.

CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Availability DoS: Resource Consumption (Other)

The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

CWE-1024: Comparison of Incompatible Types Other Varies by Context

The product performs a comparison between two entities, but the entities are of different, incompatible types that cannot be guaranteed to provide correct results when they are directly compared.

CWE-1215: Data Validation Issues

Weaknesses in this category are related to a software system's components for input validation, output validation, or other kinds of validation. Validation is a frequently-used technique for ensuring that data conforms to expectations before it is further processed as input or output. There are many varieties of validation (see CWE-20, which is just for input validation). Validation is distinct from other techniques that attempt to modify data before processing it, although developers may consider all attempts to product "safe" inputs or outputs as some kind of validation. Regardless, validation is a powerful tool that is often used to minimize malformed data from entering the system, or indirectly avoid code injection or other potentially-malicious patterns when generating output. The weaknesses in this category could lead to a degradation of the quality of data flow in a system if they are not addressed.

Weaknesses:
CWE-179: Incorrect Behavior Order: Early Validation Access Control Integrity Bypass Protection Mechanism Execute Unauthorized Code or Commands

The product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification.

CWE-183: Permissive List of Allowed Inputs Access Control Bypass Protection Mechanism

The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.

CWE-184: Incomplete List of Disallowed Inputs Access Control Bypass Protection Mechanism

The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.

CWE-641: Improper Restriction of Names for Files and Other Resources Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Read Application Data

The product constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name.

CWE-1173: Improper Use of Validation Framework Integrity Unexpected State

The product does not use, or incorrectly uses, an input validation framework that is provided by the source language or an independent library.

CWE-1284: Improper Validation of Specified Quantity in Input Availability Integrity Other DoS: Resource Consumption (CPU) Modify Memory Read Memory Varies by Context

The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.

Child Weaknesses:
CWE-606: Unchecked Input for Loop Condition Availability DoS: Resource Consumption (CPU)

The product does not properly check inputs that are used for loop conditions, potentially leading to a denial of service or other consequences because of excessive looping.

CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input Other Varies by Context

The product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties.

CWE-1286: Improper Validation of Syntactic Correctness of Input Other Varies by Context

The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.

Child Weaknesses:
CWE-112: Missing XML Validation Integrity Unexpected State

The product accepts XML from an untrusted source but does not validate the XML against the proper schema.

CWE-1287: Improper Validation of Specified Type of Input Other Varies by Context

The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.

CWE-1288: Improper Validation of Consistency within Input Other Varies by Context

The product receives a complex input with multiple elements or fields that must be consistent with each other, but it does not validate or incorrectly validates that the input is actually consistent.

CWE-1289: Improper Validation of Unsafe Equivalence in Input Other Varies by Context

The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value.

CWE-1225: Documentation Issues

Weaknesses in this category are related to the documentation provided to support, create, or analyze a product.

Weaknesses:
CWE-1053: Missing Documentation for Design Other Increase Analytical Complexity Reduce Maintainability

The product does not have documentation that represents how it is designed.

CWE-1068: Inconsistency Between Implementation and Documented Design Other Increase Analytical Complexity Reduce Maintainability

The implementation of the product is not consistent with the design as described within the relevant documentation.

CWE-1110: Incomplete Design Documentation Other Increase Analytical Complexity Reduce Maintainability

The product's design documentation does not adequately describe control flow, data flow, system initialization, relationships between tasks, components, rationales, or other important aspects of the design.

CWE-1111: Incomplete I/O Documentation Other Increase Analytical Complexity Reduce Maintainability

The product's documentation does not adequately define inputs, outputs, or system/software interfaces.

CWE-1112: Incomplete Documentation of Program Execution Other Increase Analytical Complexity Reduce Maintainability

The document does not fully define all mechanisms that are used to control or influence how product-specific programs are executed.

CWE-1118: Insufficient Documentation of Error Handling Techniques Other Reduce Maintainability

The documentation does not sufficiently describe the techniques that are used for error handling, exception processing, or similar mechanisms.

CWE-1227: Encapsulation Issues

Weaknesses in this category are related to issues surrounding the bundling of data with the methods intended to operate on that data.

Weaknesses:
CWE-1054: Invocation of a Control Element at an Unnecessarily Deep Horizontal Layer Other Reduce Maintainability

The code at one architectural layer invokes code that resides at a deeper layer than the adjacent layer, i.e., the invocation skips at least one layer, and the invoked code is not part of a vertical utility layer that can be referenced from any horizontal layer.

CWE-1057: Data Access Operations Outside of Expected Data Manager Component Availability Reduce Performance

The product uses a dedicated, central data manager component as required by design, but it contains code that performs data-access operations that do not use this data manager.

CWE-1062: Parent Class with References to Child Class Other Reduce Reliability

The code has a parent class that contains references to a child class, its methods, or its members.

CWE-1083: Data Access from Outside Expected Data Manager Component Other Reduce Reliability

The product is intended to manage data access through a particular data manager component such as a relational or non-SQL database, but it contains code that performs data access operations without using that component.

CWE-1090: Method Containing Access of a Member Element from Another Class Other Increase Analytical Complexity Reduce Maintainability

A method for a class performs an operation that directly accesses a member element from another class.

CWE-1100: Insufficient Isolation of System-Dependent Functions Other Reduce Maintainability

The product or code does not isolate system-dependent functionality into separate standalone modules.

CWE-1105: Insufficient Encapsulation of Machine-Dependent Functionality Other Reduce Maintainability

The product or code uses machine-dependent functionality, but it does not sufficiently encapsulate or isolate this functionality from the rest of the code.

CWE-389: Error Conditions, Return Values, Status Codes

This category includes weaknesses that occur if a function does not generate the correct return/status code, or if the application does not handle all possible return/status codes that could be generated by a function. This type of problem is most often found in conditions that are rarely encountered during the normal operation of the product. Presumably, most bugs related to common conditions are found and eliminated during development and testing. In some cases, the attacker can directly control or influence the environment to trigger the rare conditions.

Weaknesses:
CWE-209: Generation of Error Message Containing Sensitive Information Confidentiality Read Application Data

The product generates an error message that includes sensitive information about its environment, users, or associated data.

CWE-248: Uncaught Exception Availability Confidentiality DoS: Crash, Exit, or Restart Read Application Data

An exception is thrown from a function, but it is not caught.

CWE-252: Unchecked Return Value Availability Integrity DoS: Crash, Exit, or Restart Unexpected State

The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

CWE-253: Incorrect Check of Function Return Value Availability Integrity DoS: Crash, Exit, or Restart Unexpected State

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

CWE-390: Detection of Error Condition Without Action Integrity Other Alter Execution Logic Unexpected State Varies by Context

The product detects a specific error, but takes no actions to handle the error.

CWE-391: Unchecked Error Condition Integrity Other Alter Execution Logic Unexpected State Varies by Context

[PLANNED FOR DEPRECATION. SEE MAINTENANCE NOTES AND CONSIDER CWE-252, CWE-248, OR CWE-1069.] Ignoring exceptions and other error conditions may allow an attacker to induce unexpected behavior unnoticed.

CWE-392: Missing Report of Error Condition Integrity Other Unexpected State Varies by Context

The product encounters an error but does not provide a status code or return value to indicate that an error has occurred.

CWE-393: Return of Wrong Status Code Integrity Other Alter Execution Logic Unexpected State

A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.

CWE-394: Unexpected Status Code or Return Value Integrity Other Alter Execution Logic Unexpected State

The product does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the product.

CWE-395: Use of NullPointerException Catch to Detect NULL Pointer Dereference Availability DoS: Resource Consumption (CPU)

Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.

CWE-396: Declaration of Catch for Generic Exception Non-Repudiation Other Hide Activities

Catching overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities.

CWE-397: Declaration of Throws for Generic Exception Non-Repudiation Other Alter Execution Logic Hide Activities

The product throws or raises an overly broad exceptions that can hide important details and produce inappropriate responses to certain conditions.

CWE-544: Missing Standardized Error Handling Mechanism Integrity Other Quality Degradation Unexpected State Varies by Context

The product does not use a standardized method for handling errors throughout the code, which might introduce inconsistent error handling and resultant weaknesses.

CWE-584: Return Inside Finally Block Other Alter Execution Logic

The code has a return statement inside a finally block, which will cause any thrown exception in the try block to be discarded.

CWE-617: Reachable Assertion Availability DoS: Crash, Exit, or Restart

The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

CWE-756: Missing Custom Error Page Confidentiality Read Application Data

The product does not return custom error pages to the user, possibly exposing sensitive information.

CWE-569: Expression Issues

Weaknesses in this category are related to incorrectly written expressions within code.

Weaknesses:
CWE-480: Use of Incorrect Operator Other Alter Execution Logic

The product accidentally uses the wrong operator, which changes the logic in security-relevant ways.

CWE-570: Expression is Always False Other Quality Degradation Varies by Context

The product contains an expression that will always evaluate to false.

CWE-571: Expression is Always True Other Quality Degradation Varies by Context

The product contains an expression that will always evaluate to true.

CWE-783: Operator Precedence Logic Error Availability Confidentiality Integrity Unexpected State Varies by Context

The product uses an expression in which operator precedence causes incorrect logic to be used.

CWE-1219: File Handling Issues

Weaknesses in this category are related to the handling of files within a software system. Files, directories, and folders are so central to information technology that many different weaknesses and variants have been discovered.

Weaknesses:
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Files or Directories Read Files or Directories

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

CWE-41: Improper Resolution of Path Equivalence Access Control Confidentiality Integrity Bypass Protection Mechanism Modify Files or Directories Read Files or Directories

The product is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to generate multiple names for the same object.

CWE-59: Improper Link Resolution Before File Access ('Link Following') Access Control Confidentiality Integrity Other Bypass Protection Mechanism Execute Unauthorized Code or Commands Modify Files or Directories Read Files or Directories

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

CWE-66: Improper Handling of File Names that Identify Virtual Resources Other Other

The product does not handle or incorrectly handles a file name that identifies a "virtual" resource that is not directly specified within the directory that is associated with the file name, causing the product to perform file-based operations on a resource that is not a file.

CWE-378: Creation of Temporary File With Insecure Permissions Authorization Confidentiality Integrity Other Other Read Application Data

Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.

CWE-379: Creation of Temporary File in Directory with Insecure Permissions Confidentiality Read Application Data

The product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.

CWE-426: Untrusted Search Path Access Control Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Read Files or Directories

The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.

CWE-427: Uncontrolled Search Path Element Availability Confidentiality Integrity Execute Unauthorized Code or Commands

The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

CWE-428: Unquoted Search Path or Element Availability Confidentiality Integrity Execute Unauthorized Code or Commands

The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.

CWE-429: Handler Errors

Weaknesses in this category are related to improper management of handlers.

Weaknesses:
CWE-430: Deployment of Wrong Handler Integrity Other Unexpected State Varies by Context

The wrong "handler" is assigned to process an object.

CWE-431: Missing Handler Other Varies by Context

A handler is not available or implemented.

CWE-434: Unrestricted Upload of File with Dangerous Type Availability Confidentiality Integrity Execute Unauthorized Code or Commands

The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.

CWE-199: Information Management Errors

Weaknesses in this category are related to improper handling of sensitive information.

Weaknesses:
CWE-201: Insertion of Sensitive Information Into Sent Data Confidentiality Read Application Data Read Files or Directories Read Memory

The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.

CWE-204: Observable Response Discrepancy Access Control Confidentiality Bypass Protection Mechanism Read Application Data

The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere.

CWE-205: Observable Behavioral Discrepancy Access Control Confidentiality Bypass Protection Mechanism Read Application Data

The product's behaviors indicate important differences that may be observed by unauthorized actors in a way that reveals (1) its internal state or decision process, or (2) differences from other products with equivalent functionality.

CWE-208: Observable Timing Discrepancy Access Control Confidentiality Bypass Protection Mechanism Read Application Data

Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.

CWE-209: Generation of Error Message Containing Sensitive Information Confidentiality Read Application Data

The product generates an error message that includes sensitive information about its environment, users, or associated data.

CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer Confidentiality Read Application Data Read Files or Directories

The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.

CWE-213: Exposure of Sensitive Information Due to Incompatible Policies Confidentiality Read Application Data

The product's intended functionality exposes information to certain actors in accordance with the developer's security policy, but this information is regarded as sensitive according to the intended security policies of other stakeholders such as the product's administrator, users, or others whose information is being processed.

CWE-215: Insertion of Sensitive Information Into Debugging Code Confidentiality Read Application Data

The product inserts sensitive information into debugging code, which could expose this information if the debugging code is not disabled in production.

CWE-312: Cleartext Storage of Sensitive Information Confidentiality Read Application Data

The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.

CWE-319: Cleartext Transmission of Sensitive Information Confidentiality Integrity Modify Files or Directories Other Read Application Data

The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.

CWE-359: Exposure of Private Personal Information to an Unauthorized Actor Confidentiality Read Application Data

The product does not properly prevent a person's private, personal information from being accessed by actors who either (1) are not explicitly authorized to access the information or (2) do not have the implicit consent of the person about whom the information is collected.

CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere Confidentiality Read Application Data

The product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does.

Child Weaknesses:
CWE-214: Invocation of Process Using Visible Sensitive Information Confidentiality Read Application Data

A process is invoked with sensitive command-line arguments, environment variables, or other elements that can be seen by other processes on the operating system.

CWE-524: Use of Cache Containing Sensitive Information Confidentiality Read Application Data

The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.

CWE-538: Insertion of Sensitive Information into Externally-Accessible File or Directory Confidentiality Read Files or Directories

The product places sensitive information into files or directories that are accessible to actors who are allowed to have access to the files, but not to the sensitive information.

CWE-921: Storage of Sensitive Data in a Mechanism without Access Control Confidentiality Integrity Modify Application Data Modify Files or Directories Read Application Data Read Files or Directories

The product stores sensitive information in a file system or device that does not have built-in access control.

CWE-1230: Exposure of Sensitive Information Through Metadata Confidentiality Read Application Data

The product prevents direct access to a resource containing sensitive information, but it does not sufficiently limit access to metadata that is derived from the original, sensitive information.

CWE-452: Initialization and Cleanup Errors

Weaknesses in this category occur in behaviors that are used for initialization and breakdown.

Weaknesses:
CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer Confidentiality Read Application Data Read Files or Directories

The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.

CWE-454: External Initialization of Trusted Variables or Data Stores Integrity Modify Application Data

The product initializes critical internal variables or data stores using inputs that can be modified by untrusted actors.

CWE-455: Non-exit on Failed Initialization Integrity Other Alter Execution Logic Modify Application Data

The product does not exit or otherwise modify its operation when security-relevant errors occur during initialization, such as when a configuration file has a format error or a hardware security module (HSM) cannot be activated, which can cause the product to execute in a less secure fashion than intended by the administrator.

CWE-459: Incomplete Cleanup Confidentiality Integrity Other DoS: Resource Consumption (Other) Modify Application Data Other Read Application Data

The product does not properly "clean up" and remove temporary or supporting resources after they have been used.

CWE-1051: Initialization with Hard-Coded Network Resource Configuration Data Other Reduce Reliability

The product initializes data using hard-coded values that act as network resource identifiers.

CWE-1052: Excessive Use of Hard-Coded Literals in Initialization Other Reduce Maintainability

The product initializes a data element using a hard-coded literal that is not a simple integer or static constant element.

CWE-1188: Initialization of a Resource with an Insecure Default Other Varies by Context

The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.

CWE-320: Key Management Errors

Weaknesses in this category are related to errors in the management of cryptographic keys.

Weaknesses:
CWE-322: Key Exchange without Entity Authentication Access Control Confidentiality Bypass Protection Mechanism Read Application Data

The product performs a key exchange with an actor without verifying the identity of that actor.

CWE-323: Reusing a Nonce, Key Pair in Encryption Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

Nonces should be used for the present occasion and only once.

CWE-324: Use of a Key Past its Expiration Date Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity

The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.

CWE-798: Use of Hard-coded Credentials Access Control Availability Confidentiality Integrity Other Bypass Protection Mechanism Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Other Read Application Data

The product contains hard-coded credentials, such as a password or cryptographic key.

CWE-1216: Lockout Mechanism Errors

Weaknesses in this category are related to a software system's lockout mechanism. Frequently these deal with scenarios that take effect in case of multiple failed attempts to access a given resource. The weaknesses in this category could lead to a degradation of access to system assets if they are not addressed.

Weaknesses:
CWE-645: Overly Restrictive Account Lockout Mechanism Availability DoS: Resource Consumption (Other)

The product contains an account lockout protection mechanism, but the mechanism is too restrictive and can be triggered too easily, which allows attackers to deny service to legitimate users by causing their accounts to be locked out.

CWE-1218: Memory Buffer Errors

Weaknesses in this category are related to the handling of memory buffers within a software system.

Weaknesses:
CWE-125: Out-of-bounds Read Availability Confidentiality Other Bypass Protection Mechanism DoS: Crash, Exit, or Restart Read Memory Varies by Context

The product reads data past the end, or before the beginning, of the intended buffer.

CWE-131: Incorrect Calculation of Buffer Size Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.

CWE-786: Access of Memory Location Before Start of Buffer Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product reads or writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.

Child Weaknesses:
CWE-124: Buffer Underwrite ('Buffer Underflow') Access Control Availability Confidentiality Integrity Other Bypass Protection Mechanism DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Other

The product writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.

CWE-787: Out-of-bounds Write Availability Integrity Other DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Unexpected State

The product writes data past the end, or before the beginning, of the intended buffer.

Child Weaknesses:
CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') Availability Confidentiality Integrity DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) Execute Unauthorized Code or Commands Modify Memory

The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.

CWE-788: Access of Memory Location After End of Buffer Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product reads or writes to a buffer using an index or pointer that references a memory location after the end of the buffer.

CWE-805: Buffer Access with Incorrect Length Value Availability Confidentiality Integrity DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) Execute Unauthorized Code or Commands Modify Memory Read Memory

The product uses a sequential operation to read or write a buffer, but it uses an incorrect length value that causes it to access memory that is outside of the bounds of the buffer.

CWE-1284: Improper Validation of Specified Quantity in Input Availability Integrity Other DoS: Resource Consumption (CPU) Modify Memory Read Memory Varies by Context

The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.

CWE-189: Numeric Errors

Weaknesses in this category are related to improper calculation or conversion of numbers.

Weaknesses:
CWE-128: Wrap-around Error Access Control Availability Confidentiality Integrity Bypass Protection Mechanism DoS: Crash, Exit, or Restart DoS: Instability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Execute Unauthorized Code or Commands Modify Memory

Wrap around errors occur whenever a value is incremented past the maximum value for its type and therefore "wraps around" to a very small, negative, or undefined value.

CWE-190: Integer Overflow or Wraparound Access Control Availability Confidentiality Integrity Other Alter Execution Logic Bypass Protection Mechanism DoS: Crash, Exit, or Restart DoS: Instability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Execute Unauthorized Code or Commands Modify Memory

The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

CWE-191: Integer Underflow (Wrap or Wraparound) Access Control Availability Confidentiality Integrity Bypass Protection Mechanism DoS: Crash, Exit, or Restart DoS: Instability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Execute Unauthorized Code or Commands Modify Memory

The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.

CWE-193: Off-by-one Error Access Control Availability Confidentiality Integrity Bypass Protection Mechanism DoS: Crash, Exit, or Restart DoS: Instability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Execute Unauthorized Code or Commands Modify Memory

A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

CWE-369: Divide By Zero Availability DoS: Crash, Exit, or Restart

The product divides a value by zero.

CWE-681: Incorrect Conversion between Numeric Types Integrity Other Quality Degradation Unexpected State

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

CWE-839: Numeric Range Comparison Without Minimum Check Availability Confidentiality Integrity DoS: Resource Consumption (Other) Execute Unauthorized Code or Commands Modify Application Data Modify Memory Read Memory

The product checks a value to ensure that it is less than or equal to a maximum, but it does not also verify that the value is greater than or equal to the minimum.

CWE-1335: Incorrect Bitwise Shift of Integer Integrity DoS: Crash, Exit, or Restart

An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value causing an unexpected or indeterminate result.

CWE-1339: Insufficient Precision or Accuracy of a Real Number Access Control Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Application Data Read Application Data

The product processes a real number with an implementation in which the number's representation does not preserve required accuracy and precision in its fractional part, causing an incorrect result.

CWE-1389: Incorrect Parsing of Numbers with Different Radices Confidentiality Integrity Alter Execution Logic Bypass Protection Mechanism Read Application Data

The product parses numeric input assuming base 10 (decimal) values, but it does not account for inputs that use a different base number (radix).

CWE-275: Permission Issues

Weaknesses in this category are related to improper assignment or handling of permissions.

Weaknesses:
CWE-276: Incorrect Default Permissions Confidentiality Integrity Modify Application Data Read Application Data

During installation, installed file permissions are set to allow anyone to modify those files.

CWE-277: Insecure Inherited Permissions Confidentiality Integrity Modify Application Data Read Application Data

A product defines a set of insecure permissions that are inherited by objects that are created by the program.

CWE-278: Insecure Preserved Inherited Permissions Confidentiality Integrity Modify Application Data Read Application Data

A product inherits a set of insecure permissions for an object, e.g. when copying from an archive file, without user awareness or involvement.

CWE-279: Incorrect Execution-Assigned Permissions Confidentiality Integrity Modify Application Data Read Application Data

While it is executing, the product sets the permissions of an object in a way that violates the intended permissions that have been specified by the user.

CWE-280: Improper Handling of Insufficient Permissions or Privileges Other Alter Execution Logic Other

The product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. This may cause it to follow unexpected code paths that may leave the product in an invalid state.

CWE-281: Improper Preservation of Permissions Confidentiality Integrity Modify Application Data Read Application Data

The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.

CWE-618: Exposed Unsafe ActiveX Method Other Other

An ActiveX control is intended for use in a web browser, but it exposes dangerous methods that perform actions that are outside of the browser's security model (e.g. the zone or domain).

CWE-766: Critical Data Element Declared Public Confidentiality Integrity Other Modify Application Data Read Application Data Reduce Maintainability

The product declares a critical variable, field, or member to be public when intended security policy requires it to be private.

CWE-767: Access to Critical Private Variable via Public Method Integrity Other Modify Application Data Other

The product defines a public method that reads or modifies a private variable.

CWE-465: Pointer Issues

Weaknesses in this category are related to improper handling of pointers.

Weaknesses:
CWE-466: Return of Pointer Value Outside of Expected Range Confidentiality Integrity Modify Memory Read Memory

A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference.

CWE-468: Incorrect Pointer Scaling Confidentiality Integrity Modify Memory Read Memory

In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly scaled.

CWE-469: Use of Pointer Subtraction to Determine Size Access Control Availability Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Memory Read Memory

The product subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

CWE-476: NULL Pointer Dereference Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product dereferences a pointer that it expects to be valid but is NULL.

CWE-587: Assignment of a Fixed Address to a Pointer Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory Reduce Maintainability Reduce Reliability

The product sets a pointer to a specific address other than NULL or 0.

CWE-763: Release of Invalid Pointer or Reference Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory

The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.

CWE-822: Untrusted Pointer Dereference Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer.

CWE-823: Use of Out-of-range Pointer Offset Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product performs pointer arithmetic on a valid pointer, but it uses an offset that can point outside of the intended range of valid memory locations for the resulting pointer.

CWE-824: Access of Uninitialized Pointer Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Read Memory

The product accesses or uses a pointer that has not been initialized.

CWE-825: Expired Pointer Dereference Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Read Memory

The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.

CWE-265: Privilege Issues

Weaknesses in this category occur with improper handling, assignment, or management of privileges. A privilege is a property of an agent, such as a user. It lets the agent do things that are not ordinarily allowed. For example, there are privileges which allow an agent to perform maintenance functions such as restart a computer.

Weaknesses:
CWE-243: Creation of chroot Jail Without Changing Working Directory Confidentiality Read Files or Directories

The product uses the chroot() system call to create a jail, but does not change the working directory afterward. This does not prevent access to files outside of the jail.

CWE-250: Execution with Unnecessary Privileges Access Control Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Read Application Data

The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.

CWE-266: Incorrect Privilege Assignment Access Control Gain Privileges or Assume Identity

A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.

CWE-267: Privilege Defined With Unsafe Actions Access Control Gain Privileges or Assume Identity

A particular privilege, role, capability, or right can be used to perform unsafe actions that were not intended, even when it is assigned to the correct entity.

CWE-268: Privilege Chaining Access Control Gain Privileges or Assume Identity

Two distinct privileges, roles, capabilities, or rights can be combined in a way that allows an entity to perform unsafe actions that would not be allowed without that combination.

CWE-270: Privilege Context Switching Error Access Control Gain Privileges or Assume Identity

The product does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control.

CWE-272: Least Privilege Violation Access Control Confidentiality Gain Privileges or Assume Identity Read Application Data Read Files or Directories

The elevated privilege level required to perform operations such as chroot() should be dropped immediately after the operation is performed.

CWE-273: Improper Check for Dropped Privileges Access Control Non-Repudiation Gain Privileges or Assume Identity Hide Activities

The product attempts to drop privileges but does not check or incorrectly checks to see if the drop succeeded.

CWE-274: Improper Handling of Insufficient Privileges Other Alter Execution Logic Other

The product does not handle or incorrectly handles when it has insufficient privileges to perform an operation, leading to resultant weaknesses.

CWE-280: Improper Handling of Insufficient Permissions or Privileges Other Alter Execution Logic Other

The product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. This may cause it to follow unexpected code paths that may leave the product in an invalid state.

CWE-501: Trust Boundary Violation Access Control Bypass Protection Mechanism

The product mixes trusted and untrusted data in the same data structure or structured message.

CWE-580: clone() Method Without super.clone() Integrity Other Quality Degradation Unexpected State

The product contains a clone() method that does not call super.clone() to obtain the new object.

CWE-648: Incorrect Use of Privileged APIs Access Control Availability Confidentiality Integrity Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Read Application Data

The product does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly.

CWE-1213: Random Number Issues

Weaknesses in this category are related to a software system's random number generation.

Weaknesses:
CWE-331: Insufficient Entropy Access Control Other Bypass Protection Mechanism Other

The product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others.

CWE-334: Small Space of Random Values Access Control Other Bypass Protection Mechanism Other

The number of possible random values is smaller than needed by the product, making it more susceptible to brute force attacks.

CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG) Access Control Other Bypass Protection Mechanism Other

The product uses a Pseudo-Random Number Generator (PRNG) but does not correctly manage seeds.

CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Access Control Bypass Protection Mechanism

The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.

CWE-341: Predictable from Observable State Other Varies by Context

A number or object is predictable based on observations that the attacker can make about the state of the system or network, such as time, process ID, etc.

CWE-342: Predictable Exact Value from Previous Values Other Varies by Context

An exact value or random number can be precisely predicted by observing previous values.

CWE-343: Predictable Value Range from Previous Values Other Varies by Context

The product's random number generator produces a series of values which, when observed, can be used to infer a relatively small range of possibilities for the next value that could be generated.

CWE-344: Use of Invariant Value in Dynamically Changing Context Other Varies by Context

The product uses a constant value, name, or reference, but this value can (or should) vary across different environments.

CWE-1241: Use of Predictable Algorithm in Random Number Generator Confidentiality Read Application Data

The device uses an algorithm that is predictable and generates a pseudo-random number.

CWE-411: Resource Locking Problems

Weaknesses in this category are related to improper handling of locks that are used to control access to resources.

Weaknesses:
CWE-412: Unrestricted Externally Accessible Lock Availability DoS: Resource Consumption (Other)

The product properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control.

CWE-413: Improper Resource Locking Availability Integrity DoS: Crash, Exit, or Restart DoS: Instability Modify Application Data

The product does not lock or does not correctly lock a resource when the product must have exclusive access to the resource.

CWE-414: Missing Lock Check Availability Integrity DoS: Crash, Exit, or Restart DoS: Instability Modify Application Data

A product does not check to see if a lock is present before performing sensitive operations on a resource.

CWE-609: Double-Checked Locking Integrity Other Alter Execution Logic Modify Application Data

The product uses double-checked locking to access a resource without the overhead of explicit synchronization, but the locking is insufficient.

CWE-764: Multiple Locks of a Critical Resource Availability Integrity DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) Unexpected State

The product locks a critical resource more times than intended, leading to an unexpected state in the system.

CWE-765: Multiple Unlocks of a Critical Resource Availability Integrity DoS: Crash, Exit, or Restart Modify Memory Unexpected State

The product unlocks a critical resource more times than intended, leading to an unexpected state in the system.

CWE-832: Unlock of a Resource that is not Locked Availability Confidentiality Integrity Other DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Other

The product attempts to unlock a resource that is not locked.

CWE-833: Deadlock Availability DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Other)

The product contains multiple threads or executable segments that are waiting for each other to release a necessary lock, resulting in deadlock.

CWE-399: Resource Management Errors

Weaknesses in this category are related to improper management of system resources.

Weaknesses:
CWE-73: External Control of File Name or Path Availability Confidentiality Integrity DoS: Crash, Exit, or Restart DoS: Resource Consumption (Other) Execute Unauthorized Code or Commands Modify Files or Directories Read Files or Directories

The product allows user input to control or influence paths or file names that are used in filesystem operations.

CWE-403: Exposure of File Descriptor to Unintended Control Sphere ('File Descriptor Leak') Confidentiality Integrity Modify Application Data Read Application Data

A process does not close sensitive file descriptors before invoking a child process, which allows the child to perform unauthorized I/O operations using those descriptors.

CWE-410: Insufficient Resource Pool Availability Integrity Other DoS: Crash, Exit, or Restart Other

The product's resource pool is not large enough to handle peak demand, which allows an attacker to prevent others from accessing the resource by using a (relatively) large number of requests for resources.

CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Availability Confidentiality Integrity Other Alter Execution Logic DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Other Read Application Data

The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.

CWE-502: Deserialization of Untrusted Data Availability Integrity Other DoS: Resource Consumption (CPU) Modify Application Data Unexpected State Varies by Context

The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

CWE-619: Dangling Database Cursor ('Cursor Injection') Confidentiality Integrity Modify Application Data Read Application Data

If a database cursor is not closed properly, then it could become accessible to other users while retaining the same privileges that were originally assigned, leaving the cursor "dangling."

CWE-641: Improper Restriction of Names for Files and Other Resources Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Read Application Data

The product constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name.

CWE-694: Use of Multiple Resources with Duplicate Identifier Access Control Other Bypass Protection Mechanism Quality Degradation

The product uses multiple resources that can have the same identifier, in a context in which unique identifiers are required.

CWE-763: Release of Invalid Pointer or Reference Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory

The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.

CWE-770: Allocation of Resources Without Limits or Throttling Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other)

The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

CWE-771: Missing Reference to Active Allocated Resource Availability DoS: Resource Consumption (Other)

The product does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed.

CWE-772: Missing Release of Resource after Effective Lifetime Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other)

The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.

CWE-826: Premature Release of Resource During Expected Lifetime Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Application Data Modify Memory Read Application Data Read Memory

The product releases a resource that is still intended to be used by itself or another actor.

CWE-908: Use of Uninitialized Resource Availability Confidentiality DoS: Crash, Exit, or Restart Read Application Data Read Memory

The product uses or accesses a resource that has not been initialized.

CWE-909: Missing Initialization of Resource Availability Confidentiality DoS: Crash, Exit, or Restart Read Application Data Read Memory

The product does not initialize a critical resource.

CWE-910: Use of Expired File Descriptor Availability Confidentiality DoS: Crash, Exit, or Restart Read Files or Directories

The product uses or accesses a file descriptor after it has been closed.

CWE-911: Improper Update of Reference Count Availability DoS: Crash, Exit, or Restart DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other)

The product uses a reference count to manage a resource, but it does not update or incorrectly updates the reference count.

CWE-914: Improper Control of Dynamically-Identified Variables Integrity Other Alter Execution Logic Execute Unauthorized Code or Commands Modify Application Data Varies by Context

The product does not properly restrict reading from or writing to dynamically-identified variables.

CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes Integrity Other Alter Execution Logic Execute Unauthorized Code or Commands Modify Application Data Varies by Context

The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.

CWE-920: Improper Restriction of Power Consumption Availability DoS: Crash, Exit, or Restart DoS: Resource Consumption (Other)

The product operates in an environment in which power is a limited resource that cannot be automatically replenished, but the product does not properly restrict the amount of power that its operation consumes.

CWE-1188: Initialization of a Resource with an Insecure Default Other Varies by Context

The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.

CWE-1341: Multiple Releases of Same Resource or Handle Availability Integrity DoS: Crash, Exit, or Restart

The product attempts to close or release a resource or handle more than once, without any successful open between the close operations.

CWE-387: Signal Errors

Weaknesses in this category are related to the improper handling of signals.

Weaknesses:
CWE-364: Signal Handler Race Condition Access Control Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Modify Application Data Modify Memory

The product uses a signal handler that introduces a race condition.

CWE-371: State Issues

Weaknesses in this category are related to improper management of system state.

Weaknesses:
CWE-15: External Control of System or Configuration Setting Other Varies by Context

One or more system settings or configuration elements can be externally controlled by a user.

CWE-372: Incomplete Internal State Distinction Integrity Other Unexpected State Varies by Context

The product does not properly determine which state it is in, causing it to assume it is in state X when in fact it is in state Y, causing it to perform incorrect operations in a security-relevant manner.

CWE-374: Passing Mutable Objects to an Untrusted Method Integrity Modify Memory

The product sends non-cloned mutable data as an argument to a method or function.

CWE-375: Returning a Mutable Object to an Untrusted Caller Access Control Integrity Modify Memory

Sending non-cloned mutable data as a return value may result in that data being altered or deleted by the calling function.

CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls Integrity Unexpected State

The product invokes code that is believed to be reentrant, but the code performs a call that unintentionally produces a nested invocation of the non-reentrant code.

CWE-133: String Errors

Weaknesses in this category are related to the creation and modification of strings.

Weaknesses:
CWE-134: Use of Externally-Controlled Format String Availability Confidentiality Integrity Execute Unauthorized Code or Commands Modify Memory Read Memory

The product uses a function that accepts a format string as an argument, but the format string originates from an external source.

CWE-135: Incorrect Calculation of Multi-Byte String Length Availability Confidentiality Integrity DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Execute Unauthorized Code or Commands Read Memory

The product does not correctly calculate the length of strings that can contain wide or multi-byte characters.

CWE-480: Use of Incorrect Operator Other Alter Execution Logic

The product accidentally uses the wrong operator, which changes the logic in security-relevant ways.

CWE-136: Type Errors

Weaknesses in this category are caused by improper data type transformation or improper handling of multiple data types.

Weaknesses:
CWE-681: Incorrect Conversion between Numeric Types Integrity Other Quality Degradation Unexpected State

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') Availability Confidentiality Integrity DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Modify Memory Read Memory

The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

CWE-1287: Improper Validation of Specified Type of Input Other Varies by Context

The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.

CWE-355: User Interface Security Issues

Weaknesses in this category are related to or introduced in the User Interface (UI).

Weaknesses:
CWE-356: Product UI does not Warn User of Unsafe Actions Non-Repudiation Hide Activities

The product's user interface does not warn the user before undertaking an unsafe action on behalf of that user. This makes it easier for attackers to trick users into inflicting damage to their system.

CWE-357: Insufficient UI Warning of Dangerous Operations Non-Repudiation Hide Activities

The user interface provides a warning to a user regarding dangerous or sensitive operations, but the warning is not noticeable enough to warrant attention.

CWE-447: Unimplemented or Unsupported Feature in UI Other Unexpected State Varies by Context

A UI function for a security feature appears to be supported and gives feedback to the user that suggests that it is supported, but the underlying functionality is not implemented.

CWE-448: Obsolete Feature in UI Other Quality Degradation Varies by Context

A UI function is obsolete and the product does not warn the user.

CWE-449: The UI Performs the Wrong Action Other Quality Degradation Varies by Context

The UI performs the wrong action with respect to the user's request.

CWE-549: Missing Password Field Masking Access Control Bypass Protection Mechanism

The product does not mask passwords during entry, increasing the potential for attackers to observe and capture passwords.

CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User Confidentiality Integrity Other

The product displays information or identifiers to a user, but the display mechanism does not make it easy for the user to distinguish between visually similar or identical glyphs (homoglyphs), which may cause the user to misinterpret a glyph and perform an unintended, insecure action.

CWE-1021: Improper Restriction of Rendered UI Layers or Frames Access Control Bypass Protection Mechanism Gain Privileges or Assume Identity Modify Application Data Read Application Data

The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain, which can lead to user confusion about which interface the user is interacting with.

CWE-1217: User Session Errors

Weaknesses in this category are related to session management. Frequently these deal with the information or status about each user and their access rights for the duration of multiple requests. The weaknesses in this category could lead to a degradation of the quality of session management if they are not addressed.

Weaknesses:
CWE-488: Exposure of Data Element to Wrong Session Confidentiality Read Application Data

The product does not sufficiently enforce boundaries between the states of different sessions, causing data to be provided to, or used by, the wrong session.

CWE-613: Insufficient Session Expiration Access Control Bypass Protection Mechanism

According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."

CWE-841: Improper Enforcement of Behavioral Workflow Other Alter Execution Logic

The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence.