Vulnerabilities by Weakness (CWE)
The software weakness types behind the CVEs in this database, ranked by record count. Each page covers the weakness, its mitigations, and every mapped CVE.
Updated
Weakness Types
60 CWEs| CWE | Weakness | Type | CVEs | KEV | Top 25 |
|---|---|---|---|---|---|
| CWE-78 | OS Command Injection | Base | 187 | 117 | #9 |
| CWE-787 | Out-of-bounds Write | Base | 133 | 133 | #5 |
| CWE-77 | Command Injection | Class | 118 | 39 | #23 |
| CWE-416 | Use After Free | Variant | 111 | 107 | #7 |
| CWE-22 | Path Traversal | Base | 106 | 88 | #6 |
| CWE-94 | Code Injection | Base | 102 | 75 | #10 |
| CWE-20 | Improper Input Validation | Class | 97 | 95 | #18 |
| CWE-502 | Deserialization of Untrusted Data | Base | 84 | 75 | #15 |
| CWE-306 | Missing Authentication for Critical Function | Base | 72 | 49 | #21 |
| CWE-119 | Improper Restriction of Memory Buffer Bounds | Class | 56 | 52 | - |
| CWE-287 | Improper Authentication | Class | 56 | 51 | - |
| CWE-74 | Injection | Class | 52 | 14 | - |
| CWE-284 | Improper Access Control | Pillar | 46 | 40 | #19 |
| CWE-843 | Type Confusion | Base | 42 | 42 | - |
| CWE-89 | SQL Injection | Base | 40 | 33 | #2 |
| CWE-434 | Unrestricted File Upload | Base | 40 | 28 | #12 |
| CWE-918 | Server-Side Request Forgery | Base | 34 | 26 | #22 |
| CWE-79 | Cross-Site Scripting | Base | 33 | 31 | #1 |
| CWE-122 | Heap-based Buffer Overflow | Variant | 32 | 24 | #16 |
| CWE-200 | Exposure of Sensitive Information | Class | 29 | 26 | #20 |
| CWE-269 | Improper Privilege Management | Class | 28 | 27 | - |
| CWE-120 | Classic Buffer Overflow | Base | 25 | 23 | - |
| CWE-121 | Stack-based Buffer Overflow | Variant | 25 | 20 | #14 |
| CWE-59 | Link Following | Base | 25 | 24 | - |
| CWE-190 | Integer Overflow | Base | 23 | 22 | - |
| CWE-288 | Authentication Bypass Using an Alternate Path | Base | 23 | 21 | - |
| CWE-863 | Incorrect Authorization | Class | 21 | 20 | #17 |
| CWE-264 | Permissions, Privileges, and Access Controls | Grouping | 20 | 20 | - |
| CWE-125 | Out-of-bounds Read | Base | 20 | 18 | #8 |
| CWE-693 | Protection Mechanism Failure | Pillar | 15 | 14 | - |
| CWE-862 | Missing Authorization | Class | 15 | 11 | - |
| CWE-400 | Uncontrolled Resource Consumption | Class | 12 | 8 | - |
| CWE-73 | External Control of File Name or Path | Base | 12 | 6 | - |
| CWE-347 | Improper Signature Verification | Base | 10 | 7 | - |
| CWE-399 | Resource Management Errors | Grouping | 10 | 10 | - |
| CWE-362 | Race Condition | Class | 9 | 9 | - |
| CWE-611 | Improper Restriction of XML External Entity Reference | Base | 9 | 9 | - |
| CWE-798 | Use of Hard-coded Credentials | Base | 9 | 9 | - |
| CWE-1188 | Insecure Default Initialization | Base | 9 | 5 | - |
| CWE-506 | Embedded Malicious Code | Class | 9 | 9 | - |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | Base | 8 | 7 | - |
| CWE-23 | Relative Path Traversal | Base | 8 | 6 | - |
| CWE-290 | Authentication Bypass by Spoofing | Base | 8 | 8 | - |
| CWE-95 | Eval Injection | Variant | 8 | 4 | - |
| CWE-749 | Exposed Dangerous Method or Function | Base | 7 | 6 | - |
| CWE-415 | Double Free | Variant | 7 | 6 | - |
| CWE-522 | Insufficiently Protected Credentials | Class | 7 | 5 | - |
| CWE-352 | Cross Site Reference Forgery | Compound | 6 | 6 | - |
| CWE-917 | Expression Language Injection | Base | 6 | 6 | - |
| CWE-88 | Argument Injection | Base | 6 | 5 | - |
| CWE-552 | Files or Directories Accessible to External Parties | Base | 6 | 5 | - |
| CWE-755 | Improper Handling of Exceptional Conditions | Class | 6 | 6 | - |
| CWE-404 | Improper Resource Shutdown or Release | Class | 6 | 6 | - |
| CWE-444 | HTTP Request Smuggling | Base | 6 | 5 | - |
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | Base | 6 | 3 | - |
| CWE-732 | Incorrect Permission Assignment for Critical Resource | Class | 5 | 4 | - |
| CWE-36 | Absolute Path Traversal | Base | 5 | 5 | - |
| CWE-295 | Improper Certificate Validation | Base | 5 | 5 | - |
| CWE-822 | Untrusted Pointer Dereference | Base | 5 | 5 | - |
| CWE-305 | Authentication Bypass by Primary Weakness | Base | 5 | 3 | - |
Frequently Asked Questions
What is CWE?→
CWE (Common Weakness Enumeration) is a community-developed list of common software and hardware weaknesses. CISA sponsors the program and The MITRE Corporation operates it. A CWE describes the kind of mistake behind a vulnerability, while a CVE identifies one specific vulnerability in one product.
What is the difference between CWE and CVE?→
A CVE ID names a single vulnerability in a specific product version. A CWE ID names the class of flaw that caused it. One CWE, such as CWE-78 (OS Command Injection), can map to many CVEs across many vendors.
Where do the CWE mappings on this page come from?→
Each CVE record lists the CWE IDs its CVE Numbering Authority assigned. This page groups the records in this database by those IDs. A weakness gets its own page once at least 5 records map to it. Many older KEV records carry no CWE mapping, so the counts here undercount older vulnerabilities.
CWE is a trademark of The MITRE Corporation. Weakness names from the CWE List, used under the CWE Terms of Use. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA.