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.9-slim to 3.13-slim #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toharzand
Copy link
Owner

snyk-top-banner

Snyk has created this PR to fix 4 vulnerabilities in the dockerfile dependencies of this project.

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

Snyk changed the following file(s):

  • docker/Dockerfile.python-3.9

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

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Integer Overflow or Wraparound
SNYK-DEBIAN12-ZLIB-6008963
  500  
low severity Uncontrolled Recursion
SNYK-DEBIAN12-GCC12-2606941
  150  
low severity CVE-2023-4039
SNYK-DEBIAN12-GCC12-5901316
  150  
low severity CVE-2023-4039
SNYK-DEBIAN12-GCC12-5901316
  150  
low severity CVE-2024-26462
SNYK-DEBIAN12-KRB5-6277421
  150  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

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

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
6 Security Hotspots
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prisma Cloud has found errors in this PR ⬇️

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOW  A user for the container has not been created
    Resource: /docker/Dockerfile.python-3.9. | Checkov ID: CKV_DOCKER_3

Description

The policy's primary purpose is to verify that a dedicated user has been explicitly created for running the container. This is essential to avoid running the container with root privileges, which could introduce significant security risks in case of a compromise. Running containers as a non-root user reduces the potential impact of a security breach.

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOW  Healthcheck instructions have not been added to container images
    Resource: /docker/Dockerfile.python-3.9. | Checkov ID: CKV_DOCKER_2

Description

We recommend that you add the HEALTHCHECK instruction to your Docker container images to ensure that health checks are executed against running containers.
An important security control is that of availability.
Adding the HEALTHCHECK instruction to your container image ensures that the Docker engine periodically checks the running container instances against that instruction to ensure that containers are still operational.
Based on the results of the health check, the Docker engine could terminate containers which are not responding correctly, and instantiate new ones.

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libgcrypt20 1.10.1-3 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 1

Critical: 0 High: 0 Medium: 0 Low: 1
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2024-2236 LOW LOW - - Open

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shadow 1:4.13+dfsg1-1 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 2

Critical: 0 High: 0 Medium: 0 Low: 2
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2023-29383 LOW LOW 3.3 - Open
CVE-2023-4641 LOW LOW 5.5 - Open

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pam 1.5.2-6+deb12u1 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 1

Critical: 0 High: 0 Medium: 0 Low: 1
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2024-22365 LOW LOW 5.5 - Open

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ncurses 6.4-4 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 2

Critical: 0 High: 0 Medium: 0 Low: 2
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2023-45918 LOW LOW - - Open
CVE-2023-50495 LOW LOW 6.5 - Open

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sqlite3 3.40.1-2 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 1

Critical: 0 High: 0 Medium: 0 Low: 1
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2023-7104 LOW LOW 7.3 - Open

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perl 5.36.0-7+deb12u1 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 1

Critical: 0 High: 0 Medium: 0 Low: 1
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2023-31484 LOW LOW 8.1 - Open

@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip 24.2 / Dockerfile.python-3.9.FROM

Total vulnerabilities: 1

Critical: 0 High: 1 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
PRISMA-2022-0168 HIGH HIGH 7.8 - Open

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.

2 participants