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 ubuntu from 23.04 to mantic-20231011 #12308

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Nov 1, 2023

This PR was automatically created by Snyk using the credentials of 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

  • utils/docker/Dockerfile-cpu

We recommend upgrading to ubuntu:mantic-20231011, as this image has only 8 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 150 Improper Input Validation
SNYK-UBUNTU2304-COREUTILS-5484945
No Known Exploit
medium severity 300 Memory Leak
SNYK-UBUNTU2304-GLIBC-5919743
No Known Exploit
medium severity 300 Memory Leak
SNYK-UBUNTU2304-GLIBC-5919743
No Known Exploit
low severity 150 Out-of-bounds Write
SNYK-UBUNTU2304-PROCPS-5816666
No Known Exploit
medium severity 300 CVE-2020-22916
SNYK-UBUNTU2304-XZUTILS-5854648
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:

🦉 Memory Leak
🦉 Improper Input Validation

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Enhanced Docker builds for YOLOv5 by tweaking package installations and updating the Ubuntu base image.

📊 Key Changes

  • 📦 Replaced libgl1-mesa-glx with libgl1 in Dockerfile, Dockerfile-arm64, and Dockerfile-cpu package installations.
  • 🚀 Updated the Ubuntu base image from 23.04 to mantic-20231011 in Dockerfile-cpu.

🎯 Purpose & Impact

  • 💡 Switching to libgl1 from libgl1-mesa-glx potentially reduces the image size by avoiding additional, possibly unnecessary, dependencies.
  • 🐳 The update to the latest Ubuntu image may include security patches, software updates, and better compatibility, leading to a more secure and efficient Docker environment for YOLOv5 deployments.
  • 🌐 Overall, these changes can enhance the user experience with faster downloads, reduced storage needs, and improved performance of the containerized application.

@glenn-jocher glenn-jocher merged commit 6ca8f33 into master Nov 3, 2023
6 of 7 checks passed
@glenn-jocher glenn-jocher deleted the snyk-fix-73004a0036ddd9e1919f1b87e500fba6 branch November 3, 2023 17:59
pleb631 pushed a commit to pleb631/yolov5 that referenced this pull request Jan 6, 2024
…tics#12308)

* fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2304-COREUTILS-5484945
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743
- https://snyk.io/vuln/SNYK-UBUNTU2304-PROCPS-5816666
- https://snyk.io/vuln/SNYK-UBUNTU2304-XZUTILS-5854648

* Update apt install libgl1-mesa-glx to libgl1

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
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.

None yet

2 participants