Quick revision
The short answer
In the first 48 hours we find every affected service quickly from the software bill of materials or dependency scans, rank them by exposure with internet-facing services that deserialize untrusted input first, and apply the fastest effective mitigation for each, whether an upgrade, a deserialization filter, a disabled feature or a temporary WAF rule, tracking completion service by service. We keep leadership and teams informed on a fixed rhythm, and once the fire is out we review why the vulnerable code was reachable and how to make inventory and patching faster next time.
What to remember
In this answer, we walked through a 48-hour response to a deserialization vulnerability. We find affected services from SBOMs and dependency scans, including transitive and shaded copies in what is actually deployed, rank them by exposure with internet-facing services that deserialize untrusted input first, and choose for each the fastest effective mitigation, from upgrades to filters, disabled features and WAF rules, tracking every service until it is verified. We communicate on a fixed rhythm and, afterwards, review why the code was reachable and how to make inventory and patching 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.
In the first 48 hours we find every affected service quickly from the software bill of materials or dependency scans, rank them by exposure with internet-facing services that deserialize untrusted input first, and apply the fastest effective mitigation for each, whether an upgrade, a deserialization filter, a disabled feature or a temporary WAF rule, tracking completion service by service. We keep leadership and teams informed on a fixed rhythm, and once the fire is out we review why the vulnerable code was reachable and how to make inventory and patching faster next time.
Why this question is asked
A widely used library announcing a deserialization flaw is one of the most stressful days for a platform owner. Exploits for these bugs often appear within days, and the affected library may be pulled into dozens of services through transitive dependencies that no team remembers adding. Interviewers ask this scenario to see whether we can turn panic into an ordered response: know what we have, decide what matters most, act, communicate and learn. In this answer, we will walk through the first hours of finding affected services, how to rank them, the mitigation options and what each costs, how to track and communicate progress, and the review afterwards.
1Hour 0 to 4: Find Every Affected Service
The first question leadership will ask is "are we affected, and where?". The answer has to come from data, not from asking teams in a chat channel. A software bill of materials (SBOM), a machine-readable list of every library and version in a build, produced at build time in a format such as CycloneDX or SPDX, lets us search the whole estate in minutes. A dependency scanner that already watches our repositories gives the same answer from a different angle.
Notice that we search for the library in all forms: as a direct dependency, as a transitive dependency of another library, shaded inside a fat jar under a different package name, and in container base images. We also check what is actually deployed, not only what is on the main branch, because a service last released eight months ago runs the old version even if its main branch was updated.
The tool name above is illustrative; the point is that the query runs against an inventory we built before the incident. If we do not have one, the first hours go to producing a rough version with build tool commands such as mvn dependency:tree across repositories, which is slower and less complete.
2Rank by Exposure, Not by Alphabet
Thirty-four services cannot all be patched in the first hour, so we rank them. The deciding factor is whether an attacker can reach the vulnerable code path. A service that is internet-facing and deserializes data from requests with the affected library is first. A service that has the library on its classpath but only uses an unrelated feature, or that only reads data produced by our own trusted systems, is lower.
We ask each owning team two quick questions: does untrusted input reach this library, and is the vulnerable feature enabled? Where the answer is unknown, we treat it as yes. The result is a short list for the first day and a longer one for the following days.
| Tier | Description | Target |
|---|---|---|
| 1 | Internet-facing, untrusted input reaches the library | Mitigated within 24 hours |
| 2 | Internal, input from partners or other teams | Within 48 hours |
| 3 | Library present, vulnerable feature not used | Normal patch within a week |
| 4 | Build-time or test-only dependency | Next regular release |
3Choosing a Mitigation for Each Service
The best mitigation is an upgrade to the fixed version, but it is not always the fastest. A fixed version may be a major release with breaking changes, or the library may come through a vendor SDK we cannot rebuild today. So we keep several tools at hand and choose per service.
For Java deserialization flaws, a JVM-wide ObjectInputFilter set with the jdk.serialFilter system property can reject the gadget classes or, better, allow only expected packages, and it needs only a restart. Many libraries also have a configuration flag to disable the risky feature, such as polymorphic typing in a JSON library. A web application firewall rule that blocks requests with the known payload pattern, for example a serialized Java stream beginning with the bytes AC ED, buys time for internet-facing services but can be bypassed, so it never replaces the real fix. For the most exposed service with no other option, we may even switch off the affected endpoint for a few hours.
Every mitigation is recorded per service with who did it and when, because a temporary filter or WAF rule that nobody removes, or a service that only got the WAF rule and never the upgrade, is how the same incident returns months later.
4Tracking and Communicating
We run the response like any incident: one incident lead, one tracker with a row per service showing tier, owner, mitigation applied, upgrade status and verification. Verification matters, so a row is only closed when the deployed artifact or SBOM shows the fixed version, not when a team says it merged a pull request.
Communication follows a fixed rhythm, for example an update to leadership every four hours on the first day and twice daily after that. Each update states facts in the same shape: how many services are affected, how many are mitigated per tier, any sign of exploitation in logs, and the expected time to finish. Teams get clear asks with deadlines rather than broad alarm. If customers or regulators may be affected, legal and customer teams are told early, because their deadlines are separate from ours.
- Advisory publishedincident lead named, tracker opened
- Query SBOMs and scannersdeployed versions, transitive and shaded
- Rank services by exposuretier 1: internet-facing, untrusted input
- Upgrade possible today?YesUpgrade, deploy, verifyNoFilter, disable feature or WAF rule
- Check logs for exploitationpayload patterns, unusual processes
- Update leadership and teamsevery 4 hours on day one
- All tiers closedthen schedule the review
7 steps in order. Play them, or step through them one at a time.
5After the Fire: Review and Improve
Once everything is patched, we hold a blameless review. The useful questions are about the system. Why was this library reachable from untrusted input at all? Did we need native deserialization or polymorphic typing in the first place? How long did it take to get a complete list of affected services, and which services were missing from the inventory? How long did patching take from advisory to the last deploy, and what slowed down the slowest teams?
The actions usually fall into three groups: better inventory (SBOMs for every build and deployed image), faster patching (automated dependency update pull requests and a platform BOM that teams can bump in one place), and less exposure (removing native serialization or locking it down with allowlist filters). We set a measurable goal, such as having the full affected list within one hour and tier 1 patched within 24 hours next time.
6Follow-up questions
What if we find signs that the vulnerability was already exploited?
Then it becomes a security breach response, not only patching. We isolate the affected hosts, preserve logs and images for investigation, rotate credentials that those services could reach, and bring in the security incident team and legal. Patching continues in parallel, but finding out what the attacker did becomes the priority.
How do we handle a vendor product that bundles the library and has no fix yet?
We ask the vendor for a timeline and an official workaround, apply compensating controls such as network restrictions, filters or WAF rules, and record the risk with an owner and a review date. If the exposure is high, we may restrict access to the product until the fix arrives.
Why not simply tell every team to upgrade immediately?
Because 34 teams upgrading at once with no ranking means the most exposed service may be patched last, and broken releases may follow. Ranking puts limited time where the risk is highest, and tracking makes sure nothing is forgotten.
7Conclusion
In this answer, we walked through a 48-hour response to a deserialization vulnerability. We find affected services from SBOMs and dependency scans, including transitive and shaded copies in what is actually deployed, rank them by exposure with internet-facing services that deserialize untrusted input first, and choose for each the fastest effective mitigation, from upgrades to filters, disabled features and WAF rules, tracking every service until it is verified. We communicate on a fixed rhythm and, afterwards, review why the code was reachable and how to make inventory and patching faster.
Open with
In the first hours I want facts, so I name an incident lead and query our software bill of materials and dependency scanner for the library, including transitive and shaded copies, and against what is actually deployed rather than the main branch.
Then, if they want more
That gives me a list, say 34 services. Then I rank them by exposure. Internet-facing services where untrusted input reaches the library are tier 1 and must be mitigated within 24 hours; internal services follow; services that only have the library on the classpath without the vulnerable feature get a normal patch.
For each service I pick the fastest effective mitigation. An upgrade is best, and I can force the fixed version through dependency management. If that is not possible today, a JVM-wide serial filter with an allowlist, disabling the risky feature, or a temporary WAF rule buys time.
I track every service in one tracker with owner, mitigation and verification, and a row closes only when the deployed artifact shows the fixed version. I update leadership every four hours on the first day in the same format: affected, mitigated per tier, any sign of exploitation, expected finish.
If we see exploitation, it becomes a breach response with isolation and credential rotation. Afterwards, I run a blameless review: why was this code reachable from untrusted input, how long did inventory and patching take, and what do we change so the next one is faster.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- OWASP Top Ten
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 new deserialization vulnerability is announced in a library used by many of your...": https://scrivio-interview-library.netlify.app/spring-boot/web-security-threats/393f67acef/