In short
The CWE (Common Weakness Enumeration) is the reference catalog of software and hardware vulnerability types, maintained by the MITRE organization and funded by CISA, the U.S. Cybersecurity and Infrastructure Security Agency. Whereas a CVE identifies a specific vulnerability in a given product, a CWE describes the family of vulnerabilities that made it possible—for example, CWE-89 for SQL injection. It serves as a common language for developers, analysis tools, and penetration test reports.
CWE, CVE, CVSS: What Do They Do?
| Repository | What it describes | Example |
|---|---|---|
| CWE | A type of vulnerability | CWE-79: cross-site scripting (XSS) |
| CVE | A specific vulnerability in a product | CVE-2021-44228 (Log4Shell) |
| CVSS | The technical severity of a vulnerability | 10.0 for Log4Shell |
Common CWEs
- CWE-79: cross-site scripting (XSS).
- CWE-89: SQL injection.
- CWE-639: Authorization bypass via a user-controlled key, also known as IDOR.
- CWE-918: Server-Side Request Forgery (SSRF).
- CWE-352: Cross-Site Request Forgery (CSRF).
- CWE-22: path traversal.
- CWE-798: hard-coded credentials in software.
The Top 25 and the Top KEV
Each year, MITRE publishes the CWE Top 25 list of the most dangerous software vulnerabilities, compiled from published CVEs, as well as a ranking of the most prevalent vulnerabilities in the KEV catalog of actively exploited vulnerabilities. For a development team, these lists indicate which families of vulnerabilities to prioritize in code reviews and training.
Frequently asked questions
Why does a penetration test report cite CWEs?
Classifying each vulnerability into a recognized family helps developers understand the cause, facilitates tracking in tools, and allows for comparisons between audits.
Sources
Find out where an attacker would get in.
Our AI agents actually attack your scope, fully automated, and hand you the proof of every vulnerability.
