Interview Prep/DevOps Fundamentals/Security basics for DevOps

What is a CVE, and how do you handle vulnerabilities found by scanners?

BeginnerConceptSecurity basics for DevOps
Answer

In one line: A CVE (Common Vulnerabilities and Exposures) is a unique ID for a publicly known security flaw, like CVE-2021-44228 (Log4Shell); you handle scanner findings by prioritising them by real risk, fixing or upgrading, and tracking any accepted exceptions.

Key terms:

  • CVE ID — the identifier for a specific vulnerability.
  • CVSS score — severity from 0 to 10 (Low, Medium, High, Critical).
  • EPSS — the estimated probability that a vulnerability will be exploited soon.
  • CISA KEV — a list of vulnerabilities known to be actively exploited.

A practical process for scanner findings:

  1. Scan everywhere — dependencies, container images, IaC — in PRs and on a schedule (new CVEs appear for code that hasn't changed).
  2. Prioritise by real risk, not just the score:
    • Critical/high severity?
    • Is a fix available?
    • Is it actually reachable/exploitable in your app (is the vulnerable function used, is the service exposed to the internet)?
    • Is it in the KEV list or has a high EPSS?
  3. Fix:
    • Upgrade the library or base image (Dependabot/Renovate PRs make this easy).
    • Rebuild images regularly to pick up OS patches.
    • Use minimal base images (distroless, Alpine, Chainguard) — fewer packages, fewer CVEs.
  4. Gate sensibly — block builds on critical/high vulnerabilities with a fix available; report the rest.
  5. Accept or suppress with care — false positives or non-exploitable issues get a documented exception (.trivyignore with a reason, owner and expiry date).
  6. Agree SLAs for fixing — for example critical in 7 days, high in 30 days.
  7. Track and report — dashboards showing open vulnerabilities by service and age.

Example:

trivy image --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 orders:1.4.2

Fails the build only for high/critical issues that have a fix.

Tip for interviews: say you prioritise by exploitability and fix availability, not just CVSS — it shows mature security thinking.

All DevOps Fundamentals questions

More on Security basics for DevOps