Skip to content
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

[Snyk] Security upgrade python from 3.10-slim to 3.13.0b1-slim #73

Closed

Conversation

BackblazeGitHub
Copy link

As this is a private repository, Snyk-bot does not have access. Therefore, this PR has been created automatically, but appears to have been created by a real user.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Changes included in this PR

  • Dockerfile

We recommend upgrading to python:3.13.0b1-slim, as this image has only 50 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Some of the most important vulnerabilities in your base image include:

Severity Priority Score / 1000 Issue Exploit Maturity
low severity 436 CVE-2024-33601
SNYK-DEBIAN12-GLIBC-6673964
No Known Exploit
low severity 436 CVE-2024-33600
SNYK-DEBIAN12-GLIBC-6673969
No Known Exploit
low severity 436 CVE-2024-33602
SNYK-DEBIAN12-GLIBC-6673972
No Known Exploit
low severity 436 CVE-2024-33599
SNYK-DEBIAN12-GLIBC-6673974
No Known Exploit
critical severity 500 Integer Overflow or Wraparound
SNYK-DEBIAN12-ZLIB-6008963
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report

🛠 Adjust project settings


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@asullivan-blze
Copy link
Contributor

Closing this PR as Python 3.13 is not officially released yet (as evidenced by the version tag). Even Python's page says that they are "prerelease testing versions", and that they don't recommend it for use in production settings.

Further, Snyk entirely missed that the image build invocation is running a full system upgrade in the command path, so any vulnerabilities existing during creation of the image will be addressed by the upgrade commands.

FROM python:3.11-slim
COPY --from=build /build/dist ./dist
ENV DEBIAN_FRONTEND=noninteractive
RUN groupadd -g 1000 not_root && useradd -u 1000 -g 1000 not_root \
    && apt-get -y update \
    && apt-get -y install aptitude \
    && apt-get -y dist-upgrade \
    && apt-get -y autoremove \
    && apt-get -y autoclean \
    && apt-get -y clean \
    && aptitude -y purge '~o' \
    && apt-get -y remove --purge aptitude \
    && python3 -m pip install ./dist/boardwalk-*.whl \
    && rm -rf ./dist

@asullivan-blze asullivan-blze deleted the snyk-fix-17235dfb5a3d0c86b60ba0a69a1c3577 branch May 10, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants