Notes
CVE: the name
CVE stands for common vulnerabilities and exposures. It is a naming system: one public identifier for one specific flaw in specific product versions. The format is CVE, the year, and a number. Log4Shell is CVE twenty twenty one, four four two two eight. The programme is run by MITRE, and identifiers are issued by hundreds of authorised organisations, mostly vendors. The United States National Vulnerability Database then adds scores and lists of affected products.
- format: CVE-year-number CVE-2021-44228 (Log4Shell) CVE-2014-0160 (Heartbleed)
- one ID = one specific flaw in specific product versions
- run by MITRE; IDs issued by hundreds of CNAs (vendors, researchers, CERTs)
- NVD adds scores and affected product data
CWE: the type
CWE, common weakness enumeration, is different. A CVE is one bug in one product. A CWE is the type of mistake behind it. CWE seventy nine is cross-site scripting. CWE eighty nine is SQL injection. Thousands of CVEs share the same few weakness types, and a list of the top twenty five is published each year. For a security engineer, CWE is the more useful view for prevention: fix the pattern in your code, and you prevent a whole family of future vulnerabilities.
- a catalogue of weakness types
- CWE-79: cross-site scripting
- CWE-89: SQL injection
- CWE-287: improper authentication
- CWE-502: unsafe deserialisation
- CWE-787: out-of-bounds write
- CVE = this bug, this product
- CWE = the class of bug
- CWE Top 25: published yearly
CVSS: the severity
CVSS, the common vulnerability scoring system, turns a vulnerability into a number from zero to ten. Up to three point nine is low, four to six point nine is medium, seven to eight point nine is high, and nine and above is critical. The base score describes the flaw itself in a reasonable worst case. Version three point one is still the most common, and version four is newer. One thing to remember above all: it measures severity, not the risk to your organisation.
- 0.1 - 3.9 Low
- 4.0 - 6.9 Medium
- 7.0 - 8.9 High
- 9.0 - 10.0 Critical
- the base score describes the flaw itself, in the worst reasonable case
- versions: 3.1 is still the most common; 4.0 is newer
- it measures severity, NOT risk to you
Read a vector
Every score comes with a vector string, and you should be able to read one. This is Log4Shell. Attack vector network: it can be attacked remotely. Attack complexity low: no special conditions. Privileges required none: no login needed. User interaction none: no victim has to click. Scope changed: it affects more than the vulnerable component. And high impact on confidentiality, integrity and availability. Remote, easy, no login, total impact: that is how a flaw scores ten.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H AV:N attack vector: network AC:L attack complexity: low PR:N privileges required: none UI:N user interaction: none S:C scope: changed C:H confidentiality impact: high I:H integrity impact: high A:H availability impact: high
Severity is not risk
Here is the trap. A nine point eight in a library function your code never calls carries no risk. A nine point eight on an isolated lab machine is low priority. But a six point five on your internet-facing login server, with attackers actively using it, is urgent. Studies consistently show that only a small percentage of published vulnerabilities are ever exploited. A team that works down the list by score alone will spend its time on the wrong things.
- a 9.8 in a library you do not load: no risk
- a 9.8 on an isolated lab box: low
- a 6.5 on your internet-facing login server, with an exploit in use: urgent
- most "criticals" are never exploited at all teams that sort by CVSS only fix the wrong things first
EPSS and KEV
Two free signals fix that. EPSS, the exploit prediction scoring system, gives each CVE a probability between zero and one that it will be exploited in the next thirty days, updated daily from real attack data. And the known exploited vulnerabilities catalogue, published by the American agency CISA, lists CVEs that are confirmed to be used in real attacks. If something you run is on that list, treat it as an emergency. Both can be downloaded and joined to your scan results.
- EPSS: probability (0 to 1) that a CVE is exploited in the next 30 days from FIRST; updated daily
- CISA KEV: a list of CVEs confirmed exploited in the wild, with due dates
- on KEV = treat as an emergency
- high EPSS = move it up both are free to download
Exploit databases
The next question is whether exploit code is public. Exploit DB is an archive of public exploits, and the searchsploit command searches a local copy by product and version. Also check for a Metasploit module, a Nuclei template, and proof-of-concept code on GitHub. Once a working exploit is public, the number of people able to attack you grows from a few experts to almost anyone. One warning: public proof-of-concept code is sometimes fake or malicious. Read it, and run it only in an isolated lab.
searchsploit apache 2.4.49 # lists matching entries from the # local copy of Exploit-DB # also check: # - Metasploit modules # - Nuclei templates # - GitHub proof-of-concept code # - vendor and CERT advisories # public PoC code may be fake or # malicious: read before running
The timeline
Understand the timeline. A zero-day is exploited before any fix exists; these are rare and expensive. At disclosure, the CVE is published with a patch. From then it is an n-day: public and fixed, but not yet installed everywhere. Attackers compare the patched version with the old one to see what changed, and build an exploit. For internet-facing products such as VPN gateways and firewalls, mass exploitation now often begins within days. Most breaches use n-days, not zero-days.
- zero-day: exploited before a fix exists
- disclosure: CVE published, patch released
- n-day: public, patched, but you have not installed it
- attackers compare the patch with the old version to build an exploit
- for edge devices: often exploited within days
A prioritisation method
Here is a practical method. Fix first anything on the known exploited list. Second, anything internet-facing with a public exploit. Third, high exploit probability on important assets. Then work by severity and asset value. Throughout, ask the context questions: can an attacker reach it, is the vulnerable feature enabled, and is there a compensating control such as a firewall rule? Frameworks such as SSVC formalise this as a decision tree, and Part fourteen covers it in depth.
- 1. on CISA KEV, or exploited in the wild
- 2. internet-facing AND a public exploit exists
- 3. high EPSS on important assets
- 4. then by CVSS and asset value
- also ask: reachable? feature enabled? compensating control in place?
Where to look
Where do you look things up? The CVE website and the national vulnerability database. The vendor's own security advisory, which is usually the most accurate on affected versions and fixes. The known exploited catalogue. The EPSS site. For open-source packages, GitHub security advisories and the OSV database, which cover problems that never receive a CVE. Exploit DB. And your national computer emergency response team. Subscribe to advisories for the products you actually run.
- cve.org and nvd.nist.gov
- vendor security advisories (the most accurate)
- CISA KEV catalogue
- first.org/epss
- GitHub Security Advisories and osv.dev for open-source packages
- Exploit-DB
- your national CERT
- subscribe for your own stack
Common mistakes
Mistakes. A policy that only says fix all criticals in seven days. Treating the CVSS score as risk. Ignoring medium-rated issues that are being actively exploited. Assuming that no CVE means no vulnerability, when your own code and many open-source packages have flaws with no identifier. Running proof-of-concept code from the internet on a work laptop. And trusting a scanner's version match without checking whether the fix was backported.
- "fix all criticals in 7 days" as the whole policy
- treating CVSS as risk
- ignoring mediums that are actively exploited
- assuming no CVE means no vulnerability
- running PoC code from the internet on a work laptop
- trusting the scanner's version match
Say it like this
In the interview: CVSS tells me severity, not risk. I add threat information: is it in the known exploited catalogue, what is its EPSS probability, is there a public exploit. And I add context: is the asset internet-facing, how important is it, and is the vulnerable code actually reachable. Known exploited and internet-facing issues go first, with deadlines by tier. That way the team fixes the small number of vulnerabilities that attackers really use.
- "CVSS gives severity, not risk. I add threat: is it on CISA KEV, what is its EPSS, is there a public exploit.
- And context: exposure, asset
- value, whether the vulnerable
- code is reachable. Exploited
- and internet-facing first, with SLAs by tier."