diff --git a/build/Dockerfile b/build/Dockerfile index bb94dc04..96005431 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -12,6 +12,12 @@ RUN bash -c -- 'if [ "${NO_PROXY:-__ZZZZZ}" == "__ZZZZZ" ]; then echo "Applying # -- cleans up the cached data from dnf to keep the image as small as possible RUN dnf update -y --exclude=ansible* && dnf install -y python3-passlib python3-bcrypt && dnf clean all && rm -rf /var/cache/dnf +# NOTE(dpawlik): The base image contains vulnerable pyasn1 library installed, +# that's why it needs to be updated to newer. +# upgrade pyasn1 to fix CVE-2026-59885, CVE-2026-59884, CVE-2026-59886 +RUN rpm -e --nodeps python3-pyasn1 ; \ + pip3 install --no-cache-dir pyasn1>=0.6.4 + COPY requirements.yml ${HOME}/requirements.yml RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \ && chmod -R ug+rwx ${HOME}/.ansible