A scanner reports 4,000 open CVEs across 300 images. The team can fix maybe 100 a month. How do you prioritise?
IntermediateScenarioVulnerability Management and OWASP
Answer
Situation read → CVSS alone will make everything look urgent. We need to rank by real risk.
What I'd do →
- Drop CVEs in images that are not running anywhere (join scan data with what is deployed).
- Put anything in the CISA KEV catalogue at the top, then sort by EPSS score.
- Weight by exposure: internet-facing and data-holding services first.
- Use reachability (Snyk, Endor Labs, govulncheck for Go) or VEX to mark packages that are present but never loaded.
- Group by fix: one base image bump often closes hundreds of CVEs at once.
trivy image --severity CRITICAL,HIGH --ignore-unfixed --format json app:1.4 \ | jq '[.Results[].Vulnerabilities[]?.PkgName] | group_by(.) | map({pkg: .[0], n: length}) | sort_by(-.n)'
Why → KEV plus EPSS plus exposure is a defensible ranking; base image rebuilds give the biggest win per hour.
Interview tip → Say "fix by package, not by CVE".
More on Vulnerability Management and OWASP
A pentest report shows SQL injection in a search endpoint of a Java service. How do you handle it end to end?BeginnerA user reports they can see another customer's invoice by changing the ID in the URL. What do you do?BeginnerA webhook feature lets users enter a URL, and a pentester used it to read the cloud metadata endpoint. How do you fix it?AdvancedA team still runs Log4j 2.14 in an internal service and says it is not internet-facing. How do you respond?IntermediateA security review finds passwords stored as unsalted MD5 hashes. How do you migrate without forcing every user to reset?AdvancedYour DAST scan in staging finds reflected XSS in a React app. The developers say React escapes everything. Who is right?Intermediate