In lesson one, you learned what a vulnerability is. Now we'll look at how the security world names and describes them. By the end of this lesson, you'll be able to read a CVE identifier, know what's inside a CVE record, and explain how CVE is different from CWE.
Imagine a flaw in a popular web server. The vendor calls it bulletin fourteen. A vulnerability scanner calls it plugin one-eight-four-two-three-three. A news site gives it a catchy nickname, and your team opens a ticket with its own number. Four names for one problem. Without a shared identifier, it would be very hard to know that everyone is talking about the same flaw. That is the problem the CVE Program solves.
CVE stands for Common Vulnerabilities and Exposures. A CVE identifier is a unique name for one publicly disclosed vulnerability. It has three parts. First, the prefix: CVE. Second, a year. This is usually the year the identifier was assigned or the flaw was made public. It is not necessarily the year the flaw was discovered. Third, a sequence number with four or more digits. So when a vendor, a scanner and a news article all mention the same CVE ID, everyone knows exactly which vulnerability they mean.
The CVE Program began in 1999. Today, identifiers are assigned by hundreds of organisations called CVE Numbering Authorities, or CNAs. A CNA might be a software vendor, an open-source foundation, a security research company or a national computer emergency response team. Each CNA covers a defined scope, usually its own products. When a CNA confirms a vulnerability, it reserves an ID, and later publishes a CVE record.
What's inside a CVE record? A description, explaining the flaw and what an attacker could achieve. A list of affected products and versions. References: links to the vendor advisory, patches and technical write-ups. Usually a weakness type, which we'll come to in a moment. And often a severity score. Always read the references. The vendor advisory is where you'll find the fixed version and any workarounds.
You'll also hear about the NVD, the National Vulnerability Database, run by the US National Institute of Standards and Technology. The NVD takes CVE records and enriches them. Analysts may add a severity score, a weakness classification, and product identifiers called CPE names. Those CPE names let tools automatically match vulnerabilities to the software you run. Enrichment can take days or even weeks, so a brand-new CVE may say "awaiting analysis". That's why StraitOfVuln also shows the CNA's own product information.
Let's look at a CPE name more closely, because you'll see them in vulnerability data. A CPE name is a structured label for a product. It starts with cpe colon two point three, the format version. Then a letter for the type: a for application, o for operating system, h for hardware. Then the vendor, the product and the version. So a CPE for Apache Tomcat version nine point zero point eighty-five spells out exactly that. Vulnerability records often use CPE names together with version ranges, such as "every version before nine point zero point ninety-eight". That's what allows tools to match a vulnerability to your software automatically.
Now for the most common point of confusion: CVE versus CWE. CVE names a specific vulnerability, in specific products and versions. CWE, the Common Weakness Enumeration, names a type of mistake that can appear in any software. Think of CWE as the diagnosis category, and CVE as one patient's case. For example, CVE-2021-44228, the famous Log4j vulnerability, is one specific flaw. The kind of mistake behind flaws like that is described by CWE categories, such as improper input handling or unsafe deserialization.
Here are some weakness types you'll meet again and again. CWE seventy-nine: cross-site scripting, where a website can be tricked into running someone else's script in your browser. CWE eighty-nine: SQL injection, where input changes a database query. CWE seven-eight-seven: out-of-bounds write, a memory error. CWE eight-six-two: missing authorization. And CWE seventy-eight: operating system command injection. Knowing the CWE helps you understand how a vulnerability works and how developers can prevent the whole category in the future.
Finally, CVE records can change. A record can be rejected, for example if it's a duplicate, or turns out not to be a vulnerability at all. Some are marked as disputed, when the vendor disagrees that the issue is a security flaw. And many records are updated as more is learned, such as new affected versions, a new severity score, or new references. Good vulnerability management always looks at the latest version of a record.
Let's recap. A CVE ID gives one shared name to one publicly disclosed vulnerability. CVE Numbering Authorities assign identifiers and publish records. The NVD enriches those records with scores, weakness types and product identifiers. CVE is the specific flaw; CWE is the type of mistake behind it. And records can be rejected, disputed or updated. Next, we'll look at the three signals that tell you how urgent a vulnerability is.