Bookmarks

CWE — Common Weakness Enumeration

A public catalogue of common software and hardware weaknesses: a numbered list of development flaws from which vulnerabilities grow.

Also: CWE List, common software weaknesses

checked 9 Nov

All terms

CWE is a common language for talking about security defects: not a specific vulnerability in a specific version, but a class of mistake — for example, SQL injection or a buffer overflow. Knowing the weaknesses, developers fix them before release, when it is easier and cheaper. The list is maintained by MITRE with support from the American agency CISA; the first release came out in 2006.

How the list is organised

Each weakness is a record with an identifier such as CWE-79 and its own description. A record includes:

  • name and description of the flaw — what exactly the developer did or failed to do;
  • typical consequences — from reading someone else’s data to executing arbitrary code;
  • platforms and languages where the weakness occurs;
  • prevention and detection — which checks, libraries and settings reduce the risk.

A few well-known records:

IdentifierWeakness
CWE-79cross-site scripting (XSS)
CWE-89SQL injection
CWE-78OS command injection
CWE-22path traversal
CWE-287improper authentication

In all, the list contains 956 records (as of November 2026), and they differ in their level of abstraction: the most general ones, called pillars, set the theme — for example, CWE-284 “improper access control” — with classes, base weaknesses and concrete variants tied to languages and technologies below them. There are also views — sets of records assembled for a particular task: for software development, for hardware design and for research.

CWE and CVE

CVE describes a specific case: this version of this product has a vulnerability, and the vulnerability has been given a number. CWE answers the question of what the weakness is in general terms: according to MITRE, a single CWE record is often the root cause of many CVE records. The NVD database historically tags CVE records with CWE codes, and these tags are used to look for vulnerabilities of the same kind. Static analysis tools (SAST) also check their findings against CWE records: a finding such as “an unescaped variable ends up in an SQL query” is labelled CWE-89.

CWE Top 25

Every year MITRE publishes the CWE Top 25 — the most common and most dangerous weaknesses of the year, recalculated from CVE data. The ranking shows where real systems stumble most often: in 2025 first place went to XSS (CWE-79), followed by SQL injection (CWE-89); the list is based on an analysis of 39,080 CVE records. The ranking is a reference point for developers and organisations: which weaknesses most often lead to vulnerabilities, and where to direct training and protective measures.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • CVECVE identifier

    CVE is the number of a specific vulnerability in a specific product version; CWE is a type of weakness from which such vulnerabilities grow.

  • CVSSCVSS scale

    CVSS scores the severity of a specific vulnerability; CWE does not rate severity at all — it only names and describes the weakness.

In depth in the references

where the topic is covered in detail

Appears in the references