Vulnerabilities are most precisely classified by the underlying weakness that makes them exploitable, using frameworks such as MITRE’s Common Weakness Enumeration (CWE) and the OWASP Top 10. Major classes include injection flaws, such as SQL injection and command injection, where untrusted input is executed as code; broken access control, where users can act outside their intended permissions; authentication failures, such as weak session handling or missing multi-factor authentication; cryptographic failures that expose sensitive data; memory safety errors like buffer overflows and use-after-free bugs; cross-site scripting (XSS) and cross-site request forgery (CSRF); insecure deserialization; and server-side request forgery (SSRF).
Classifying by weakness type is useful because it points to root cause rather than individual instances. Hundreds of separate CVEs may trace back to the same handful of weakness classes, so addressing a pattern, for example by adopting parameterized queries across a codebase to eliminate SQL injection, prevents entire categories of future application security vulnerabilities instead of fixing them one at a time.
