CWE IDs Detected by CodeSonar

This section lists the closely-corresponding CWE IDs for weaknesses that are detected by CodeSonar. Note that not all CodeSonar warning classes have a closely-corresponding CWE ID, and not all CWE IDs have a closely-corresponding CodeSonar warning class.

This version of CodeSonar (9.0p0) uses CWE 4.16, published November 19, 2024.

CWE Entity TypeC/C++ Warning Classes Java Warning Classes C# Warning Classes Kotlin Warning Classes Python Warning Classes
CWE:14 Compiler Removal of Code to Clear Buffers Weakness - - - -
CWE:15 External Control of System or Configuration Setting Weakness - - - -
CWE:20 Improper Input Validation Weakness - - -
CWE:22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') Weakness - -
CWE:73 External Control of File Name or Path Weakness - - - -
CWE:74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Weakness- - -
CWE:78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') Weakness - -
CWE:79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') Weakness- - -
CWE:81 Improper Neutralization of Script in an Error Message Web Page Weakness- - -
CWE:88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') Weakness - - - -
CWE:89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') Weakness - -
CWE:90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') Weakness - -
CWE:94 Improper Control of Generation of Code ('Code Injection') Weakness- -
CWE:95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') Weakness- - -
CWE:99 Improper Control of Resource Identifiers ('Resource Injection') Weakness - - - -
CWE:103 Struts: Incomplete validate() Method Definition Weakness- - - -
CWE:113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') Weakness- - -
CWE:114 Process Control Weakness - -
CWE:117 Improper Output Neutralization for Logs Weakness- - -
CWE:118 Incorrect Access of Indexable Resource ('Range Error') Weakness- - - -
CWE:119 Improper Restriction of Operations within the Bounds of a Memory Buffer Weakness - - - -
CWE:120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') Weakness - - - -
CWE:125 Out-of-bounds Read Weakness- - - -
CWE:128 Wrap-around Error Weakness - - - -
CWE:131 Incorrect Calculation of Buffer Size Weakness - - - -
CWE:134 Use of Externally-Controlled Format String Weakness - -
CWE:170 Improper Null Termination Weakness - - - -
CWE:172 Encoding Error Weakness- - - -
CWE:190 Integer Overflow or Wraparound Weakness - -
CWE:191 Integer Underflow (Wrap or Wraparound) Weakness - - -
CWE:192 Integer Coercion Error Weakness - -
CWE:197 Numeric Truncation Error Weakness - -
CWE:200 Exposure of Sensitive Information to an Unauthorized Actor Weakness - - -
CWE:209 Generation of Error Message Containing Sensitive Information Weakness- - - -
CWE:229 Improper Handling of Values Weakness- - - -
CWE:230 Improper Handling of Missing Values Weakness- - - -
CWE:242 Use of Inherently Dangerous Function Weakness - - - -
CWE:243 Creation of chroot Jail Without Changing Working Directory Weakness - - - -
CWE:252 Unchecked Return Value Weakness -
CWE:253 Incorrect Check of Function Return Value Weakness- - -
CWE:256 Plaintext Storage of a Password Weakness - - - -
CWE:259 Use of Hard-coded Password Weakness - -
CWE:269 Improper Privilege Management Weakness - - - -
CWE:281 Improper Preservation of Permissions Weakness - - - -
CWE:284 Improper Access Control Weakness - - - -
CWE:287 Improper Authentication Weakness- - -
CWE:295 Improper Certificate Validation Weakness- - - -
CWE:311 Missing Encryption of Sensitive Data Weakness - - - -
CWE:313 Cleartext Storage in a File or on Disk Weakness - - - -
CWE:316 Cleartext Storage of Sensitive Information in Memory Weakness - - - -
CWE:318 Cleartext Storage of Sensitive Information in Executable Weakness - - - -
CWE:319 Cleartext Transmission of Sensitive Information Weakness - -
CWE:321 Use of Hard-coded Cryptographic Key Weakness - -
CWE:325 Missing Cryptographic Step Weakness - -
CWE:326 Inadequate Encryption Strength Weakness - -
CWE:327 Use of a Broken or Risky Cryptographic Algorithm Weakness - -
CWE:328 Use of Weak Hash Weakness - -
CWE:330 Use of Insufficiently Random Values Weakness - -
CWE:331 Insufficient Entropy Weakness - - - -
CWE:332 Insufficient Entropy in PRNG Weakness - - - -
CWE:334 Small Space of Random Values Weakness - - - -
CWE:336 Same Seed in Pseudo-Random Number Generator (PRNG) Weakness - -
CWE:337 Predictable Seed in Pseudo-Random Number Generator (PRNG) Weakness - - - -
CWE:338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Weakness - -
CWE:349 Acceptance of Extraneous Untrusted Data With Trusted Data Weakness- - - -
CWE:362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') Weakness - - - -
CWE:364 Signal Handler Race Condition Weakness - - - -
CWE:366 Race Condition within a Thread Weakness - - -
CWE:367 Time-of-check Time-of-use (TOCTOU) Race Condition Weakness - - - -
CWE:369 Divide By Zero Weakness - - - -
CWE:377 Insecure Temporary File Weakness - - - -
CWE:382 J2EE Bad Practices: Use of System.exit() Weakness- - - -
CWE:383 J2EE Bad Practices: Direct Use of Threads Weakness- - - -
CWE:390 Detection of Error Condition Without Action Weakness -
CWE:391 Unchecked Error Condition Weakness - - -
CWE:394 Unexpected Status Code or Return Value Weakness - - -
CWE:395 Use of NullPointerException Catch to Detect NULL Pointer Dereference Weakness- - -
CWE:396 Declaration of Catch for Generic Exception Weakness
CWE:397 Declaration of Throws for Generic Exception Weakness - - -
CWE:400 Uncontrolled Resource Consumption Weakness - -
CWE:401 Missing Release of Memory after Effective Lifetime Weakness - - - -
CWE:404 Improper Resource Shutdown or Release Weakness- - - -
CWE:410 Insufficient Resource Pool Weakness - - - -
CWE:412 Unrestricted Externally Accessible Lock Weakness- - -
CWE:413 Improper Resource Locking Weakness -
CWE:415 Double Free Weakness - - - -
CWE:416 Use After Free Weakness - - - -
CWE:427 Uncontrolled Search Path Element Weakness - - - -
CWE:440 Expected Behavior Violation Weakness- - -
CWE:453 Insecure Default Variable Initialization Weakness- - - -
CWE:456 Missing Initialization of a Variable Weakness- - -
CWE:457 Use of Uninitialized Variable Weakness - - -
CWE:459 Incomplete Cleanup Weakness - - - -
CWE:462 Duplicate Key in Associative List (Alist) Weakness- - - -
CWE:465 Pointer Issues Category - - - -
CWE:467 Use of sizeof() on a Pointer Type Weakness - - - -
CWE:469 Use of Pointer Subtraction to Determine Size Weakness - - - -
CWE:470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Weakness- - -
CWE:474 Use of Function with Inconsistent Implementations Weakness - - - -
CWE:475 Undefined Behavior for Input to API Weakness - - - -
CWE:476 NULL Pointer Dereference Weakness -
CWE:477 Use of Obsolete Function Weakness
CWE:478 Missing Default Case in Multiple Condition Expression Weakness - - - -
CWE:480 Use of Incorrect Operator Weakness-
CWE:481 Assigning instead of Comparing Weakness - -
CWE:482 Comparing instead of Assigning Weakness - - - -
CWE:484 Omitted Break Statement in Switch Weakness - - - -
CWE:486 Comparison of Classes by Name Weakness- - -
CWE:487 Reliance on Package-level Scope Weakness- - - -
CWE:489 Active Debug Code Weakness
CWE:491 Public cloneable() Method Without Final ('Object Hijack') Weakness- - -
CWE:492 Use of Inner Class Containing Sensitive Data Weakness- - - -
CWE:493 Critical Public Variable Without Final Modifier Weakness- - -
CWE:499 Serializable Class Containing Sensitive Data Weakness- - - -
CWE:501 Trust Boundary Violation Weakness- - -
CWE:502 Deserialization of Untrusted Data Weakness- - - -
CWE:506 Embedded Malicious Code Weakness - - - -
CWE:511 Logic/Time Bomb Weakness - - - -
CWE:522 Insufficiently Protected Credentials Weakness- - -
CWE:524 Use of Cache Containing Sensitive Information Weakness- - - -
CWE:537 Java Runtime Error Message Containing Sensitive Information Weakness- - - -
CWE:538 Insertion of Sensitive Information into Externally-Accessible File or Directory Weakness- - - -
CWE:540 Inclusion of Sensitive Information in Source Code Weakness - - - -
CWE:546 Suspicious Comment Weakness - -
CWE:547 Use of Hard-coded, Security-relevant Constants Weakness - -
CWE:550 Server-generated Error Message Containing Sensitive Information Weakness- - -
CWE:558 Use of getlogin() in Multithreaded Application Weakness - - - -
CWE:561 Dead Code Weakness
CWE:562 Return of Stack Variable Address Weakness - - - -
CWE:563 Assignment to Variable without Use Weakness -
CWE:567 Unsynchronized Access to Shared Data in a Multithreaded Context Weakness - -
CWE:568 finalize() Method Without super.finalize() Weakness- - - -
CWE:570 Expression is Always False Weakness
CWE:571 Expression is Always True Weakness
CWE:572 Call to Thread run() instead of start() Weakness- - -
CWE:573 Improper Following of Specification by Caller Weakness
CWE:580 clone() Method Without super.clone() Weakness- - - -
CWE:581 Object Model Violation: Just One of Equals and Hashcode Defined Weakness- -
CWE:582 Array Declared Public, Final, and Static Weakness- - -
CWE:584 Return Inside Finally Block Weakness- - -
CWE:585 Empty Synchronized Block Weakness- - -
CWE:586 Explicit Call to Finalize() Weakness- - - -
CWE:587 Assignment of a Fixed Address to a Pointer Weakness - - - -
CWE:589 Call to Non-ubiquitous API Weakness - - -
CWE:590 Free of Memory not on the Heap Weakness - - - -
CWE:595 Comparison of Object References Instead of Object Contents Weakness- -
CWE:597 Use of Wrong Operator in String Comparison Weakness- -
CWE:601 URL Redirection to Untrusted Site ('Open Redirect') Weakness- - -
CWE:605 Multiple Binds to the Same Port Weakness - - - -
CWE:607 Public Static Final Field References Mutable Object Weakness- - -
CWE:608 Struts: Non-private Field in ActionForm Class Weakness- - - -
CWE:609 Double-Checked Locking Weakness- - -
CWE:610 Externally Controlled Reference to a Resource in Another Sphere Weakness - - - -
CWE:611 Improper Restriction of XML External Entity Reference Weakness- - -
CWE:613 Insufficient Session Expiration Weakness- - -
CWE:614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute Weakness- - -
CWE:615 Inclusion of Sensitive Information in Source Code Comments Weakness - - -
CWE:624 Executable Regular Expression Error Weakness- - -
CWE:628 Function Call with Incorrectly Specified Arguments Weakness -
CWE:641 Improper Restriction of Names for Files and Other Resources Weakness - - - -
CWE:643 Improper Neutralization of Data within XPath Expressions ('XPath Injection') Weakness- - -
CWE:657 Violation of Secure Design Principles Weakness - - - -
CWE:662 Improper Synchronization Weakness -
CWE:664 Improper Control of a Resource Through its Lifetime Weakness -
CWE:665 Improper Initialization Weakness - -
CWE:666 Operation on Resource in Wrong Phase of Lifetime Weakness - - - -
CWE:667 Improper Locking Weakness - - - -
CWE:672 Operation on a Resource after Expiration or Release Weakness - - - -
CWE:674 Uncontrolled Recursion Weakness - -
CWE:675 Multiple Operations on Resource in Single-Operation Context Weakness - - - -
CWE:676 Use of Potentially Dangerous Function Weakness -
CWE:680 Integer Overflow to Buffer Overflow Weakness - - - -
CWE:681 Incorrect Conversion between Numeric Types Weakness - - - -
CWE:682 Incorrect Calculation Weakness - -
CWE:683 Function Call With Incorrect Order of Arguments Weakness- - - -
CWE:685 Function Call With Incorrect Number of Arguments Weakness- - - -
CWE:686 Function Call With Incorrect Argument Type Weakness
CWE:687 Function Call With Incorrectly Specified Argument Value Weakness - - -
CWE:688 Function Call With Incorrect Variable or Reference as Argument Weakness - - - -
CWE:690 Unchecked Return Value to NULL Pointer Dereference Weakness - - - -
CWE:691 Insufficient Control Flow Management Weakness - - - -
CWE:694 Use of Multiple Resources with Duplicate Identifier Weakness- - -
CWE:696 Incorrect Behavior Order Weakness - - - -
CWE:697 Incorrect Comparison Weakness- -
CWE:698 Execution After Redirect (EAR) Weakness- - -
CWE:703 Improper Check or Handling of Exceptional Conditions Weakness - - -
CWE:704 Incorrect Type Conversion or Cast Weakness -
CWE:705 Incorrect Control Flow Scoping Weakness- - - -
CWE:710 Improper Adherence to Coding Standards Weakness - -
CWE:732 Incorrect Permission Assignment for Critical Resource Weakness- - -
CWE:749 Exposed Dangerous Method or Function Weakness- - -
CWE:754 Improper Check for Unusual or Exceptional Conditions Weakness- - -
CWE:755 Improper Handling of Exceptional Conditions Weakness- - -
CWE:757 Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade') Weakness- - -
CWE:758 Reliance on Undefined, Unspecified, or Implementation-Defined Behavior Weakness - -
CWE:760 Use of a One-Way Hash with a Predictable Salt Weakness - - - -
CWE:761 Free of Pointer not at Start of Buffer Weakness - - - -
CWE:762 Mismatched Memory Management Routines Weakness - - - -
CWE:763 Release of Invalid Pointer or Reference Weakness - - - -
CWE:764 Multiple Locks of a Critical Resource Weakness - - - -
CWE:765 Multiple Unlocks of a Critical Resource Weakness - - - -
CWE:766 Critical Data Element Declared Public Weakness- - - -
CWE:768 Incorrect Short Circuit Evaluation Weakness- - -
CWE:770 Allocation of Resources Without Limits or Throttling Weakness- - - -
CWE:771 Missing Reference to Active Allocated Resource Weakness - - - -
CWE:772 Missing Release of Resource after Effective Lifetime Weakness - -
CWE:773 Missing Reference to Active File Descriptor or Handle Weakness - - - -
CWE:775 Missing Release of File Descriptor or Handle after Effective Lifetime Weakness - - - -
CWE:779 Logging of Excessive Data Weakness- - - -
CWE:780 Use of RSA Algorithm without OAEP Weakness - - - -
CWE:783 Operator Precedence Logic Error Weakness - - - -
CWE:785 Use of Path Manipulation Function without Maximum-sized Buffer Weakness - - - -
CWE:786 Access of Memory Location Before Start of Buffer Weakness - - - -
CWE:787 Out-of-bounds Write Weakness- - - -
CWE:788 Access of Memory Location After End of Buffer Weakness - - - -
CWE:789 Memory Allocation with Excessive Size Value Weakness - -
CWE:798 Use of Hard-coded Credentials Weakness - - - -
CWE:820 Missing Synchronization Weakness- - -
CWE:821 Incorrect Synchronization Weakness - - - -
CWE:822 Untrusted Pointer Dereference Weakness - - - -
CWE:823 Use of Out-of-range Pointer Offset Weakness - - - -
CWE:832 Unlock of a Resource that is not Locked Weakness - - - -
CWE:833 Deadlock Weakness -
CWE:835 Loop with Unreachable Exit Condition ('Infinite Loop') Weakness - - -
CWE:843 Access of Resource Using Incompatible Type ('Type Confusion') Weakness - - - -
CWE:863 Incorrect Authorization Weakness - - - -
CWE:908 Use of Uninitialized Resource Weakness - - -
CWE:909 Missing Initialization of Resource Weakness- -
CWE:910 Use of Expired File Descriptor Weakness - - - -
CWE:913 Improper Control of Dynamically-Managed Code Resources Weakness- -
CWE:915 Improperly Controlled Modification of Dynamically-Determined Object Attributes Weakness- - -
CWE:916 Use of Password Hash With Insufficient Computational Effort Weakness- - -
CWE:917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') Weakness- - - -
CWE:922 Insecure Storage of Sensitive Information Weakness- - -
CWE:1007 Insufficient Visual Distinction of Homoglyphs Presented to User Weakness - - - -
CWE:1023 Incomplete Comparison with Missing Factors Weakness- -
CWE:1024 Comparison of Incompatible Types Weakness- - -
CWE:1025 Comparison Using Wrong Factors Weakness - -
CWE:1037 Processor Optimization Removal or Modification of Security-critical Code Weakness - - - -
CWE:1041 Use of Redundant Code Weakness
CWE:1047 Modules with Circular Dependencies Weakness- - - -
CWE:1055 Multiple Inheritance from Concrete Classes Weakness - - -
CWE:1056 Invokable Control Element with Variadic Parameters Weakness - - - -
CWE:1059 Insufficient Technical Documentation Weakness- - -
CWE:1061 Insufficient Encapsulation Weakness- - -
CWE:1064 Invokable Control Element with Signature Containing an Excessive Number of Parameters Weakness - -
CWE:1069 Empty Exception Block Weakness- - - -
CWE:1071 Empty Code Block Weakness- -
CWE:1076 Insufficient Adherence to Expected Conventions Weakness
CWE:1077 Floating Point Comparison with Incorrect Operator Weakness -
CWE:1078 Inappropriate Source Code Style or Formatting Weakness
CWE:1079 Parent Class without Virtual Destructor Method Weakness - - - -
CWE:1080 Source Code File with Excessive Number of Lines of Code Weakness - - -
CWE:1085 Invokable Control Element with Excessive Volume of Commented-out Code Weakness - - - -
CWE:1087 Class with Virtual Method without a Virtual Destructor Weakness - - - -
CWE:1088 Synchronous Access of Remote Resource without Timeout Weakness- - - -
CWE:1091 Use of Object without Invoking Destructor Method Weakness - - - -
CWE:1095 Loop Condition Value Update within the Loop Weakness- - - -
CWE:1097 Persistent Storable Data Element without Associated Comparison Control Element Weakness- - -
CWE:1099 Inconsistent Naming Conventions for Identifiers Weakness- - -
CWE:1106 Insufficient Use of Symbolic Constants Weakness - - -
CWE:1108 Excessive Reliance on Global Variables Weakness- - - -
CWE:1113 Inappropriate Comment Style Weakness- - - -
CWE:1114 Inappropriate Whitespace Style Weakness- - -
CWE:1116 Inaccurate Comments Weakness- - - -
CWE:1119 Excessive Use of Unconditional Branching Weakness- - - -
CWE:1120 Excessive Code Complexity Weakness - -
CWE:1121 Excessive McCabe Cyclomatic Complexity Weakness - - -
CWE:1124 Excessively Deep Nesting Weakness- - -
CWE:1126 Declaration of Variable with Unnecessarily Wide Scope Weakness - -
CWE:1127 Compilation with Insufficient Warnings or Errors Weakness - - -
CWE:1164 Irrelevant Code Weakness
CWE:1173 Improper Use of Validation Framework Weakness- - - -
CWE:1176 Inefficient CPU Computation Weakness- -
CWE:1177 Use of Prohibited Code Weakness- - - -
CWE:1204 Generation of Weak Initialization Vector (IV) Weakness- - -
CWE:1235 Incorrect Use of Autoboxing and Unboxing for Performance Critical Operations Weakness- - - -
CWE:1295 Debug Messages Revealing Unnecessary Information Weakness - - - -
CWE:1335 Incorrect Bitwise Shift of Integer Weakness - - - -
CWE:1339 Insufficient Precision or Accuracy of a Real Number Weakness- - -
CWE:1341 Multiple Releases of Same Resource or Handle Weakness - - - -
CWE:1389 Incorrect Parsing of Numbers with Different Radices Weakness - - - -
CWE:1390 Weak Authentication Weakness- - -
CWE:1419 Incorrect Initialization of Resource Weakness - - - -