Investigate vulnerabilities - #55
Conversation
🔍 Vulnerabilities of
|
| digest | sha256:c911867c0f99f974268135d31127492d77ce073ed5b44a1c872f7399a103f08f |
| vulnerabilities | |
| platform | linux/amd64 |
| size | 155 MB |
| packages | 205 |
📦 Base Image postgres:16
| also known as |
|
| digest | sha256:a37f209998adbaa5ea249bef793a2727995d41d73f5a2fd66edca7c5e8844abc |
| vulnerabilities |
# Dockerfile (6:6)
FROM postgres:${POSTGRES_VERSION}
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Dockerfile (6:6)
FROM postgres:${POSTGRES_VERSION}
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Dockerfile (6:6)
FROM postgres:${POSTGRES_VERSION}
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Dockerfile (6:6)
FROM postgres:${POSTGRES_VERSION}
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Dockerfile (6:6)
FROM postgres:${POSTGRES_VERSION}
Description
|
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check warning
Code scanning / docker scout
CVE-2025-45582
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check warning
Code scanning / docker scout
CVE-2025-32989
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check warning
Code scanning / docker scout
CVE-2025-32988
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check warning
Code scanning / docker scout
CVE-2025-32990
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check warning
Code scanning / docker scout
CVE-2025-6395
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check failure
Code scanning / docker scout
CVE-2025-6020
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check failure
Code scanning / docker scout
CVE-2025-7424
| # allows us to upgrade the database from the old version to the new one. | ||
| ARG POSTGRES_VERSION=17 | ||
| FROM postgres:${POSTGRES_VERSION} | ||
| FROM postgres:${POSTGRES_VERSION} AS base |
Check failure
Code scanning / docker scout
CVE-2025-7425
What
Bump golang to version 1.23 to mitigate potential security holes.Use 'new' ENV syntax in Dockerfile.
NOTE: Potential security holes come from
gosu: tianon/gosu#104 . As I dig deeper into this, it seems like the maintainer does check if security holes apply or not. He states thatgosuis not vulnerable and naive security scanners should fix their reporting.UPDATE: Executed
govulncheckand gosu seems not to be vulnerable. Instructions: docker-library/postgres#1271 (comment). I will close the PR and create a new one adding the vulnerability check.TODOS:
gosufrom base image: https://github.com/search?q=repo%3Adocker-library%2Fpostgres%20gosu&type=codepostgresstill works properly inautomatixwhen using agosureplacementgosuis really vulnerable (https://github.com/tianon/gosu/blob/4233b796eeb3ba76c8597a46d89eab1f116188e2/SECURITY.md#cves) before using another toolgovulncheckwrapper.sh: Security vulnerability found in postgres:alpine 'gosu' appliciation docker-library/postgres#1271 (comment)