What happened:
I'm not sure if #1373 "Filter out packages that are owned by OS packages" works correctly in the following usecase.
When scanning an up-to-date Ubuntu Noble container image with Go based packages installed (from Ubuntu sources) like containerd, runc or docker.io, even if the package is up to date from a OS distro sense, it will report hundreds of issues in the underlying go modules, even when running with the --only-fixed flag.
My understanding is that this should've been filtered out because these packages are owned by the OS and, if a issue affects these components Ubuntu USN system should be adequate to decide on any impacting issues to report. Instead, the go analyzer results are also considered, which causes a lot of unfixable issues because we cannot upgrade to a newer version of these components in the distro.
What you expected to happen:
That Grype ignores the go analyzer issues on files owned by distro managed packages, or that this behavior is more configurable.
How to reproduce it (as minimally and precisely as possible):
Create a Dockerfile
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y \
containerd \
runc \
docker.io \
&& apt-get upgrade -y
ENTRYPOINT ["/bin/bash"]
Run docker build -t grype_test
grype --only-fixed grype_test
Anything else we need to know?:
Environment:
-
Output of grype version:
Application: grype
Version: 0.116.0
BuildDate: 2026-07-16T16:43:45Z
GitCommit: 3b014b0
GitDescription: v0.116.0
Platform: linux/amd64
GoVersion: go1.26.3
Compiler: gc
Syft Version: v1.48.0
Supported DB Schema: 6
-
OS (e.g: cat /etc/os-release or similar): Ubuntu 24.04.4 LTS
What happened:
I'm not sure if #1373 "Filter out packages that are owned by OS packages" works correctly in the following usecase.
When scanning an up-to-date Ubuntu Noble container image with Go based packages installed (from Ubuntu sources) like containerd, runc or docker.io, even if the package is up to date from a OS distro sense, it will report hundreds of issues in the underlying go modules, even when running with the --only-fixed flag.
My understanding is that this should've been filtered out because these packages are owned by the OS and, if a issue affects these components Ubuntu USN system should be adequate to decide on any impacting issues to report. Instead, the go analyzer results are also considered, which causes a lot of unfixable issues because we cannot upgrade to a newer version of these components in the distro.
What you expected to happen:
That Grype ignores the go analyzer issues on files owned by distro managed packages, or that this behavior is more configurable.
How to reproduce it (as minimally and precisely as possible):
Create a Dockerfile
Run
docker build -t grype_testgrype --only-fixed grype_test
Anything else we need to know?:
Environment:
Output of
grype version:Application: grype
Version: 0.116.0
BuildDate: 2026-07-16T16:43:45Z
GitCommit: 3b014b0
GitDescription: v0.116.0
Platform: linux/amd64
GoVersion: go1.26.3
Compiler: gc
Syft Version: v1.48.0
Supported DB Schema: 6
OS (e.g:
cat /etc/os-releaseor similar): Ubuntu 24.04.4 LTS