PlaybooksFix CVEs by image type
Fix CVEs by image type
Where the vulnerabilities of each kind of image come from, how to fix them by hand, and how to get the fixed image in one step.
01PythonCVEs in a Python image come from two places: the operating system packages of the base image (Debian or Alpine) and the Python packages in s…02Node.jsA Node.js image carries CVEs in the base OS, in Node.js itself, in the npm that ships with it, and in node_modules. Rebuild on the newest pa…03JavaJava images inherit CVEs from the OS, the JDK or JRE itself, and the application's jars, including jars shaded inside a fat jar. Move to the…04GoA Go binary carries the standard library of the Go release that built it, plus its modules, so CVEs in a Go image are fixed by rebuilding: w…05nginxThe nginx images' CVEs are mostly in the libraries of the base OS (image, XML and compression libraries pulled in by modules), not in nginx …06PostgreSQLPostgreSQL images get CVEs from the base OS, from PostgreSQL itself (fixed in minor releases, which are safe to apply within a major version…07AlpineAlpine images are small, so their CVEs are few and almost always fixed by apk upgrade on a supported release branch. Upgrade packages in you…08DebianDebian-based images are fixed by apt-get upgrade from the security repository of a supported release. Many reported Debian CVEs have no fix …09UbuntuUbuntu images are fixed by apt-get upgrade from the security pocket of a supported LTS release. Some fixes for packages in universe are publ…10Red Hat UBIRed Hat Universal Base Images are fixed by dnf upgrade (microdnf on ubi-minimal) from Red Hat's errata. Use the newest UBI minor release, up…