SECURITY ENGINEERING · PART 5 · ETHICAL HACKING, STEP BY STEP · ANALYSIS · 64 OF 229

CVE, CVSS, EPSS and Exploit-DB Explained

Every known vulnerability gets a CVE identifier, a weakness type (CWE) and a CVSS severity score. This episode explains each, reads a real CVSS vector piece by piece using Log4Shell (CVE-2021-44228, score 10.0), shows why severity is not the same as risk, and adds the signals that matter for prioritising: EPSS exploit probability, the CISA Known Exploited Vulnerabilities list and public exploits in Exploit-DB.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. 14
  14. 15
  15. 16
  16. 17
  17. 18
  18. 19
  19. 20
  20. 21
  21. 22
  22. 23
  23. 24
  24. 25
  25. 26
  26. 27
  27. 28
  28. 29
  29. 30
  30. 31
  31. 32
  32. 33
  33. 34
  34. 35
  35. 36
  36. 37
  37. 38
  38. 39
  39. 40
  40. 41
  41. 42
  42. 43
  43. 44
  44. 45
  45. 46
  46. 47
  47. 48
  48. 49
  49. 50
  50. 51
  51. 52
  52. 53
  53. 54
  54. 55
  55. 56
  56. 57
  57. 58
  58. 59
  59. 60
  60. 61
  61. 62
  62. 63
  63. 64
  64. 106
  65. 107
  66. 108
  67. 109
  68. 110
  69. 111
  70. 112
  71. 113
  72. 114
  73. 115
  74. 116
  75. 117
  76. 118
  77. 119
  78. 120
  79. 121
  80. 122
  81. 123
  82. 124
  83. 125
  84. 126
  85. 127
  86. 128
  87. 129
  88. 130
  89. 131
  90. 132
  91. 133
  92. 134
  93. 135
  94. 136
  95. 137
  96. 138
  97. 139
  98. 140
  99. 141
  100. 142
  101. 143
  102. 144
1 / 14

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • CVE names it
  • CWE classifies it
  • CVSS scores severity
  • EPSS and KEV show real threat
  • your context decides

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.

CVE: the naming system
  • 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.

Common Weakness Enumeration
  • 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.

Severity bands
  • 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.

CVE-2021-44228, score 10.0
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.

Why the base score misleads
  • 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.

Is it being exploited?
  • 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.

check for public exploits
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.

Life of a vulnerability
  • 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.

Fix first when
  • 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.

Sources
  • 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.

Avoid these
  • "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.

In the interview
  • "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."

Interview questions

Q1What is a CVE?

A Common Vulnerabilities and Exposures identifier: a unique public ID, in the form CVE-YYYY-NNNNN, assigned to a specific vulnerability in specific products. It lets vendors, researchers and tools refer to the same issue unambiguously.

Q2What is the difference between CVE and CWE?

A CVE identifies one particular vulnerability in a particular product. A CWE (Common Weakness Enumeration) identifies a category of software or hardware weakness, such as SQL injection (CWE-89). Each CVE is usually mapped to one or more CWEs.

Q3What is CVSS and how is it calculated?

The Common Vulnerability Scoring System rates severity from 0 to 10 using base metrics: attack vector, attack complexity, privileges required, user interaction, scope, and impact on confidentiality, integrity and availability. Temporal or threat and environmental metrics can adjust the score.

Q4What is EPSS?

The Exploit Prediction Scoring System, maintained by FIRST, estimates the probability that a CVE will be exploited in the wild within the next 30 days. It is data-driven, updated daily, and complements CVSS by measuring likelihood rather than severity.

Q5What is the CISA KEV catalogue?

The Known Exploited Vulnerabilities catalogue is a list maintained by the US Cybersecurity and Infrastructure Security Agency of CVEs with reliable evidence of active exploitation. US federal agencies must remediate listed items by set dates, and many organisations use it for prioritisation.

Q6What is the difference between a zero-day and an n-day?

A zero-day is a vulnerability exploited or known to attackers before the vendor has released a fix. An n-day is a publicly known vulnerability with a patch available that remains exploitable on systems that have not been updated.

Q7What is Exploit-DB?

A public archive of exploits and proof-of-concept code for known vulnerabilities, maintained by OffSec. The searchsploit tool searches an offline copy. It is used by testers to verify issues and by defenders to judge how easily a flaw can be exploited.

Q8Why is CVSS alone not enough for prioritisation?

CVSS base scores describe intrinsic severity, not whether a vulnerability is being exploited or whether the affected system is exposed or important. Prioritising by CVSS alone produces far more "urgent" work than teams can do, while missing lower-scored issues under active attack.