• prioritisation
  • base images
  • announcements

Most of your container vulnerabilities are not yours to fix

A container scan mixes three kinds of finding: your dependencies, the base image and images others build. How to split them without hiding an exploited CVE.

StackRadar Team

7 min read

Point any scanner at a Kubernetes cluster for the first time and the result is a number with four digits. Nobody reads four-digit lists. The team skims the criticals, finds that the first twenty are in libssl, glibc and a Grafana image they did not build, and quietly stops opening the report. The scanner was right about every finding and still failed at its job.

The count is not the problem. The problem is that one list mixes three kinds of finding: dependencies your build added, packages that came with your base image, and images someone else builds. Each is fixed by a different person in a different way, and usually only the first is a pull request your team can open today. StackRadar now separates them with two filters. This post explains the split and the rules that stop it from hiding something that matters.

One list, three different fixes

Take any finding in a running cluster and ask two questions.

Who builds the image? If your organisation builds it, you control the Dockerfile and the dependency manifest. If it is Prometheus, cert-manager or an ingress controller that a public Helm chart installed, you control neither.

Where in the image is the package? A dependency your build added (an npm or PyPI package, a Go module, a Maven artifact) is fixed by bumping it. An operating-system package, or the copy of npm, pip or the JDK that ships inside the language image, came with the base image. No change to your dependencies will touch it.

The answers give three groups, and each has one kind of fix:

ImageFindingHow it gets fixedWho can do it
OrganizationApplicationBump the dependency, rebuildYour team, today
OrganizationBase imageRebuild on a newer base imageYour team, in one rebuild
Third-partyEitherUpgrade the chart or the image tagUpstream first, then you

Sorted by severity in one list, the second and third groups bury the first, and the first is the only one where the work is a dependency bump somebody on your team can ship this afternoon.

The two filters

The dashboard and the organisation-wide lists of vulnerabilities, packages and containers carry a filter bar under the page title with two menus:

  • Images: All images, Organization images or Third-party images.
  • Findings: All findings, Application findings or Base image findings.

Both open on All. The bar scopes everything on the page: the severity cards, the trend charts and every list. Set it to Organization images and Application findings, and what is left is the part of the problem a dependency bump fixes. On a single image's page, the findings table has the same Application, Base image and All split, with a count on each, and opens on the view your organisation chose as its default.

An illustration, with invented numbers rather than a measurement from a real cluster:

FILTER SETTINGFINDINGS SHOWNAll imagesAll findings1,840Organization imagesAll findings410Organization imagesApplication findings37
Illustrative counts: one scan under three filter settings.

Thirty-seven is a list a team reads to the end. The other findings have not gone anywhere, and the next two sections cover what happens to them.

Base image findings: one rebuild, not a ticket per CVE

Two hundred findings in node:20-bookworm-slim are not two hundred pieces of work. They are one: rebuild on a newer base image. Often that needs no Dockerfile change at all. A tag like that is rebuilt upstream for months, so an image built on last spring's copy clears findings simply by being built again today. For images you build, StackRadar scans the candidate bases and tells you what a rebuild would remove.

With scanner 0.4.0 or later, the split follows the image's layers, not only the kind of package. An apt-get install in your own Dockerfile adds an operating-system package, but it still counts as yours, because the layer that added it is yours.

LAYERS YOUR DOCKERFILE ADDSFINDINGS BUCKETCOPY . /appRUN npm ciRUN apt-get install -y curlBASE IMAGE · node:20-slimnode + bundled npm, yarn, corepackDebian packages — libssl, glibc, …first seen hereApplicationfix: bump the dependencyfirst seen hereBase imagefix: rebuild on a newer base

How the boundary between base image and application is found, and how to make it exact with two OCI annotations, is in the Application vs base image docs page. The patching workflow around it is in how to patch a CVE in Kubernetes.

Third-party images: one action per image

For an image you do not build, splitting application from base image changes nothing, because you can change neither. There is one action per image: upgrade the chart, override the image tag, or wait for upstream. StackRadar groups these into Upgrade upstream, where a newer release removes findings, and Waiting on upstream, where none does yet. The second group is the most useful thing a report can say about those findings: nothing to do this week, and here is why.

StackRadar works out which images are yours from signals you can read: a public chart that deploys the image, Docker Official Image annotations, a vendor namespace on a public registry, or a private registry. It asks you once about the ones it could not place, and your answer always beats the detection.

What keeps a filter honest

A filter that cuts noise can hide risk just as easily. Runtime and reachability filters in some commercial tools cut harder than this one, but they ask you to trust a signal you usually cannot inspect. This split follows rules you can read instead:

  • Exploited findings ignore the Findings filter. A base image finding in the CISA KEV catalogue, or with an EPSS score of 0.1 or more, is listed under Application findings too, labelled "Base image · exploited". An exploited flaw in glibc is not something to discover by changing a menu. The Images filter has no such exception: Organization images leaves out third-party images, exploited findings included.
  • Unplaced images count as yours. An image StackRadar could not place is listed under Organization images until you confirm it. Wrongly treating an image as yours costs a look; wrongly hiding one you build costs a missed fix.
  • The score counts everything. The Risk Score includes every finding in every image. The filters change what you are looking at, never what is counted against you.
  • Nothing is suppressed for you. Suppression is a manual decision with an owner, a reason and an expiry. No filter makes one.
  • The rules are written down. Which package kinds belong to the base image, and the five ways the base boundary is found, are in the docs. When the split is wrong for your images, you override it with a rule of your own, and the change is recorded.
The filters are views. Switch both back to All and you are looking at the same list every other scanner gives you.

How other tools handle it

The base image half of this is not new, and the tools that do it are good at it. Docker Scout attributes findings to the base image, recommends a better one, and hides base image CVEs with docker scout cves --ignore-base. Snyk Container recommends base image upgrades and has --exclude-base-image-vulns, which needs the image's Dockerfile. Both work best on images that pass through their build or registry integration. Trivy records the layer each package came from in its JSON output, but Trivy Operator reports one flat list per workload, and Dependency-Track does the same per project.

What none of them does is separate the images you build from the ones a Helm chart brought in, and that is the line that decides who can act. The wider comparison is in the container scanning tools roundup.

Try it

The live demo runs a cluster built from public Helm charts, so nearly every image in it is third-party. Open the dashboard and change the Findings filter in the bar under the title to see how much of each image's list the base image accounts for. The rules behind every view are on the Application vs base image docs page. Both filters apply to the continuous Kubernetes vulnerability scanning view, so the split holds as new advisories land.

Frequently asked questions

Why does my container scan show hundreds of vulnerabilities?

Because a container image is mostly other people’s software. An image built on Debian or Alpine carries the distribution’s packages and the tooling bundled with the language runtime, and a cluster also runs images you never built at all: Prometheus, Grafana, an ingress controller. A scanner reports all of it in one list sorted by severity. The findings are real, but only a small part of them is fixed by changing your own code’s dependencies.

Is it safe to filter out base image vulnerabilities?

It is safe to fold them, not to drop them. The test is whether the filter can hide something dangerous. In StackRadar a base image finding that is in the CISA KEV catalogue or has an EPSS score of 0.1 or more stays listed whichever Findings view is selected, the filter shows how many findings each view holds, the Risk Score counts every finding, and nothing is suppressed automatically.

How do I fix vulnerabilities in a third-party container image?

You upgrade to a release where upstream has fixed them: a newer version of the Helm chart, or a newer image tag that the chart lets you override. If no such release exists yet, the honest status is "waiting on upstream", and the remaining options are a mitigation or a recorded, expiring risk acceptance. Rebuilding someone else’s image yourself is rarely worth the maintenance.

How does StackRadar know which images are mine?

From where each image comes from and what delivered it: a public Helm chart that deploys it, Docker Official Image annotations, a vendor namespace on a public registry, layers identical to a public image, or a private registry. Images it cannot place count as yours until you say otherwise, it asks you once to confirm them, and your answer always wins. You can change it any time under Organization settings → Image ownership.

All posts