CWE

Common Weakness Enumeration

Common Weakness Enumeration — the taxonomy that classifies the underlying programming-error category that gives rise to vulnerabilities.

Why it matters

It lets a team see systemic patterns — "we have an SQL injection problem" — rather than play whack-a-mole on individual CVEs. If 60% of six months of findings sit in three CWE buckets, the right fix is training, a framework upgrade or a SAST rule, not another pentest.

How it's tested & exploited

Organised as a hierarchy (Classes → Bases → Variants) of 1,000+ entries. Every SAST finding and every quality pentest finding is tagged with a CWE so trend analysis is possible; the annual MITRE/SANS Top 25 ranks the highest-impact weaknesses. ASVS, the OWASP Top 10 and PCI DSS all reference CWE as the underlying taxonomy.

In depth

Where CVE identifies a specific instance of a vulnerability in a specific product, the Common Weakness Enumeration (CWE) identifies the underlying class of programming or design error that produced it. CWE-89 is "SQL Injection." CWE-79 is "Cross-Site Scripting." CWE-22 is "Path Traversal." Every CVE record links to one or more CWE entries, and CWE is the taxonomy that lets a security team analyse trends — "we have an SQL injection problem" — rather than just count individual CVEs.

The CWE corpus contains over a thousand entries organised into a hierarchical tree. Classes (e.g. CWE-707 "Improper Neutralisation") describe broad weakness families; Bases (CWE-89 "SQL Injection") are the concrete weaknesses developers and pentesters reason about day-to-day; Variants further specialise base weaknesses (CWE-564 "SQL Injection: Hibernate"). The MITRE/SANS Top 25 Most Dangerous Software Weaknesses, refreshed annually, identifies the highest-impact CWEs by combining CVE data, exploitability and frequency.

CWE has become the lingua franca for application security tooling. Every SAST finding maps to a CWE. Every penetration-test deliverable should tag findings with the relevant CWE so the engineering team can identify systemic patterns rather than playing whack-a-mole on individual bugs. OWASP's ASVS, the OWASP Top 10, and PCI DSS technical-requirement language all reference CWE entries as the underlying taxonomy.

For application-security programmes, CWE-trend analysis is one of the highest-value reports. If 60% of the last six months of findings are in three CWE buckets, the right intervention is a training programme, a framework upgrade, or a SAST rule, not another round of pentesting. AxVeil VAPT reports tag every finding with its CWE for exactly this reason. See VAPT services and the OWASP Top 10 2026 checklist for a worked example.

Related terms

Apply CWE to your programme

AxVeil scopes engagements against the standard you need to satisfy. Send the asset list, the target framework and the audit deadline — we respond with a fixed-fee proposal and a sample report from a comparable engagement.