CCyberwiki

CWE Top 25

CWE Top 25
Full nameCWE Top 25 Most Dangerous Software Weaknesses
Published byMITRE, with CISA
First edition2009 CWE/SANS Top 25 Most Dangerous Programming Errors
Current edition2025, released 11 December 2025
Data39,080 CVE Records published 1 June 2024 to 1 June 2025
Companion listsTop 10 KEV Weaknesses, On the Cusp
Websitecwe.mitre.org/top25

The CWE Top 25 Most Dangerous Software Weaknesses is a yearly ranking of the weakness types that caused the most, and the most severe, publicly recorded vulnerabilities in a twelve-month window. MITRE, which maintains the Common Weakness Enumeration, computes it from the weakness assigned to each Common Vulnerabilities and Exposures Record, so the list measures which programming mistakes produced published flaws; a separate list ranks the weaknesses behind exploited ones.1 In the 2025 edition cross-site scripting came first with a score of 60.38, more than twice the score of SQL injection in second place.2

Score

A CVE Record can carry one or more weakness IDs, chosen by the CVE Numbering Authority (CNA) that published it, or added later by CISA's Vulnrichment project or by NVD analysts. For each weakness the formula counts its mappings and averages the Common Vulnerability Scoring System base score of the records it is mapped to. Both values are scaled between the lowest and highest seen in the data, then multiplied:1

Fr = (count(CWE) - min(count)) / (max(count) - min(count))
Sv = (avg_CVSS(CWE) - min(CVSS)) / (max(CVSS) - min(CVSS))
Score = Fr * Sv * 100

A weakness that is common but usually low in impact, or severe but rare, scores low on one factor and so on the product; only one that is both common and severe reaches the top. Records without a CVSS 3.0 or 3.1 score are left out, because scores from different CVSS versions are calculated differently.1 The 2025 dataset held 39,080 records. Of these, 9,468 with vague mappings or mappings that disagreed with a keyword matcher went back to 281 CNAs for review, and 170 of them answered on 2,459 records. It was also the first edition in which an LLM tool suggested more precise mappings to the reviewers.1

The 2025 list

Table 1. The 2025 CWE Top 25, with each weakness's score and its number of CVEs in the KEV catalog.2
RankCWEWeaknessScoreCVEs in KEV
1CWE-79Cross-site scripting60.387
2CWE-89SQL injection28.724
3CWE-352Cross-site request forgery13.640
4CWE-862Missing authorization13.280
5CWE-787Out-of-bounds write12.6812
6CWE-22Path traversal8.9910
7CWE-416Use after free8.4714
8CWE-125Out-of-bounds read7.883
9CWE-78OS command injection7.8520
10CWE-94Code injection7.577
11CWE-120Classic buffer overflow6.960
12CWE-434Unrestricted upload of a dangerous file type6.874
13CWE-476NULL pointer dereference6.410
14CWE-121Stack-based buffer overflow5.754
15CWE-502Deserialization of untrusted data5.2311
16CWE-122Heap-based buffer overflow5.216
17CWE-863Incorrect authorization4.144
18CWE-20Improper input validation4.092
19CWE-284Improper access control4.071
20CWE-200Exposure of sensitive information4.011
21CWE-306Missing authentication for a critical function3.4711
22CWE-918Server-side request forgery3.360
23CWE-77Command injection3.152
24CWE-639Authorization bypass through a user-controlled key2.620
25CWE-770Allocation of resources without limits2.540

Missing authorization rose five places to fourth. The count of CVEs mapped to cross-site scripting grew by more than 3,000 over the year before, and SQL injection by almost 1,000, partly because more CVEs were published overall.3

Mapping decides the rank

Before 2025, every mapping was first rolled up into View-1003, a set of 130 weaknesses the National Vulnerability Database uses. A mapping outside that set was moved to its nearest ancestor inside it, or dropped if none existed. The 2025 edition counted mappings as published for the first time.1 Three kinds of buffer overflow (CWE-120, CWE-121 and CWE-122) and improper access control entered the list as a result. Several broader entries dropped out, among them CWE-119 and CWE-287, probably because their children's mappings were no longer added to them. Improper privilege management (CWE-269) had 219 CVEs of its own in 2025; with its children's mappings added back, as View-1003 would have done, it would have had 633 and likely stayed on the list.3

How one CNA maps can move the ranking. The largest producer in the 2025 data, with 1,884 records, often listed both a precise weakness and its parent; since every mapping counts, MITRE removed that CNA's parent mappings where a child was also present.1 Mapping has also become more precise: 67% of records in the 2025 data had a weakness supplied by the CNA, up from 53%, and mappings to entries marked Discouraged, ones too abstract to name a root cause, fell to 5.42% of the list's 28,336 mappings, from 10.19% in 2024.3

History

The first list, the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors, began as a proposal by the SANS Institute and was drafted by MITRE in rounds of comments from a group that grew to 41 people from 35 organisations.4 The 2011 edition was ranked from surveys and interviews with developers, analysts, researchers and vendors. In 2019 MITRE switched to the data method, using about 25,000 CVEs from 2017 and 2018. That change brought broad class-level entries onto the list, such as improper input validation, and put the memory-buffer class CWE-119 first with a score of 75.56.5

Top 10 KEV Weaknesses

A companion list applies the same formula only to records in the Known Exploited Vulnerabilities catalog catalog: 182 CVEs from the same twelve months. With so few records one CVE can change a rank below tenth place, so it stops at ten.6 The order differs sharply. OS command injection leads with 20 exploited CVEs, and cross-site scripting is tenth.7 Cross-site request forgery, third in the main list, has no CVE in KEV at all.2

Biases in the data

MITRE set out the biases of its method with the 2019 edition. Only flaws that receive a CVE are counted, and CVEs rarely cover bugs fixed before release, flaws in online services, or software used inside one organisation, so the weaknesses behind such flaws may be under-represented. Vendors who publish many CVEs shape the data with their languages: a large contributor writing C raises the share of C weaknesses, and Fuzzing finds memory errors in volume. The formula also favours implementation flaws over design flaws, because one web application can have many cross-site scripting bugs but a single weak choice of encryption.5

Use

CISA, which sponsors the CWE programme, released the 2025 list with MITRE and ties it to its Secure by Design and Secure by Demand programmes. It asks developers to review it for high-priority weaknesses, security teams to cover it in testing, and buyers to use it as a benchmark when they assess vendors.8

In SecFlash

SecFlash issue codes carry a CWE where one fits, and these fall on the 2025 list: SF-SEC-710 (HTML output not escaped, CWE-79), SF-SEC-704 (SQL built from strings, CWE-89), SF-SEC-611 (form without anti-CSRF token, CWE-352) and SF-SEC-725 (paid or private route with no login check, CWE-306) on the Security page; SF-CLD-501 (public table without row level security, CWE-862) on the Cloud page; and SF-EXP-501 (one account can read another account's data, CWE-639) on the Exposure page.

See also

References

  1. a b c d e f MITRE (2026). "2025 CWE Top 25: Methodology". Common Weakness Enumeration.
  2. a b c MITRE (2025). "2025 CWE Top 25 Most Dangerous Software Weaknesses". Common Weakness Enumeration.
  3. a b c MITRE (2025). 2025 CWE Top 25: analysis of rank changes and mapping. Common Weakness Enumeration.
  4. back MITRE. "2009 CWE/SANS Top 25: Process". Common Weakness Enumeration.
  5. a b MITRE (2019). "2019 CWE Top 25 Most Dangerous Software Errors". Common Weakness Enumeration.
  6. back MITRE (2026). "CWE Top 10 KEV Weaknesses List Methodology". Common Weakness Enumeration.
  7. back MITRE (2026). "2025 CWE Top 10 KEV Weaknesses". Common Weakness Enumeration.
  8. back CISA (11 December 2025). "2025 CWE Top 25 Most Dangerous Software Weaknesses". Cybersecurity advisory bulletin.