Common Weakness Enumeration
Community-maintained list of software and hardware weakness types, the underlying defects that cause CVEs.
Definition
Common Weakness Enumeration (CWE) is a category system for software and hardware weaknesses maintained by MITRE on behalf of CISA. While a CVE identifies a specific vulnerability in a specific product, a CWE identifies the underlying weakness type, for example, CWE-79 (Cross-Site Scripting), CWE-89 (SQL Injection), CWE-787 (Out-of-bounds Write), CWE-798 (Use of Hard-coded Credentials). The annual CWE Top 25 Most Dangerous Software Weaknesses ranks the most consequential weakness classes based on prevalence and severity in published CVEs.What this means in practice
For medical device manufacturers, CWE is the link between secure-coding practices and the post-market vulnerability stream. Static analysis tools (SAST) report findings as CWEs; secure-coding training is structured around CWEs; threat models reference CWEs as the credible defect classes underlying STRIDE threats. Mapping your secure development controls to the CWE Top 25 is one of the cleanest ways to demonstrate IEC 81001-5-1 §5 conformance.Examples
- A developer accidentally hard-codes a default password into a device's firmware, which is an instance of CWE-798 (Use of Hard-coded Credentials).
- During a security audit, a static analysis tool flags several instances of uncontrolled format string vulnerabilities, identifying them as CWE-134.
- A team designing a new patient monitoring system reviews the CWE Top 25 to prioritize training on preventing common software weaknesses like CWE-79 (Cross-Site Scripting) in their web interface.
- •Reporting SAST findings as raw tool output without normalizing to CWE, reviewers can't compare evidence across tools without it.
- •Treating CWE Top 25 as exhaustive; many medical-device-relevant weaknesses (CWE-798 hardcoded credentials, CWE-1188 insecure default initialization) live outside the Top 25.
- •Conflating CWE with CVE, CWE is the class of defect, CVE is one occurrence of it in a specific product.
Frequently asked questions
Related terms
Grouped by themeEditor's picks
· Hand-selected related conceptsCISA's authoritative list of CVEs with confirmed in-the-wild exploitation, with mandatory federal remediation deadlines.
A globally unique identifier for a publicly disclosed cybersecurity vulnerability.
An industry-standard 0–10 score that quantifies the severity of a software vulnerability.
Secrets - passwords, API keys, certificates - embedded in firmware or source code shipped on every device.
More in Cybersecurity
· Same categoryInternational standard defining secure-product-lifecycle activities for health software, including medical devices.
OWASP project resources for securing IoT, embedded, and connected medical devices.
Automated security testing - SAST analyzes source code at rest, DAST exercises a running application.
A documented, risk-based set of processes that build cybersecurity into a medical device across its full lifecycle.
Where this term appears across MedTech Terms.
Sources
3 sourcesEvery citation below opens the original document. Each is graded against our source-tier hierarchy so you can see what rests on binding law versus commentary.
- 1Common Weakness EnumerationTier 2 VerifiedMITREcwe.mitre.org
- 2CWE Top 25 Most Dangerous Software WeaknessesTier 2 VerifiedMITREcwe.mitre.org
- 3MDCG Cybersecurity GuidanceTier 2 VerifiedMDCGhealth.ec.europa.eu
Inline markers like [1] jump to the matching reference above.