-
Notifications
You must be signed in to change notification settings - Fork 1
Investigate vulnerabilities #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 Medium
Severity : MEDIUM
Package : pkg:deb/debian/tar@1.34%2Bdfsg-1.2%2Bdeb12u1?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=1.34+dfsg-1.2+deb12u1
Fixed version : not fixed
EPSS Score : 0.000320
EPSS Percentile : 0.072210
| # 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 Medium
Severity : MEDIUM
Package : pkg:deb/debian/gnutls28@3.7.9-2%2Bdeb12u4?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=3.7.9-2+deb12u4
Fixed version : not fixed
EPSS Score : 0.000160
EPSS Percentile : 0.022390
| # 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 Medium
Severity : MEDIUM
Package : pkg:deb/debian/gnutls28@3.7.9-2%2Bdeb12u4?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=3.7.9-2+deb12u4
Fixed version : not fixed
EPSS Score : 0.000400
EPSS Percentile : 0.112020
| # 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 Medium
Severity : MEDIUM
Package : pkg:deb/debian/gnutls28@3.7.9-2%2Bdeb12u4?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=3.7.9-2+deb12u4
Fixed version : not fixed
EPSS Score : 0.000450
EPSS Percentile : 0.132930
| # 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 Medium
Severity : MEDIUM
Package : pkg:deb/debian/gnutls28@3.7.9-2%2Bdeb12u4?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=3.7.9-2+deb12u4
Fixed version : not fixed
EPSS Score : 0.000400
EPSS Percentile : 0.112400
| # 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 High
Severity : HIGH
Package : pkg:deb/debian/pam@1.5.2-6%2Bdeb12u1?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=1.5.2-6+deb12u1
Fixed version : not fixed
EPSS Score : 0.000230
EPSS Percentile : 0.044630
| # 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 High
Severity : HIGH
Package : pkg:deb/debian/libxslt@1.1.35-1%2Bdeb12u1?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=1.1.35-1+deb12u1
Fixed version : not fixed
EPSS Score : 0.000150
EPSS Percentile : 0.019550
| # 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 High
Severity : HIGH
Package : pkg:deb/debian/libxslt@1.1.35-1%2Bdeb12u1?os_distro=bookworm&os_name=debian&os_version=12
Affected range : >=1.1.35-1+deb12u1
Fixed version : not fixed
EPSS Score : 0.000120
EPSS Percentile : 0.011360
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)