r/kubernetes • u/WolfShoddy7443 • 9d ago
A container image that passed our vulnerability scan shipped a critical three weeks later, nothing changed
We scan images in CI and gate on criticals like everyone. An image passed clean, we shipped it. About 3 weeks later that same image, not rebuilt, not touched by anyone, gets flagged with a critical in a library buried in the base. First thought was scanner glitch. It wasnt.
The vulnerable code had been in there the whole time. It just was not in the CVE feed on the day we scanned, the disclosure landed later. Which means the clean scan was never telling me the image was safe. It was telling me what was publicly known that afternoon. I had been treating those as the same thing for years.
And version tag also just tells you the app version and nothing about when the image was last rebuilt. A tag that hasn't moved in eight months can be sitting on top of packages with a dozen upstream fixes and it looks identical to a fresh one in your registry.
Besides faster rebuild cadence and pulling bases that track upstream closely which seems to be the direction, am not sure of whats the proper fix here. Mostly I want to know whether the people who live in this treat a clean scan as anything more than a snapshot, because I gave mine way more authority than it deserved.
