According to https://docs.docker.com/docker-cloud/builds/image-scan/
Scan compares the SHA of each component with the Common Vulnerabilities and Exposures (CVE®) database
This means that vulnerabilities may not be in the image itself, but in the component (for example, known OpenJDK vulnerabilities). Maybe the version of the component is outdated and not yet updated, or that this vulnerability is known, but not yet fixed in the latest version.
It is likely, however, that you will not use features with vulnerabilities. Probably the best idea is to design to check for known vulnerabilities in the components that you use, and make sure that you are not using any features with unmanaged vulnerabilities.
source share