Vulnerability Management
local graph
Chapter 8 — Vulnerability Management
Section titled “Chapter 8 — Vulnerability Management”This chapter is about vulnerability management. In order to build a strong security program and lower your company’s risk, you must patch security vulnerabilities. If you stay up with the latest threats, you will understand that it’s not easy to keep up with patching all those thousands of vulnerabilities. We’ll be discussing practical strategies to prioritize vulnerability patching.
In this chapter, we’re going to cover the following main topics:
- What are software vulnerabilities?
- Prioritizing your remediations
- Securing your code
What are software vulnerabilities?
Section titled “What are software vulnerabilities?”A software vulnerability is a flaw or weakness in a software program that can be exploited by hackers to compromise the system’s security. Software vulnerabilities can be introduced in several ways, such as the following:
- A developer not trained on the Open Worldwide Application Security Project (OWASP) Top 10
- An old vulnerability that has been patched is mistakenly reintroduced in the code
- Sometimes, hackers discover how to exploit the code after it has been published
When I was at RedSeal, I voluntarily created a Threat Response team. What we did was review the latest vulnerabilities, decide on the most severe, and write up a blog post about how our customers could use RedSeal to quickly discover, act, and patch the vulnerability. One thing you will realize once you begin taking notice of the latest vulnerabilities over a period of time is the same vulnerabilities come up again and again. Even though it seems like thousands of new vulnerabilities, there is actually a reoccurrence of the same vulnerabilities again and again.
Common Vulnerabilities and Exposures
Section titled “Common Vulnerabilities and Exposures”MITRE is a nonprofit organization that operates research and development centers, providing cybersecurity expertise and solutions to the US government. MITRE originally began tracking public software vulnerabilities in 1999 as a community effort. https://cve.mitre.org is the legacy website. It is being transitioned to https://cve.org. With the support of the U.S. Department of Homeland Security and the Cybersecurity and Infrastructure Security Agency (CISA), as well as other industry companies and leaders, MITRE continues to play a vital role in the identification and classification of public vulnerabilities.
In a nutshell, the following applies to Common Vulnerabilities and Exposures (CVEs):
- A list of information security vulnerabilities and exposures specific to a product
- Assigned a unique identifier, CVE ID
- Scored using the Common Vulnerability Scoring System (CVSS)
- Used to share data across separate tools, databases, and services within the cybersecurity community
What is the NIST definition of software vulnerabilities?
Section titled “What is the NIST definition of software vulnerabilities?”The National Institute of Standards and Technology (NIST), an agency within the U.S. Department of Commerce, provides measurement standards, including cybersecurity frameworks. In 2005, NIST started the National Vulnerability Database (NVD), found at https://nvd.nist.gov. NIST began tracking CVEs, scoring them using the CVSS, and linking to company websites that provide details on how to patch and/or mitigate the vulnerability.
NIST defines a vulnerability as “ a weakness in the computational logic (e.g., code) found in software and hardware components that, when exploited, results in a negative impact to confidentiality, integrity, or availability. Mitigation of the vulnerabilities in this context typically involves coding changes, but could also include specification changes or even specification deprecations (e.g., removal of affected protocols or functionality in their entirety).” 1
CVSS is an open industry standard for assessing the severity of computer system security vulnerabilities. CVSS provides an objective measure to help in the prioritization of response efforts. Each vulnerability is scored from 0 to 10 under the CVSS scoring system. CVSS v2.0 is the first version of scoring that has since been updated and is now CVSS v4.0. The big difference between the scoring systems is that CVSS 2.0 does not have a “ Critical ” designation. You can see the differences in Table 8.1:
CVSS v2.0 | CVSS v3.0 | CVSS 3.1 | CVSS v4.0 | ||||
Severity | Base Score | Severity | Base Score | Severity | Base Score | Severity | Base Score |
Low |
| Low |
| Low |
| Low |
|
Medium |
| Medium |
| Medium |
| Medium |
|
High |
| High |
| High |
| High |
|
Critical |
| Critical |
| Critical |
| ||
Table 8.1 ‒ CVSS scoring 2
2 “Vulnerability Metrics.” National Vulnerability Database (NVD), NIST, nvd.nist.gov/vuln-metrics/cvss. Accessed 3 Nov. 2023.
From CVSS v3.0 to 4.0, there are no changes in the base number scoring. There are a lot of different qualifications that go into the CVSS scoring. The CVSS scoring allows you to see what are the worst and, therefore, highest-rated vulnerabilities. This is one part of the vulnerability prioritization. You will logically want to patch the most critical vulnerabilities first, such as CVSS-rated 10. It’s not that simple because where the asset is located relative to the internet, and asset criticality, also plays a factor. We will be discussing this in more detail later in the chapter.
One of the big changes between CVSS v3.1 and v4.0 is taking into account threat intelligence (TI) and environmental metrics for more accurate scoring. In addition, CVSS v4.0 has incorporated more metrics to better cover the Internet of Things (IoT) and Operational Technology (OT). Previously, the scoring was defined for Information Technology. IoT is the sensors and devices such as cameras, or even your refrigerator if it has Wi-Fi. OT is more about industrial systems and manufacturing such as Supervisory Control and Data Acquisition (SCADA). In CVSS v3.1, exploit maturity was in a separate Temporal group, but now is in its own Threat Metric Group. There is a new Supplemental Metric Group that has been added. To see all that goes into the CVSS scoring v4.0, see Figure 8*.1*:

Figure 8.1 ‒ CVSS metric groups 3
Even though the CVSS base scoring as shown in Table 8.1 hasn’t changed much, the other metric groups as shown in Figure 8*.1* have changed. Since CVSS v4.0 was released on November 1, 2023, it will take a few months for products to integrate it into their scoring. I checked NVD in November 2023, and it is still using CVSS v3.1.
Common Weakness Enumeration
Section titled “Common Weakness Enumeration”If we are talking about CVEs, then we need to discuss the Common Weakness Enumeration (CWE). These are weaknesses that can lead to vulnerabilities. CWE was developed by MITRE, working with the broader cybersecurity community, to provide a standardized list of software and hardware weakness types to facilitate effective discussion, description, and management of software weaknesses. One difference between CWEs and CVEs is that CWEs are not specific to a particular product like CVEs are.
In a nutshell, the following applies to CWE:
- A category system for software weaknesses that can lead to vulnerabilities that are introduced during code development
- A common language for describing software security weaknesses in architecture, design, or code
- Used to help in the development of tools and systems that can identify, mitigate, and prevent these weaknesses
Known Exploited Vulnerabilities
Section titled “Known Exploited Vulnerabilities”The Known Exploited Vulnerabilities (KEV) Catalog is maintained by CISA, part of the U.S. Department of Homeland Security. The KEV catalog was officially launched in November 2021 as part of Binding Operational Directive (BOD) 22-01, aimed at driving urgent and prioritized remediation of vulnerabilities posing significant threats. KEVs are vulnerabilities in software and hardware that have been identified as being actively exploited by malicious actors. These vulnerabilities are typically cataloged and highlighted by cybersecurity organizations, including government agencies, to inform and prioritize patch management and security measures for organizations and individuals to protect against known threats.
CVE, CWE, and KEV
Section titled “CVE, CWE, and KEV”All those acronyms can be confusing. In summary, CWE provides a categorization of types of vulnerabilities, CVE provides specific instances of vulnerabilities, and KEV highlights which of the CVE-listed vulnerabilities are currently being exploited in the wild.
What we’re up against
Section titled “What we’re up against”There are thousands upon thousands of public vulnerabilities published every year. As you see in Figure 8*.2*, vulnerabilities keep trending up year over year. SecurityScorecard’s CVE Details site (https://cvedetails.com/) gives good information related to CVEs. Vulnerabilities for 2023 surpassed 25,000:

Figure 8.2 ‒ Total CVEs by year 4
Prioritizing your remediations
Section titled “Prioritizing your remediations”Vulnerability prioritization is the only way to properly deal with the enormous number of vulnerabilities that are published on a daily basis. Just because a CVE is rated as a 10 doesn’t necessarily mean that it is the highest priority to remediate at your company. I know this seems counter-intuitive, but there are several factors you need to take into account when prioritizing vulnerabilities:
- CISA’s KEV Catalog
- CVSS metrics:
- Attack Vector
- Attack Complexity
- Privileges Required
- Attack Vector
- CVE score
CISA’s KEV Catalog
Section titled “CISA’s KEV Catalog”CISA created a known exploited vulnerability catalog that is invaluable when deciding which vulnerabilities to patch and by when. Essentially, when it’s discovered that hackers are exploiting a specific vulnerability, CISA will add it to the catalog with a due date. As you can see in Figure 8*.3*, CISA has the CVE ID, vendor, description, action to take, and due date. The due date is critical and needs to be part of your vulnerability prioritization process. Once a vulnerability is known to be exploited, it means there most likely is a hacker script making the vulnerability easily exploitable. These exploit kits are offered for sale on the dark web:

Figure 8.3 ‒ CISA KEV Catalog
Understanding the assets your company owns, both software and hardware, is critical in prioritizing what to patch. We’ll be covering asset management in Chapter 9*, Asset Inventory*. At a basic level, you need to at least keep an inventory, even if in a spreadsheet, so that you can search for these vulnerabilities and know what to patch. Of the thousands that get released, most won’t apply to your environment. Being able to quickly review and know what does apply to your company is critical. We will be discussing the tools and products that can automate this process later in the chapter.
CVSS metric – Attack Vector
Section titled “CVSS metric – Attack Vector”One of the most important metrics to review as part of the CVSS score is the Attack Vector, AV:N. The attack vector of the CVE with an “N” is the most attackable over the network, including the internet. This is also referred to as remote code execution (RCE). Attack vector refers to how to get access to the asset in order to exploit the vulnerability. For example, if your company has a web server that is externally facing the internet and it has a vulnerability that can be exploited via the network, then you need to patch the server as soon as possible. Your asset is a ticking time bomb of when hackers will discover that your asset that has the vulnerability is accessible via the internet.
For Attack Vector, there are three indicators that I always use to decide the prioritization of the CVE. We will be using the v3.1 CVSS metrics since the v4.0 is so new that NIST is not using it yet. The metric values for v3.1 and v4.0 are the same, so even under v4.0, these same metrics will apply:

Figure 8.4 ‒ CVSS Severity and Metrics v3.x – CVE-2020-0601 5
In CVSS scoring, the attack vector is defined as follows:
- Network (N): This category of vulnerability is exploitable over the network, up to and including the internet. This is deemed the riskiest of vulnerabilities and is referred to as RCE because the attack can be launched over a network.
- Adjacent (A): This means the attack is limited to logical proximity. For example, the attack needs to be launched over Bluetooth, Wi-Fi subnet, or the same network subnet.
- Local (L): For local, there is no way to exploit the vulnerability over the network. The exploit is able to read, write, and execute processes. This exploit can be carried out if a user has physical access to the vulnerable asset and can use the keyboard, console, or even compromised SSH keys or credentials.
- Physical (P): The only way to conduct a physical attack is to gain physical access to the asset. Once an attacker is able to physically gain access to the data center or to a laptop in a hotel room, they can then execute multiple attacks to gain access to a device’s data. If someone has physical access to a device, it is 100% hackable. If a vulnerability can only be exploited with physical access, then it is considered a lower risk. This is why you have data centers with multiple physical defenses, such as locked doors, badge access, security cameras, and security guards.
Essentially, if the Attack Vector is Network, then you need to prioritize this vulnerability to be patched within 30 days unless CISA has a sooner due date, but we will look at a few more metrics before we make our final designation. We’ll use this table to decide on the prioritization:
| Metric | ID |
|---|