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:
- Scan everywhere — dependencies, container images, IaC — in PRs and on a schedule (new CVEs appear for code that hasn't changed).
- 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?
- 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.
- Gate sensibly — block builds on critical/high vulnerabilities with a fix available; report the rest.
- Accept or suppress with care — false positives or non-exploitable issues get a documented exception (
.trivyignorewith a reason, owner and expiry date). - Agree SLAs for fixing — for example critical in 7 days, high in 30 days.
- 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.
More on Security basics for DevOps
What is the principle of least privilege?BeginnerWhat is SAST, DAST and SCA?BeginnerWhat is container image scanning, and where should it happen?BeginnerWhat is software supply chain security (SBOM, image signing, SLSA)?IntermediateWhat is secrets management, and why shouldn't secrets be in code?BeginnerWhat is encryption in transit and encryption at rest?Beginner