Quick revision
The short answer
We start from data, not from asking teams: query the SBOMs or dependency scanning results of all 40 services for the vulnerable versions, including transitive ones, then check which services actually reach the vulnerable code to set priorities. We fix the version once, in the company BOM or through automated pull requests from a tool like Renovate or Dependabot, roll out in priority order while tracking every service to done, and review afterwards why some took longer.
What to remember
In this answer, we saw how to handle a critical CVE across 40 services. We found affected services from SBOMs and scans of what is deployed, including transitive dependencies, ranked them by whether the vulnerable code is reachable and exposed, fixed the version once in the company BOM or through automated pull requests, rolled out in priority order with a shared tracker, confirmed completion by querying again, and reviewed the slow cases so the next response is faster.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
We start from data, not from asking teams: query the SBOMs or dependency scanning results of all 40 services for the vulnerable versions, including transitive ones, then check which services actually reach the vulnerable code to set priorities. We fix the version once, in the company BOM or through automated pull requests from a tool like Renovate or Dependabot, roll out in priority order while tracking every service to done, and review afterwards why some took longer.
Why this question is asked
When a widely used library has a critical vulnerability, the clock starts the moment the advisory is public, because attackers read the same advisories. The difference between a group that patches in two days and one that patches in three weeks is rarely skill; it is whether the inventory, the update mechanism and the pipeline were ready before the announcement. Interviewers ask this to see whether we can run a calm, systematic response across many teams. In this answer, we will walk through a realistic example, finding affected services, deciding what matters most, patching centrally, tracking the rollout, and learning from it.
1A Quick Recap: CVEs, SBOMs and Transitive Dependencies
A CVE is a public identifier for a known vulnerability, such as CVE-2021-44228, the Log4Shell bug in log4j-core. The advisory usually names the affected versions, for example everything before a certain patch release, and a severity score.
The hard part is that most services do not depend on the vulnerable library directly. They depend on a starter, which depends on another library, which pulls in the vulnerable one. That is a transitive dependency, and a search of pom.xml files for the library's name misses it entirely.
An SBOM, a software bill of materials, solves this. It is a machine-readable list of every component in a build, direct and transitive, with exact versions, usually in the CycloneDX or SPDX format. If every build produces one and stores it in a central tool such as Dependency-Track, the question 'which services contain log4j-core below 2.17.1' becomes a query that takes seconds.
2Hour One: Finding the Affected Services
Suppose the advisory comes out at 09:00. By 09:30 we want a list. We query the SBOM store, or our scanner's dashboard, for the vulnerable package and version range across the 40 services, and we also check container images, because a vulnerable library can arrive through the base image rather than the application.
We must query what is deployed, not what is on the main branch. A service whose main branch is clean may still run a build from two months ago in production. That is why SBOMs should be stored per build and linked to the deployed version.
In our example, the query returns 14 services. If some services have no SBOM, those are unknowns, and we treat them as affected until someone proves otherwise, running mvn dependency:tree on their deployed tag.
- Advisory publishednote package, versions, severity
- Query SBOMs and image scansdeployed versions, including transitive
- Vulnerable code reachable?Yespriority 1: patch todayNopriority 2: patch this week
- Bump the version oncecompany BOM or automated PRs
- Build, test, deploy in orderinternet-facing first
- Track every service to donere-query SBOMs to confirm
- Review afterwardswhy were some slow?
7 steps in order. Play them, or step through them one at a time.
3Deciding What Matters First
Fourteen services cannot all go first, so we prioritise by real risk. The question is whether the vulnerable code path is reachable. For Log4Shell, the bug lived in log4j-core's message lookup. Spring Boot uses Logback by default, so a service that only had log4j-api, or the log4j-to-slf4j bridge, was not affected at all, while a service that had switched to the Log4j 2 starter and logged user input was in serious danger.
So for each affected service we ask three questions: does it use the vulnerable feature, is it exposed to the internet or to untrusted input, and is there a configuration mitigation we can apply within minutes while the patch is built. The answers sort the list into tiers. A reachable, internet-facing service is patched today; an internal batch job that includes the library but never calls the vulnerable class can follow within the week. We still patch everything, because 'not reachable' is a judgement that can be wrong.
4Patching Centrally Instead of 40 Times
If our services inherit a company BOM, the fix is one change: we bump the managed version in the BOM, release it, and every service picks it up on its next build. If they do not, an update bot does the repetitive part. Renovate or Dependabot can open a pull request in every repository that contains the vulnerable version, and CI runs each service's tests on it.
Notice the failed check. That is the typical tail of every CVE response: a service on an old framework line, with no tests, or with a version pinned somewhere unusual. We do not let it block the others; we assign someone to it directly.
5Rolling Out and Tracking to Done
We deploy in priority order and keep a single tracker that everyone can see, one row per service with owner, status and deployed version. 'Merged' is not 'done'. A service is done only when the SBOM of the build running in production no longer contains the vulnerable version, so we re-run the same query that started the response and close the incident when it returns zero rows.
We also communicate on a schedule, for example a short update in the incident channel every two hours, saying how many services are patched and which are blocked. That stops 40 people asking the same question.
| Service | Reachable / exposed | Priority | Status |
|---|---|---|---|
| payments-api | yes / internet | 1 | deployed 11:40 |
| orders-service | yes / internet | 1 | deployed 12:10 |
| billing-service | yes / internal | 1 | blocked: Boot 2.3, pairing |
| report-batch | no / internal | 2 | PR merged, deploy tomorrow |
| search-indexer | unknown (no SBOM) | 1 | checking deployed tag |
6Reviewing Why Some Services Took Longer
When the last service is patched, we hold a short review. The interesting data is the spread: if 35 services were patched in a day and five took two weeks, those five tell us where our risk lives. Common causes are services without an SBOM, old framework versions that cannot take the new library, missing tests so nobody dared to merge, and repositories with no clear owner.
Each cause becomes an action: add SBOM generation to the last builds, schedule the framework upgrade, add a minimum test suite, assign an owner. The goal is that the next CVE response is faster, because there will be a next one.
7Follow-up questions
What if we have no SBOMs today?
Then we run the scanner we have, such as OWASP Dependency-Check, or Trivy or Grype on the container images, across all repositories and images, and fall back to mvn dependency:tree on deployed tags. It is slower and less reliable, which is the argument for generating SBOMs on every build after the incident.
Should we wait for the library's official patch?
We apply any documented mitigation immediately, such as a configuration flag or blocking a request pattern at the edge, and patch as soon as the fixed version exists. Mitigations reduce risk while we wait; they are not a substitute for upgrading.
How do we stop the vulnerable version coming back?
Add a build rule, for example a Maven Enforcer bannedDependencies rule for the vulnerable range, and keep the scanner in CI failing on critical findings. Otherwise a stale branch or a new dependency can quietly reintroduce the old version.
8Conclusion
In this answer, we saw how to handle a critical CVE across 40 services. We found affected services from SBOMs and scans of what is deployed, including transitive dependencies, ranked them by whether the vulnerable code is reachable and exposed, fixed the version once in the company BOM or through automated pull requests, rolled out in priority order with a shared tracker, confirmed completion by querying again, and reviewed the slow cases so the next response is faster.
Open with
First I'd find out exactly who is affected using data, not a survey. Ideally every build produces a CycloneDX SBOM stored centrally, so I can query which deployed services contain the vulnerable version, including transitive dependencies and container base images.
Then, if they want more
Anything without an SBOM I treat as affected until a dependency tree of the deployed tag says otherwise. Then I prioritise by real risk: is the vulnerable code path reachable, is the service internet-facing, and is there a quick mitigation.
With Log4Shell, for example, a Boot service on the default Logback was not exposed, while one using log4j-core and logging user input was urgent. For the fix, I change the version once, in the company BOM if services inherit it, or let Renovate or Dependabot open a pull request in every affected repository so CI tests each one.
We deploy in priority order and keep one shared tracker, with regular updates in the incident channel, and a service only counts as done when its production SBOM no longer shows the bad version. Afterwards I'd review why the slowest services were slow, usually missing SBOMs, old frameworks or no tests, and turn each cause into an action.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Spring Boot 2.3
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "A critical CVE is announced in a widely used Java library. Your group owns 40 services....": https://scrivio-interview-library.netlify.app/architecture/platform-and-governance/4a79a5f949/