A critical CVE is announced in a library you use. You have 200 images across 40 repos. How do you find and patch everything fast?

IntermediateScenarioSecurity incidents
Answer

Situation read → The first question is "where are we exposed?" and you need an answer in minutes, not a week of grepping.

What I'd do →

  1. Query SBOMs if you generate them (Syft in CI, stored with each image), or scan running images:
grype sbom:./sboms/checkout-1.8.0.json | grep CVE-2026-
trivy image --severity CRITICAL 111122223333.dkr.ecr.ap-south-1.amazonaws.com/checkout:1.8.0
  1. List what's actually running, not just what's in the registry: kubectl get pods -A -o jsonpath for images, then map to SBOMs.
  2. Prioritise: internet-facing and exploitable first.
  3. Patch: Dependabot or Renovate PRs across repos; rebuild images on a patched base; deploy through the normal pipeline but fast-tracked.
  4. Mitigate where you can't patch yet: WAF rule, disable the vulnerable feature, or a config flag.
  5. Track until zero: a dashboard of affected images still running.

Why → SBOMs turn "are we affected?" from days into a query.

Interview tip → Distinguish "in the registry" from "running in production"; only the second is actual exposure.

All Real-World Interview questions Roadmap: Interview readiness

More on Security incidents