Our Dependabot was green for nine days while our sign-in page ran a JDK with a critical remote code execution bug.
The bug is Java4Shell (CVE-2026-114938), published on 17 November. A heap out-of-bounds write in the JDK's Base64 decoder lets someone run code on a server without logging in, on x86 CPUs with AVX-512 VBMI. On 26 November I asked a simple question in a terminal: are we affected? Two of our Java services were. One of them was Keycloak, the page every customer signs in on.
I'm Simon, I run blitz.cloud, a small hosting platform from Regensburg. Nobody got in. None of our servers has the VBMI flag today, so the bug couldn't fire. Our cloud provider doesn't promise which CPU a server gets, though. One new server with a newer chip, and the bug would have been live without a single change on our side. We were lucky, and luck isn't a process.
Here is the process we built the same afternoon, and how you can build one like it.
Why our tools stayed quiet
Dependabot reads lockfiles, and the JDK isn't in a lockfile. It comes from a base image tag like eclipse-temurin:21-jre, or it ships inside a vendor image like Keycloak's. Our security agent reviews every commit, and nobody had committed anything that touched the JDK. The old version simply kept running.
Nothing we had compared the versions running in the cluster with what had just been published. That comparison is the whole fix.
The check that runs every morning at 05:45
Our security agent does it. It can read code and the cluster, file stories and check fixes. It can't push, merge or deploy. Merging and deploying stay with a person, and I'd keep that line no matter how good the models get.
1. An inventory of what really runs
The inventory comes from the cluster, because the repo only says what we meant to run:
- base images from every Dockerfile, frameworks from
pom.xmlandpackage.json - every image in our own namespaces
- the JDK, Node and Postgres versions, read inside the running pods (
java -versionbeats any tag) - k3s, kernel and containerd per node
- the CPU flags per node group, since some bugs only fire on some CPUs
2. The feeds
- NVD, every CVE changed in the last two days, through the API (
https://services.nvd.nist.gov/rest/json/cves/2.0?lastModStartDate=...&lastModEndDate=...), matched by CPE ranges. For CVEs NVD hasn't analysed yet, a keyword match on the product name. - CISA's Known Exploited Vulnerabilities list (
https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json). Anything on it is being used in attacks. - Critical Dependabot alerts for the code we ship (
gh api repos/OWNER/REPO/dependabot/alerts?state=open&severity=critical).
3. Routing by severity
- On the KEV list, CVSS 9 or more, or a takeover without login at 8 or more: escalate.
- CVSS 7 or more: a story on the board.
- Everything else: one line in the agent's notes.
The version matching is ordinary code. Models are unreliable at comparing version ranges, and code gets it right every time.
What the agent adds
The scan answers "affected: yes, no or maybe", and most of the work hides in the maybes. A floating tag like 16-alpine can't be compared with a range. A bug can sit in a module we never load. A CPU flag can keep a bug asleep.
The agent checks every maybe against evidence: the version the pod reports, the Dockerfile, the config file that shows a feature is off. Its instructions forbid "not affected" without that evidence. A CPU flag that keeps a bug dormant still counts as affected, and it goes into the story as the reason for P1 instead of P0.
For a critical finding it writes one story per CVE with the advisory and its link, every place we run the component with our version and the fixed one, whether it can fire here today and why, the fix as concrete steps (which Dockerfile, which tag, what to rebuild), and the version the pod must report once the fix is live.
Then it escalates. Within the hour the story is first in the current sprint and has an engineer on it. If the bug can fire right now on something the internet reaches, on-call gets a note about what to isolate first. I get one message with the CVE, what runs it, the priority, and who fixes it by when.
After the deploy the agent checks live that the pod reports the fixed version, and only then closes the story.
Build your own
Most of this needs no agent at all.
- Build the inventory from the cluster. A script that lists images per namespace and runs the version command in one pod of each, saved as JSON every day.
- Pull NVD with a two-day window and an API key (the limits without one are tight), plus the KEV JSON. Both are free.
- Match with code, by CPE vendor, product and version range. Keep a small table that maps your image names to CPE products, for example
keycloaktoredhat:keycloakandeclipse-temurinto the JDK products. - Store every CVE you decided on, with the reason. Otherwise you read the same advisory every morning.
- Give the maybes to a model, with read access to the repo and the cluster, the advisory URL and one rule: no verdict without a file or a version that proves it. A small, cheap model handles this well, because it's mostly reading.
- Send findings to the place where work already gets planned. For us that's the board and the sprint. A chat message nobody owns is how a fix waits nine days.
- Keep a person on merge and deploy.
Why the speed matters now
The time between a CVE going public and a working exploit keeps shrinking, and the models that help us read advisories help attackers read patches just as well. A small team can't count on someone remembering to check. The check has to run by itself every day and end in work with a name on it.
Ours went live the afternoon we found the gap, and both services now run a fixed JDK. I'd have preferred to build it before Java4Shell. The next critical CVE will find a story, a sprint slot and an engineer waiting for it.
How do you find out which versions actually run in your cluster? I'm curious whether anyone has a cleaner source than reading them from the pods.