All terms

    Common Weakness Enumeration

    Community-maintained list of software and hardware weakness types, the underlying defects that cause CVEs.

    Reviewed by Christian Espinosa, Founder, Blue Goat CyberLast reviewed June 20, 2026

    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 the regulation says
    FDA's Premarket Cybersecurity guidance cites the CWE Top 25 as a reference for secure-coding rigor. IEC 81001-5-1 §5.3 expects manufacturers to identify and mitigate known weakness classes, with CWE as the typical evidence source.

    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.
    Common pitfalls
    • •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

    A CVE (Common Vulnerabilities and Exposures) identifies one specific, publicly disclosed vulnerability in a specific product version, while a CWE (Common Weakness Enumeration) identifies the underlying category of defect that made that vulnerability possible, such as CWE-79 for cross-site scripting or CWE-798 for hard-coded credentials. Every CVE is typically tagged with one or more CWE identifiers so that vulnerability databases and static analysis tools can be compared and aggregated across products by weakness type rather than treated as isolated incidents.
    Grouped by theme
    Cited by

    Where this term appears across MedTech Terms.

    Sources

    3 sources

    Every 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.

    Tier 2Regulator guidance and consensus· 3
    Link health: 3 verified· last checked 2026-06-20
    MITRE·2MDCG·1
    1. 1
      Common Weakness Enumeration
      Tier 2 Verified
      MITREcwe.mitre.org
    2. 2
      CWE Top 25 Most Dangerous Software Weaknesses
      Tier 2 Verified
      MITREcwe.mitre.org
    3. 3
      MDCG Cybersecurity Guidance
      Tier 2 Verified
      MDCGhealth.ec.europa.eu

    Inline markers like [1] jump to the matching reference above.