Help us learn about your current experience with the documentation. Take the survey.

GitLab Advanced SAST CWE coverage

  • Tier: Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

GitLab Advanced SAST finds many types of potential security vulnerabilities in code written in supported languages.

GitLab assigns a matching Common Weakness Enumeration (CWE) identifier to each potential vulnerability. CWE identifiers are an industry-standard way to identify security weaknesses, but it’s important to know:

  • CWEs are arranged in a tree structure. For example, CWE-22: Path Traversal is a parent of CWE-23: Relative Path Traversal. A scanner that specifically detects relative path traversal weaknesses (CWE-23) by definition also detects a portion of the more general path traversal category (CWE-22).
  • For clarity, this table identifies the exact CWE identifiers that are assigned to GitLab Advanced SAST rules. It doesn’t report parent identifiers.

To learn more about the rules used in GitLab Advanced SAST, see SAST rules.

CWE coverage by language

GitLab Advanced SAST finds the following types of weaknesses in each programming language:

CWECWE DescriptionCC++C#GoJavaJavaScript, TypeScriptPHPPythonRuby
CWE-15External Control of System or Configuration SettingNoNoNoNocheck-smNoNoNoNo
CWE-22Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)NoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-23Relative Path TraversalNoNoNoNoNocheck-smNocheck-smNo
CWE-73External Control of File Name or PathNoNoNoNocheck-smNoNoNocheck-sm
CWE-76Improper Neutralization of Equivalent Special ElementsNoNoNoNoNoNoNoNocheck-sm
CWE-77Improper Neutralization of Special Elements used in a Command (‘Command Injection’)NoNoNoNocheck-smNoNoNoNo
CWE-78Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)check-smNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-79Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’)NoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-80Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)NoNoNoNoNocheck-smNoNoNo
CWE-88Improper Neutralization of Argument Delimiters in a Command (‘Argument Injection’)NoNoNoNocheck-smNoNoNoNo
CWE-89Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)NoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-90Improper Neutralization of Special Elements used in an LDAP Query (‘LDAP Injection’)NoNocheck-smNocheck-smNoNocheck-smNo
CWE-91XML Injection (aka Blind XPath Injection)NoNoNoNocheck-smNoNoNoNo
CWE-94Improper Control of Generation of Code (‘Code Injection’)NoNoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-95Improper Neutralization of Directives in Dynamically Evaluated Code (‘Eval Injection’)NoNoNoNocheck-smcheck-smNocheck-smcheck-sm
CWE-113Improper Neutralization of CRLF Sequences in HTTP Headers (‘HTTP Request/Response Splitting’)NoNoNoNocheck-smcheck-smNocheck-smNo
CWE-116Improper Encoding or Escaping of OutputNoNoNoNoNocheck-smNocheck-smNo
CWE-117Improper Output Neutralization for LogsNoNoNoNocheck-smNoNoNoNo
CWE-118Incorrect Access of Indexable Resource (‘Range Error’)NoNoNocheck-smNoNoNoNoNo
CWE-125Out-of-bounds Readcheck-smcheck-smNoNoNocheck-smNoNoNo
CWE-131Incorrect Calculation of Buffer Sizecheck-smcheck-smNoNoNoNoNoNoNo
CWE-155Improper Neutralization of Wildcards or Matching SymbolsNoNoNoNoNoNoNocheck-smNo
CWE-180Incorrect Behavior Order: Validate Before CanonicalizeNoNoNoNocheck-smNoNoNoNo
CWE-182Collapse of Data into Unsafe ValueNoNoNoNocheck-smNoNoNoNo
CWE-185Incorrect Regular ExpressionNoNoNoNoNocheck-smNoNocheck-sm
CWE-190Integer Overflow or Wraparoundcheck-smcheck-smNocheck-smcheck-smNoNoNoNo
CWE-191Integer Underflow (Wrap or Wraparound)NoNoNoNocheck-smNoNoNoNo
CWE-208Observable Timing DiscrepancyNoNoNoNoNocheck-smNoNoNo
CWE-209Generation of Error Message Containing Sensitive InformationNoNoNoNoNoNoNoNocheck-sm
CWE-242Use of Inherently Dangerous Functioncheck-smcheck-smNocheck-smNoNoNoNoNo
CWE-243Creation of chroot Jail Without Changing Working Directorycheck-smcheck-smNoNoNoNoNoNoNo
CWE-252Unchecked Return Valuecheck-smcheck-smNoNoNoNoNoNoNo
CWE-253Incorrect Check of Function Return Valuecheck-smcheck-smNoNoNoNoNoNoNo
CWE-256Plaintext Storage of a PasswordNoNoNoNocheck-smNoNoNoNo
CWE-271Privilege Dropping / Lowering Errorscheck-smcheck-smNoNoNoNoNoNoNo
CWE-272Least Privilege ViolationNoNoNoNoNocheck-smNoNoNo
CWE-276Incorrect Default PermissionsNoNoNocheck-smNoNoNoNocheck-sm
CWE-295Improper Certificate ValidationNoNocheck-smNocheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-297Improper Validation of Certificate with Host MismatchNoNoNoNocheck-smNoNoNoNo
CWE-306Missing Authentication for Critical FunctionNoNoNoNocheck-smNoNoNoNo
CWE-311Missing Encryption of Sensitive DataNoNoNoNoNoNoNoNocheck-sm
CWE-319Cleartext Transmission of Sensitive InformationNoNoNoNocheck-smcheck-smcheck-smcheck-smNo
CWE-322Key Exchange without Entity AuthenticationNoNoNocheck-smNoNoNocheck-smNo
CWE-323Reusing a Nonce, Key Pair in EncryptionNoNoNoNocheck-smNoNoNoNo
CWE-326Inadequate Encryption StrengthNoNoNocheck-smcheck-smNoNocheck-smcheck-sm
CWE-327Use of a Broken or Risky Cryptographic AlgorithmNoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smNo
CWE-328Use of Weak HashNoNoNoNoNocheck-smcheck-smNocheck-sm
CWE-338Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)check-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-smNo
CWE-346Origin Validation ErrorNoNoNoNoNocheck-smNoNoNo
CWE-347Improper Verification of Cryptographic SignatureNoNoNoNocheck-smNoNocheck-smNo
CWE-348Use of Less Trusted SourceNoNoNoNoNocheck-smNoNoNo
CWE-352Cross-Site Request Forgery (CSRF)NoNocheck-smNocheck-smNoNocheck-smcheck-sm
CWE-358Improperly Implemented Security Check for StandardNoNoNoNoNocheck-smNoNoNo
CWE-362Concurrent Execution using Shared Resource with Improper Synchronization (‘Race Condition’)check-smcheck-smNoNoNoNoNoNoNo
CWE-369Divide By Zerocheck-smcheck-smNoNoNoNoNoNocheck-sm
CWE-377Insecure Temporary Filecheck-smcheck-smNocheck-smNoNoNocheck-smNo
CWE-398Code Qualitycheck-smcheck-smNoNoNoNoNoNoNo
CWE-400Uncontrolled Resource Consumptioncheck-smcheck-smNoNoNoNoNoNoNo
CWE-401Missing Release of Memory after Effective Lifetimecheck-smcheck-smNoNoNoNoNoNoNo
CWE-404Improper Resource Shutdown or Releasecheck-smcheck-smNoNoNoNoNoNoNo
CWE-409Improper Handling of Highly Compressed Data (Data Amplification)NoNoNocheck-smNoNoNoNoNo
CWE-413Improper Resource Lockingcheck-smcheck-smNoNoNoNoNoNoNo
CWE-415Double Freecheck-smcheck-smNoNoNoNoNoNoNo
CWE-416Use After Freecheck-smcheck-smNoNoNoNoNoNoNo
CWE-448Excessive Use of Hard-Coded Literals in Initializationcheck-smcheck-smNoNoNoNoNoNoNo
CWE-457Use of Uninitialized Variablecheck-smcheck-smNoNoNoNoNoNoNo
CWE-459Incomplete Cleanupcheck-smcheck-smNoNoNoNoNoNoNo
CWE-466Return of Pointer Value Outside of Expected Rangecheck-smcheck-smNoNoNoNoNoNoNo
CWE-467Use of sizeof() on a Pointer Typecheck-smcheck-smNoNoNoNoNoNoNo
CWE-469Use of Pointer Subtraction to Determine Sizecheck-smcheck-smNoNoNoNoNoNoNo
CWE-470Use of Externally-Controlled Input to Select Classes or Code (‘Unsafe Reflection’)NoNoNoNocheck-smNoNoNoNo
CWE-476NULL Pointer Dereferencecheck-smcheck-smNoNoNoNoNoNoNo
CWE-477Use of Obsolete Functioncheck-smcheck-smNoNoNoNoNoNoNo
CWE-489Active Debug CodeNoNoNocheck-smcheck-smNoNocheck-smNo
CWE-497Exposure of Sensitive System Information to an Unauthorized Control SphereNoNoNoNoNoNocheck-smcheck-smNo
CWE-501Trust Boundary ViolationNoNoNoNocheck-smNoNoNoNo
CWE-502Deserialization of Untrusted DataNoNocheck-smNocheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-521Weak Password RequirementsNoNocheck-smNoNoNoNoNoNo
CWE-522Insufficiently Protected CredentialsNoNoNoNoNocheck-smNoNoNo
CWE-552Files or Directories Accessible to External PartiesNoNoNocheck-smcheck-smNoNoNoNo
CWE-554ASP.NET Misconfiguration: Not Using Input Validation FrameworkNoNocheck-smNoNoNoNoNoNo
CWE-561Dead Codecheck-smcheck-smNoNoNoNoNoNoNo
CWE-562Return of Stack Variable Addresscheck-smcheck-smNoNoNoNoNoNoNo
CWE-563Assignment to Variable without Usecheck-smcheck-smNoNoNoNoNoNoNo
CWE-573Improper Following of Specification by Callercheck-smcheck-smNoNoNoNoNoNoNo
CWE-587Assignment of a Fixed Address to a Pointercheck-smcheck-smNoNoNoNoNoNoNo
CWE-588Attempt to Access Child of a Non-structure Pointercheck-smcheck-smNoNoNoNoNoNoNo
CWE-598Use of GET Request Method With Sensitive Query StringsNoNoNoNoNoNocheck-smNoNo
CWE-599Missing Validation of OpenSSL CertificateNoNoNoNoNocheck-smNoNoNo
CWE-601URL Redirection to Untrusted Site (‘Open Redirect’)NoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-606Unchecked Input for Loop ConditionNoNoNoNoNocheck-smNocheck-smNo
CWE-611Improper Restriction of XML External Entity ReferenceNoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smNo
CWE-613Insufficient Session ExpirationNoNoNoNoNocheck-smNoNoNo
CWE-614Sensitive Cookie in HTTPS Session Without ‘Secure’ AttributeNoNocheck-smcheck-smcheck-smcheck-smcheck-smNoNo
CWE-639Authorization Bypass Through User-Controlled KeyNoNoNoNoNoNoNoNocheck-sm
CWE-643Improper Neutralization of Data within XPath Expressions (‘XPath Injection’)NoNocheck-smNocheck-smcheck-smNocheck-smNo
CWE-667Improper Lockingcheck-smcheck-smNoNoNoNoNoNoNo
CWE-670Always-Incorrect Control Flow Implementationcheck-smcheck-smNoNoNoNoNoNoNo
CWE-672Operation on a Resource after Expiration or Releasecheck-smcheck-smNoNoNoNoNoNoNo
CWE-676Use of Potentially Dangerous Functioncheck-smcheck-smNoNoNoNoNoNoNo
CWE-684Incorrect Provision of Specified Functionalitycheck-smcheck-smNoNoNoNoNoNoNo
CWE-685Function Call with Incorrect Number of Argumentscheck-smcheck-smNoNoNoNoNoNoNo
CWE-686Function Call With Incorrect Argument Typecheck-smcheck-smNoNoNoNoNoNoNo
CWE-687Function Call With Incorrectly Specified Argument Valuecheck-smcheck-smNoNoNoNoNoNoNo
CWE-704Incorrect Type Conversion or Castcheck-smcheck-smNoNocheck-smNoNoNoNo
CWE-732Incorrect Permission Assignment for Critical Resourcecheck-smcheck-smNocheck-smcheck-smNoNocheck-smNo
CWE-749Exposed Dangerous Method or FunctionNoNoNoNocheck-smNoNoNocheck-sm
CWE-754Improper Check for Unusual or Exceptional Conditionscheck-smcheck-smNoNoNoNoNoNocheck-sm
CWE-757Selection of Less-Secure Algorithm During Negotiation (‘Algorithm Downgrade’)NoNoNoNoNocheck-smNoNoNo
CWE-758Reliance on Undefined, Unspecified, or Implementation-Defined Behaviorcheck-smcheck-smNoNoNoNoNoNoNo
CWE-762Mismatched Memory Management Routinescheck-smcheck-smNoNoNoNoNoNoNo
CWE-764Multiple Locks of a Critical Resourcecheck-smcheck-smNoNoNoNoNoNoNo
CWE-770Allocation of Resources Without Limits or Throttlingcheck-smcheck-smNocheck-smNocheck-smNocheck-smNo
CWE-772Missing Release of Resource after Effective Lifetimecheck-smcheck-smNoNoNoNoNoNoNo
CWE-775Missing Release of File Descriptor or Handle after Effective Lifetimecheck-smcheck-smNoNoNoNoNoNoNo
CWE-776Improper Restriction of Recursive Entity References in DTDs (‘XML Entity Expansion’)NoNoNoNoNocheck-smNoNoNo
CWE-780Use of RSA Algorithm without OAEPNoNoNoNocheck-smNoNoNoNo
CWE-787Out-of-bounds Writecheck-smcheck-smNoNoNocheck-smNoNoNo
CWE-789Memory Allocation with Excessive Size Valuecheck-smcheck-smNoNoNoNoNoNoNo
CWE-798Use of Hard-coded CredentialsNoNoNoNoNocheck-smNoNoNo
CWE-805Buffer Access with Incorrect Length Valuecheck-smcheck-smNoNoNoNoNoNoNo
CWE-821Incorrect Synchronizationcheck-smcheck-smNoNoNoNoNoNoNo
CWE-823Use of Out-of-range Pointer Offsetcheck-smcheck-smNoNoNoNoNoNoNo
CWE-824Access of Uninitialized Pointercheck-smcheck-smNoNoNoNoNoNoNo
CWE-825Expired Pointer Dereferencecheck-smcheck-smNoNoNoNoNoNoNo
CWE-833Deadlockcheck-smcheck-smNoNoNoNoNoNoNo
CWE-843Access of Resource Using Incompatible Type (‘Type Confusion’)check-smcheck-smNoNoNoNoNoNoNo
CWE-908Use of Uninitialized Resourcecheck-smcheck-smNoNoNoNoNoNoNo
CWE-913Improper Control of Dynamically-Managed Code ResourcesNoNoNoNoNocheck-smNoNoNo
CWE-915Improperly Controlled Modification of Dynamically-Determined Object AttributesNoNoNoNoNoNoNoNocheck-sm
CWE-917Improper Neutralization of Special Elements used in an Expression Language Statement (‘Expression Language Injection’)NoNoNoNocheck-smNoNoNoNo
CWE-918Server-Side Request Forgery (SSRF)NoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-942Permissive Cross-domain Policy with Untrusted DomainsNoNoNocheck-smcheck-smcheck-smNocheck-smNo
CWE-943Improper Neutralization of Special Elements in Data Query LogicNoNoNocheck-smcheck-smcheck-smNoNoNo
CWE-1004Sensitive Cookie Without ‘HttpOnly’ FlagNoNocheck-smcheck-smcheck-smcheck-smcheck-smcheck-smcheck-sm
CWE-1021Improper Restriction of Rendered UI Layers or FramesNoNoNoNocheck-smNoNoNoNo
CWE-1024Comparison of Incompatible Typescheck-smcheck-smNoNoNoNoNoNoNo
CWE-1061Insufficient Encapsulationcheck-smcheck-smNoNoNoNoNoNoNo
CWE-1077Floating Point Comparison with Incorrect Operatorcheck-smcheck-smNoNoNoNoNoNoNo
CWE-1079Parent Class without Virtual Destructor Methodcheck-smcheck-smNoNoNoNoNoNoNo
CWE-1098Data Element containing Pointer Item without Proper Copy Control Elementcheck-smcheck-smNoNoNoNoNoNoNo
CWE-1104Use of Unmaintained Third Party ComponentsNoNoNoNoNoNoNocheck-smNo
CWE-1116Inaccurate Commentscheck-smcheck-smNoNoNoNoNoNoNo
CWE-1164Irrelevant Codecheck-smcheck-smNoNoNoNoNoNoNo
CWE-1204Generation of Weak Initialization Vector (IV)NoNoNoNoNocheck-smNoNoNo
CWE-1260Improper Handling of Overlap Between Protected Memory Rangescheck-smcheck-smNoNoNoNoNoNoNo
CWE-1275Sensitive Cookie with Improper SameSite AttributeNoNoNoNoNocheck-smcheck-smcheck-smNo
CWE-1321Improperly Controlled Modification of Object Prototype Attributes (‘Prototype Pollution’)NoNoNoNoNocheck-smNoNoNo
CWE-1327Binding to an Unrestricted IP AddressNoNoNocheck-smNoNoNocheck-smNo
CWE-1333Inefficient Regular Expression ComplexityNoNoNoNoNoNoNocheck-smcheck-sm
CWE-1335Incorrect Bitwise Shift of Integercheck-smcheck-smNoNoNoNoNoNoNo
CWE-1336Improper Neutralization of Special Elements Used in a Template EngineNoNoNoNoNoNocheck-smNoNo
CWE-1390Weak AuthenticationNoNoNoNocheck-smNoNocheck-smNo
CWE-1341Multiple Releases of Same Resource or Handlecheck-smcheck-smNoNoNoNoNoNoNo
CWE-1419Incorrect Initialization of Resourcecheck-smcheck-smNoNoNoNoNoNoNo

Swift and Objective-C CWE coverage

  • Status: Beta

Swift and Objective-C analysis is in beta and runs as a separate CI/CD job, gitlab-advanced-sast-ext. For more information, see Swift and Objective-C configuration.

GitLab Advanced SAST finds the following types of weaknesses across Swift and Objective-C combined. Coverage is not identical for both languages and continues to expand during the beta.

CWECWE Description
CWE-22Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)
CWE-78Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)
CWE-79Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’)
CWE-89Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)
CWE-90Improper Neutralization of Special Elements used in an LDAP Query (‘LDAP Injection’)
CWE-134Use of Externally-Controlled Format String
CWE-200Exposure of Sensitive Information to an Unauthorized Actor
CWE-295Improper Certificate Validation
CWE-312Cleartext Storage of Sensitive Information
CWE-319Cleartext Transmission of Sensitive Information
CWE-321Use of Hard-coded Cryptographic Key
CWE-327Use of a Broken or Risky Cryptographic Algorithm
CWE-328Use of Weak Hash
CWE-329Generation of Predictable IV with CBC Mode
CWE-330Use of Insufficiently Random Values
CWE-347Improper Verification of Cryptographic Signature
CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition
CWE-477Use of Obsolete Function
CWE-502Deserialization of Untrusted Data
CWE-522Insufficiently Protected Credentials
CWE-532Insertion of Sensitive Information into Log File
CWE-598Use of GET Request Method With Sensitive Query Strings
CWE-601URL Redirection to Untrusted Site (‘Open Redirect’)
CWE-611Improper Restriction of XML External Entity Reference
CWE-639Authorization Bypass Through User-Controlled Key
CWE-643Improper Neutralization of Data within XPath Expressions (‘XPath Injection’)
CWE-916Use of Password Hash With Insufficient Computational Effort
CWE-917Improper Neutralization of Special Elements used in an Expression Language Statement (‘Expression Language Injection’)
CWE-918Server-Side Request Forgery (SSRF)
CWE-1333Inefficient Regular Expression Complexity

Did this page answer the question you had? If not, comment on epic 15343 to share your use case.