Ofir
05/15/2023, 9:17 PM✗ Critical severity vulnerability found in curl/libcurl3-gnutls
Description: Cleartext Transmission of Sensitive Information
Info: <https://security.snyk.io/vuln/SNYK-DEBIAN11-CURL-3320493>
Introduced through: git@1:2.30.2-1+deb11u2
From: git@1:2.30.2-1+deb11u2 > curl/libcurl3-gnutls@7.74.0-1.3+deb11u7
This comes from Prefect’s Dockerfile line 101:
https://github.com/PrefectHQ/prefect/blob/main/Dockerfile#L101
Is Git actually needed and used within the Prefect server / Prefect agents? If so, why?
Can I remove it or will it break Prefect?Zanie
Henning Holgersen
05/16/2023, 4:14 AMZanie
Ofir
05/18/2023, 6:08 PMOfir
05/18/2023, 6:08 PMgit
CLI and instead use some fake hard coded versionOfir
05/18/2023, 6:09 PMZanie
git
version. It’s unfortunate that there’s a vuln that’s not fixed?Ofir
05/18/2023, 6:12 PMOfir
05/18/2023, 6:13 PMHenning Holgersen
05/18/2023, 6:14 PMOfir
05/18/2023, 6:15 PMHenning Holgersen
05/18/2023, 6:16 PMHenning Holgersen
05/18/2023, 6:21 PMZanie
❯ docker run prefecthq/prefect:2-latest bash -c "apt-get update && apt-get upgrade git"
Get:1 <http://deb.debian.org/debian> bullseye InRelease [116 kB]
Get:2 <http://deb.debian.org/debian-security> bullseye-security InRelease [48.4 kB]
Get:3 <http://deb.debian.org/debian> bullseye-updates InRelease [44.1 kB]
Get:4 <http://deb.debian.org/debian> bullseye/main arm64 Packages [8071 kB]
Get:5 <http://deb.debian.org/debian-security> bullseye-security/main arm64 Packages [236 kB]
Get:6 <http://deb.debian.org/debian> bullseye-updates/main arm64 Packages [12.0 kB]
Fetched 8527 kB in 1s (6191 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.30.2-1+deb11u2).
Zanie
Ofir
05/18/2023, 6:34 PMZanie
Ofir
05/18/2023, 6:35 PMZanie
Zanie
ARG BASE_IMAGE=python:${PYTHON_VERSION}-slim
Ofir
05/18/2023, 6:35 PMZanie
Ofir
05/18/2023, 6:38 PMOfir
05/18/2023, 6:39 PMZanie
Ofir
05/18/2023, 6:58 PMZanie
Ofir
05/18/2023, 7:02 PMOfir
05/18/2023, 7:02 PMOfir
05/18/2023, 7:03 PMZanie
Zanie
Henning Holgersen
05/18/2023, 7:16 PMOfir
05/18/2023, 7:20 PMOfir
05/18/2023, 7:20 PMHenning Holgersen
05/18/2023, 7:24 PMOfir
05/18/2023, 7:33 PMHenning Holgersen
05/18/2023, 7:35 PMZanie