Checks / Docker and containers
A container image has an operating system past its end of life
- Check
image.os_eol- Severity
- high
- Runs
- on our side, with the data of the report
- Looks at
- Image OS release against end-of-life dates
What the check looks at
The operating system release of every running container image (for example alpine 3.20.10 or
debian 11.11), which the agent sends with the package list of the image. We compare it with the end-of-life
dates in the vulnerability database of Trivy and report each image whose release has reached its end, with the
image name and the containers that use it.
The host and the images are checked separately: a current Ubuntu host can run an image built on Debian 11. The check for the host is host.os_eol.
Risk
After the end of life, new vulnerabilities in OpenSSL, glibc, zlib or any other package of the image stay open,
and an apt-get upgrade or apk upgrade in the Dockerfile finds nothing to install. Scanner results become
incomplete too: for an image on alpine:3.20, Trivy 0.75 warned "This OS version is no longer supported by the
distribution" and "The vulnerability detection may be insufficient because security updates are not provided".
Each Alpine branch gets fixes in its main repository for about two years, so an image built on alpine:3.20 in
2024 is past its end in November 2026 and still runs.
How to fix it
For images you build, change the base release in the FROM line, rebuild and test:
| Family | Example of an old line | Supported release in November 2026 |
|---|---|---|
| Debian | FROM debian:bullseye-slim |
debian:trixie-slim (13) or debian:bookworm-slim (12, LTS) |
| Ubuntu | FROM ubuntu:20.04 |
ubuntu:24.04 or ubuntu:26.04 |
| Alpine | FROM alpine:3.20 |
alpine:3.24 |
| Language images | FROM python:3.12-slim-bullseye |
a tag without the old release name, or -trixie |
Package names can change between releases, so read the build log. Rebuild without the cache, so that every layer gets the new release:
docker build --pull --no-cache -t example/app:1.4.3 .
For images from someone else, look for a newer tag of the same image on a supported base. If the project has not published one, ask the maintainers or switch to an image that is maintained.
How to check the fix
Read the release in the image:
docker run --rm --entrypoint cat example/app:1.4.3 /etc/os-release
Images without cat (distroless, scratch) need a scanner. trivy image example/app:1.4.3 prints the release
next to the image name and warns when it is out of support; with --exit-on-eol 1 it also exits with code 1,
which fails a CI job. After you redeploy the container, the next report of the agent clears the finding.
When a warning is fine
Rarely: for a batch job on data you control, without network access, or for one more week until the replacement is tested. A container that serves requests needs a supported base.
Sources
- Alpine Linux releases (support period per branch)
- Debian security FAQ and LTS (support periods of Debian releases)
- Ubuntu release cycle
- Trivy documentation, supported OS (release detection, end-of-life dates)