Skip to content
Visual explainer 4h to learn 4 steps

Mapping findings to known vulnerabilities

Match enumerated versions to known issues and rate them by CVSS.

By Invicly Tech, , in Ethical Hacking & Penetration Testing. About 10 minutes to read.

Topic 11 of 32

In short

With services and versions enumerated, you match them to publicly known vulnerabilities and rate each by CVSS. In the lab you confirm relevance rather than assume it, then prioritise by realistic risk for the report.

Explained simply

You now know that a lab host runs, say, Apache 2.4.49 and vsftpd 2.3.4. The next question is: are these versions known to be vulnerable? Security researchers and vendors publish known flaws in public databases, each with an ID called a CVE, like CVE-2021-41773.

Each CVE usually comes with a CVSS score from 0 to 10. CVSS (Common Vulnerability Scoring System) rates how bad a flaw is in general: can it be used over the network, does the attacker need an account, and what can they read, change or break? 9.0 and above is Critical.

But a matching version is only a lead. The vulnerable feature may be turned off, the distribution may have patched it quietly, or the host may be hidden behind other protections. In the lab you check whether the conditions really apply before you call it a finding.

Finally you sort the findings by real risk, not by score alone. A medium flaw on an internet-facing login page that attackers are known to exploit can matter more than a critical flaw on an isolated test box.

Press Play on a diagram to walk through it one step at a time.

FlowMapping to vulnerabilities
  1. Step 1
    Look up

    Find CVEs for the version.

  2. Step 2
    Read CVSS

    Understand severity.

  3. Step 3
    Confirm

    Verify relevance in the lab.

  4. Step 4
    Prioritise

    Rank by real risk.

CompareTwo findings, ranked by real risk
Finding A: CVSS 9.8
  • Old service on isolated lab segment
  • Not reachable from users
  • No public exploit known
  • Priority: medium
Finding B: CVSS 7.5
  • Internet-facing VPN portal
  • Listed in CISA KEV
  • High EPSS score
  • Priority: fix first

In depth

Where to look up a version

The main sources are the CVE list at cve.org (the official IDs and descriptions), the US National Vulnerability Database at nvd.nist.gov (adds CVSS scores and CPE product names), vendor advisories (often the most accurate about which versions and settings are affected), and distribution trackers such as the Debian Security Tracker and the Ubuntu CVE tracker (they tell you which package version contains the fix).

On Kali, searchsploit searches a local copy of Exploit-DB, which tells you whether public exploit code exists for a product; that raises the likelihood of attack. nmap's vulners script uses the CPE from -sV to list CVEs, but it sends the product names to an external service, so check that your scope allows it.

  • cve.org: official CVE IDs
  • nvd.nist.gov: CVSS scores and CPE names
  • Vendor advisories: exact affected versions and settings
  • Distro trackers: which package fixed it
  • searchsploit: is there public exploit code?

Reading a CVSS v3.1 vector

A CVSS v3.1 vector looks like CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. AV is the attack vector: N network, A adjacent network, L local, P physical. AC is attack complexity: L low or H high. PR is the privileges required: N none, L low, H high. UI is user interaction: N none or R required. S is scope: U unchanged or C changed (the impact reaches beyond the vulnerable component). C, I and A are the impact on confidentiality, integrity and availability: H high, L low or N none.

The vector above scores 9.8, Critical. Bands: 0.1 to 3.9 Low, 4.0 to 6.9 Medium, 7.0 to 8.9 High, 9.0 to 10.0 Critical. CVSS v4.0, released in 2023, adds metrics such as Attack Requirements (AT) and splits impact on the vulnerable system from impact on other systems, so you will see both versions in databases.

LayersParts of a CVSS v3.1 base vector
  1. 1
    AV: attack vector

    Network, adjacent, local or physical

  2. 2
    AC: attack complexity

    Low or high

  3. 3
    PR and UI

    Privileges needed, user interaction needed

  4. 4
    S: scope

    Does impact reach other components?

  5. 5
    C / I / A

    Impact on confidentiality, integrity, availability

Confirming relevance in the lab

A version match is a hypothesis. Read the advisory and list the conditions: which versions, which modules or settings, which platform. Then check each one on the lab host. For example, CVE-2021-41773 affects only Apache 2.4.49, and only when the configuration allows access to files outside the document root; a default configuration that denies it is not exposed in the same way. CVE-2024-6387 (regreSSHion) affects OpenSSH 8.5p1 to 9.7p1 on glibc-based Linux, but distributions shipped fixed packages that keep the 8.9p1 or 9.6p1 version label.

Check package versions with dpkg -l or rpm -q on your lab host, compare with the distro tracker, and look at configuration files. Only when the conditions hold, and the RoE allows it, do you move to a controlled proof in the exploitation phase. Mark anything unconfirmed as "potential" in the report.

FlowFrom version match to confirmed finding
  1. 1
    Version matches

    Banner or -sV says affected

  2. 2
    Read the advisory

    List versions, settings, platform

  3. 3
    Check the package

    dpkg -l or rpm -q vs distro tracker

  4. 4
    Check the config

    Is the vulnerable feature enabled?

  5. 5
    Label it

    Confirmed, potential or false positive

Prioritising by real risk

CVSS base scores describe the flaw in general, not in the client's network. To rank findings, combine several signals. Exposure: is the service reachable from the internet, or only from an internal segment? Known exploitation: is the CVE in CISA's Known Exploited Vulnerabilities (KEV) catalogue? Likelihood: EPSS (Exploit Prediction Scoring System, from FIRST) estimates the probability of exploitation in the next 30 days. Asset value: does the host hold sensitive data or control other systems? Compensating controls: is there MFA, a WAF or segmentation in front of it?

CVSS also has environmental metrics, which let you adjust a score for a specific network. In the report, state both the base score and your reasoning, so the client understands why a 7.5 might come before a 9.8.

  • Internet-facing beats internal at equal severity
  • In CISA KEV: attackers are using it now
  • EPSS: probability of exploitation in 30 days
  • Asset value and compensating controls
  • Explain your ranking in the report

Learn it in 4 short steps

About 1h each. Track them with a timer in your plan.

  1. 1
    Look up CVEs for a version~1h
  2. 2
    Read CVSS vectors~1h
  3. 3
    Confirm relevance in the lab~1h
  4. 4
    Prioritise by real risk~1h

Key points

  • Map enumerated versions to known CVEs.
  • CVSS gives a severity baseline.
  • Confirm relevance instead of assuming it.
  • Prioritise by realistic risk, not raw score.

Key terms

Tap a card to flip it. 0/4 known

Examples

Map vsftpd 2.3.4 on Metasploitable 2

Step 1: -sV reported vsftpd 2.3.4 on port 21 of your lab VM. Step 2: searchsploit shows public entries for that exact version. Step 3: the NVD entry for CVE-2011-2523 explains that the vsftpd 2.3.4 download was replaced for a few days in 2011 with a copy containing a backdoor; it is rated critical. Step 4: relevance in the lab: the banner matches and Metasploitable is built to include it, so you record it as likely and plan a controlled confirmation for the exploitation phase. Step 5: the fix is to remove the package and install a clean, current build from a trusted source, or replace FTP with SFTP.

bash
searchsploit vsftpd 2.3.4
searchsploit --nmap scans/svc.xml      # check every -sV result at once

# Read the official record and its CVSS data
curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2011-2523' \
  | jq '.vulnerabilities[0].cve.metrics'

A version match that is not a finding

Step 1: -sV on a lab Ubuntu 22.04 VM shows OpenSSH_8.9p1 Ubuntu-3ubuntu0.10. Step 2: 8.9p1 is inside the range for CVE-2024-6387. Step 3: the Ubuntu CVE tracker lists the fixed package for 22.04 as 1:8.9p1-3ubuntu0.10. Step 4: on the lab host, dpkg confirms that version is installed. Step 5: result: not vulnerable; record it as a checked false positive. Writing down the check saves the client from a needless emergency patch and shows your work.

bash
# on the lab host
dpkg -l openssh-server | awk '/^ii/{print $2, $3}'
# openssh-server 1:8.9p1-3ubuntu0.10
# Compare with the 'fixed' version on the Ubuntu CVE page for CVE-2024-6387

Quick reference

  • CVSS v3.1 bands: Low 0.1-3.9, Medium 4.0-6.9, High 7.0-8.9, Critical 9.0-10.0
  • AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H scores 9.8 (Critical)
  • searchsploit PRODUCT VERSION searches a local Exploit-DB copy
  • searchsploit --nmap scan.xml checks every detected service version
  • Distro trackers tell you if a backported package already fixed a CVE
  • CISA KEV = known exploited; EPSS = chance of exploitation in 30 days
  • Label each item: confirmed, potential or false positive

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1In a CVSS v3.1 vector, what does PR:N mean?

Question 2

2A score of 7.2 falls into which CVSS v3.1 band?

Question 3

3nmap shows an affected version, but the distro tracker lists your installed package as fixed. What is it?

Question 4

4What does it mean if a CVE is in CISA's KEV catalogue?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Look up CVE-2021-41773 on NVD and write down the affected version, the CVSS base score and severity, and the fixed version.

  2. Exercise 2medium

    Run searchsploit against your Metasploitable 2 service scan and list the three services with the most public entries.

  3. Exercise 3hard

    Write a script that takes a list of CVE IDs and prints each one's CVSS v3.1 base score, whether it is in CISA KEV, and its EPSS score.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

What is the difference between a CVE and CVSS?
A CVE is an ID for one specific vulnerability. CVSS is a scoring system that rates how severe a vulnerability is, from 0 to 10.
Should I fix every critical CVE first?
Not blindly. Combine the score with exposure, known exploitation (CISA KEV), likelihood (EPSS) and asset value. An exploited high-severity flaw on an internet-facing system often comes first.
What is CVSS 4.0 and do I need to learn it?
CVSS 4.0 is the newer version released in 2023, with extra metrics such as Attack Requirements. Many databases still show v3.1, so learn to read both.
Is a vulnerability scanner result a confirmed finding?
No. Scanners mostly match versions and signatures, so they produce false positives. A tester checks the conditions before reporting it as confirmed.

Go deeper

ShareXLinkedInWhatsApp