Security

What Is a CVE? CVE IDs, Records and CVSS Scores Explained

A CVE (Common Vulnerabilities and Exposures) entry is a public identifier for one specific, publicly disclosed security vulnerability, written like CVE-2021-44228. The ID gives everyone (vendors, scanners, security teams) one name for the same flaw; it is not a severity rating, a patch, or proof that you are affected.

To look one up, search the ID at cve.org for the official record, or at nvd.nist.gov for NIST's analysis with CVSS scores and affected-product data.

What the CVE Program is

The CVE Program states its mission as "to identify, define, and catalog publicly disclosed cybersecurity vulnerabilities", with one CVE Record for each vulnerability in the catalog. The program does not find vulnerabilities itself. Vulnerabilities are assigned IDs and published by partner organisations, so that, as the program puts it, professionals can be sure "they are discussing the same issue".

Before shared IDs, two vendors and a scanner could all describe the same bug in different words, and nobody could tell whether a patch for "the Log4j JNDI issue" fixed the thing their scanner flagged. With a CVE ID, the advisory, the scanner finding and the patch notes all name CVE-2021-44228.

How to read a CVE ID

CVE-2021-44228 has three parts:

  • CVE: the fixed prefix.
  • 2021: a year. The CVE record format says it should be either the year the vulnerability was discovered or the year the ID is published in, so it is not always the year the issue became public.
  • 44228: a sequence number. The official schema allows 4 to 19 digits (the pattern is ^CVE-[0-9]{4}-[0-9]{4,19}$). The number carries no meaning about severity or order of discovery.

If you write code that extracts CVE IDs from text, use that pattern. Older tools that assumed exactly four digits truncated IDs like CVE-2014-12345 into a different, valid ID.

Who assigns CVE IDs

IDs are assigned by CVE Numbering Authorities (CNAs), which the CVE glossary defines as "an authorized entity with specific scope and responsibility to regularly assign CVE IDs and publish corresponding CVE Records". Each CNA has a scope: a software vendor usually covers its own products, while other CNAs cover a sector or an open-source ecosystem. CNAs sit under Roots, which recruit, train and govern them. There is also a CNA of Last Resort for vulnerabilities that no other CNA's scope covers.

In practice, if you find a vulnerability in a product, you report it to the vendor. If the vendor is a CNA, it assigns the ID itself; if not, the CNA whose scope covers it (or the CNA of Last Resort) does.

The life of a CVE Record

The glossary defines three states:

StateWhat it means
ReservedA CNA has reserved the ID. This is the initial state; the details are not published yet.
PublishedThe CNA has filled in the data and published the record.
RejectedThe ID should no longer be used. The record stays on the list so people know it is invalid.

The Log4Shell record shows the timing in its metadata: reserved on 2021-11-26 and published on 2021-12-10 by the CNA apache. A reserved ID that already appears in public sources without a published record is called "Reserved but Public".

What is inside a CVE Record

Records are JSON documents in the CVE Record Format. You can fetch one directly from the CVE Services API:

curl -s https://cveawg.mitre.org/api/cve/CVE-2021-44228

Trimmed and summarised, the record for CVE-2021-44228 contains:

  • Metadata: state PUBLISHED, the assigning CNA, and the reserved, published and updated dates.
  • Description: "Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints..."
  • Affected product and versions: Apache Log4j2, with version ranges.
  • Problem types: weakness classes from CWE, here CWE-502 (Deserialization of Untrusted Data), CWE-400 and CWE-20.
  • References: links to advisories and patches.
  • Containers: one cna container from the CNA, plus adp containers added by Authorized Data Publishers. For this record, CISA's ADP container adds metrics.

Note what the CNA's own container gives as severity for Log4Shell: just the word "critical", with no CVSS score. Scores often come from somewhere else.

CVE vs NVD vs CVSS

These three get mixed up constantly:

NameWhat it isRun by
CVEThe ID and the base record for a vulnerabilityThe CVE Program and its CNAs
NVDNIST's National Vulnerability Database, which takes CVE records and adds analysis: CVSS scores, affected-product (CPE) data, weakness typesNIST
CVSSThe scoring system (0.0 to 10.0) used to rate severityFIRST

The CVE Program itself lists "the CVE Program is responsible for assigning vulnerability severity scores" as a myth. Scores come from the CNA (if it provides one), from NVD, and from ADPs like CISA. You can see this in the NVD API response for CVE-2021-44228, which carries two CVSS 3.1 scores, one from [email protected] and one from a second source, both 10.0 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, plus an older CVSS 2.0 score of 9.3.

curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-44228"

How to read a CVSS score

CVSS v3.1 maps the numeric score to a rating:

RatingScore
None0.0
Low0.1 to 3.9
Medium4.0 to 6.9
High7.0 to 8.9
Critical9.0 to 10.0

The vector string explains the number. In the Log4Shell vector, AV:N means attackable over the network, AC:L low attack complexity, PR:N no privileges required, UI:N no user interaction, and C:H/I:H/A:H high impact on confidentiality, integrity and availability. The CVSS specification describes its output as scores "indicating the severity of a vulnerability relative to other vulnerabilities". It leaves out things like how many of your systems run the product, so a 9.8 on a library you don't ship matters less to you than a 6.5 on your internet-facing login page.

Exploitation in the wild is a separate signal. The NVD record for CVE-2021-44228 also shows that CISA added it to its Known Exploited Vulnerabilities catalogue on 2021-12-10, with a required action date of 2021-12-24 for US federal agencies. If you are prioritising a long list of CVEs, known exploitation is a stronger reason to patch first than the score alone.

What to do when a scanner reports a CVE

  1. Confirm the version. Check the installed version of the package against the affected range in the record or the vendor advisory. Scanners sometimes match on a package name without checking whether the vulnerable code path is present.
  2. Check how you use it. Many vulnerabilities need a specific feature or configuration. The description usually says which.
  3. Update to a fixed version, or apply the vendor's mitigation if no fix exists yet.
  4. Record the decision if you choose not to act (for example, the affected function is never called), so the next scan doesn't restart the discussion.

Dependencies are where most CVEs reach application developers. The supply chain attack article covers the related, deliberate case: malicious code shipped through those same dependencies.

Frequently asked questions

Does a CVE mean my software is hacked?
No. A CVE means a vulnerability has been publicly identified in some versions of a product. You are only exposed if you run an affected version in a way the vulnerability applies to. Check the affected versions in the CVE Record or the vendor advisory, then update or apply the listed mitigation.
Who gives a vulnerability its CVE score?
Not the CVE Program. A CVE Record can include a CVSS score supplied by the CNA that published it, and other organisations add their own: NIST's National Vulnerability Database publishes CVSS scores, and CISA adds data as an Authorized Data Publisher. Scores from different sources can differ.
What does CVE-2024-12345 with five digits mean?
The number after the year is just a sequence number, and it can be longer than four digits. The CVE record format allows 4 to 19 digits. A longer number does not mean the issue is newer or more serious.
What is a rejected CVE?
A CVE ID in the Rejected state should no longer be used, for example because it turned out to be a duplicate or not a vulnerability. The record stays on the CVE List, marked as rejected, so anyone who sees the ID knows it is invalid.

Sources