Vulnerability Scanning and the CVE Remediation Lifecycle

Vulnerability scanning is the first step in a "discover, assess, remediate, verify" loop. A single scan is meaningless; what really determines your security posture is whether you can turn results into prioritized fixes and respond quickly when new CVEs are disclosed. For tool selection see Vulnerability Scanner Comparison; this article focuses on the process itself.

Positioning common scanning tools

Tool Type Typical use
Nessus / Nessus Professional Commercial, comprehensive Host, configuration, and compliance scanning
OpenVAS Open-source, comprehensive Alternative when the budget is limited
Trivy Open-source image scanner Container image and dependency vulnerabilities (combine with Container Security Best Practices)
Native cloud scanning Platform built-in One-click scanning for instances, images, and serverless

CVE prioritization: not all vulnerabilities are equally urgent

Sorting by CVSS score is only a starting point. In practice, add three dimensions:

  • Exploitability: whether a public POC or exploit code already exists.
  • Attack surface: whether the service is exposed publicly and whether mitigations (WAF, network isolation) exist.
  • Exploited in the wild: prioritize entries in the CISA Known Exploited Vulnerabilities (KEV) catalog, which sets binding remediation deadlines.

Operate in tiers: "below medium -> next maintenance window, high -> this week, KEV/actively exploited -> immediately".

Building a sustainable remediation workflow

  1. Discover: set a scanning cadence (hosts/containers weekly, dependencies and images on every build) and integrate with CI/CD.
  2. Assess: generate priorities from CVSS + exploitability + KEV.
  3. Remediate: patch, fix configuration, or apply temporary mitigations (upgrade, close ports, enable WAF rules).
  4. Verify: rescan after the fix to confirm the vulnerability is gone.
  5. Review: record root causes and connect with the Incident Response workflow.

Closing the loop with baselines and backups

Scanning only finds known issues. Configuration-type risks are covered by the CIS Baseline, and data safety before remediation depends on the Backup Strategy. Together these form complete vulnerability governance.

Making scanning actually run: commands and CI integration

A process is only as good as the tooling it runs on. Here are a few of the most common starting commands to establish a re-scan-able baseline quickly:

# Trivy scanning of a container image (works locally and in CI)
trivy image --severity HIGH,CRITICAL your-image:latest

# Scan dependency lockfiles without pulling an image; great for pre-commit
trivy fs --scanners vuln --severity HIGH,CRITICAL .

# Create a scheduled scan task over GMP with gvm-cli (OpenVAS example)
gvm-cli --gmp-username admin --gmp-password '***' socket --xml \
  '<create_task><name>weekly-host-scan</name></create_task>'

The key is to wire these into CI/CD: scan images right after each build, scan dependency lockfiles on every change, and set thresholds (block the pipeline on a CRITICAL) so scanning becomes part of the build rather than a monthly ritual. In CI, have Trivy emit SARIF or JUnit so results land directly in GitLab/GitHub's vulnerability dashboards and every developer sees which risks their commit introduced.

A real case: the 72 hours of a Log4Shell-style response

Take CVE-2021-44228 (Log4Shell) as an example: public exploit code appeared the day the vulnerability was disclosed, while official patches usually lag by several days. Without routine scanning and an asset inventory, teams are left doing manual company-wide triage. A team with a baseline process moves roughly like this:

  • Hours 0-4: confirm the asset scope — which services run affected log4j versions, and check the KEV catalog first to gauge severity.
  • Hours 4-24: apply temporary mitigations to publicly exposed services that cannot be patched immediately (WAF rules, disabling JNDI lookup).
  • Hours 24-72: roll out patches or upgrades in batches, rescan after each batch to verify, then promote to production.
  • After 72 hours: review root cause and add "which component, which version, running where" to the asset database.

This timeline makes one thing clear: incident response is not about luck, but about whether you already have an asset inventory and ready-made scanning and verification channels. Those are what matter most during the window.

Example vulnerability response SLA

Quantifying your response cadence beats vague promises to "fix it soon." Here is a reference tiering:

Severity Criteria Target response Target fix
Critical KEV/actively exploited 2 hours 24-48 hours
High High severity + public exposure 1 business day 3-5 business days
Medium Medium severity or has mitigations 3 business days Next maintenance window
Low Low severity / layered internal coverage Log it Scheduled window

These numbers are a starting point, not a mandate — tune them to your team size and risk tolerance, but publish them somewhere the whole team can see.

Common mistakes

  • Looking only at CVSS: a high score does not equal high exploit risk; ignoring exploitability and attack surface wastes remediation effort.
  • Scan but never fix: a backlog of reports leaves high-severity vulnerabilities exposed for months.
  • Fix only what you know: scanning misses design flaws and logic bugs — combine it with penetration testing.
  • Ignoring the supply chain: vulnerabilities in images and dependencies are just as dangerous; embed build-time scanning into CI/CD.

Integrating with the release process

Write vulnerability gates into your deployment flow: nothing above high severity ships unfixed, and image scans must pass before anything reaches production. Only when scanning, remediation, and verification form a closed loop does your security posture keep improving iteration after iteration.

References: CISA Known Exploited Vulnerabilities Catalog https://www.cisa.gov/known-exploited-vulnerabilities-catalog · NVD https://nvd.nist.gov/ · CVE List https://cve.org/

16IDC Observation

For small and mid-sized sites, start with free tools and focus on KEV and the public attack surface, rather than drowning in a hundreds-of-pages report nobody acts on. Assigning an owner and a deadline to each vulnerability matters more than piling up tools. Browse more content back in the Security Hardening category.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog