[Snyk] Security upgrade tensorflow/tensorflow from 2.11.0-gpu to 2.21.0rc0-gpu#38
[Snyk] Security upgrade tensorflow/tensorflow from 2.11.0-gpu to 2.21.0rc0-gpu#38nicholas-lockhart wants to merge 1 commit intomainfrom
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU2004-NGHTTP2-5954795 - https://snyk.io/vuln/SNYK-UBUNTU2004-FREETYPE-9402627 - https://snyk.io/vuln/SNYK-UBUNTU2004-FREETYPE-9402627 - https://snyk.io/vuln/SNYK-UBUNTU2004-FREETYPE-9402627 - https://snyk.io/vuln/SNYK-UBUNTU2004-LIBSSH-6130560
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| @@ -1,4 +1,4 @@ | |||
| FROM tensorflow/tensorflow:2.11.0-gpu | |||
| FROM tensorflow/tensorflow:2.21.0rc0-gpu | |||
There was a problem hiding this comment.
tensorflow-addons incompatible with TensorFlow 2.21
High Severity
Upgrading the base image to TensorFlow 2.21.0rc0 breaks the pip3 install -U tensorflow-addons step on line 10. tensorflow-addons reached end-of-life in May 2024, with its last release (0.23.0) only supporting up to approximately TensorFlow 2.15. This will cause a Docker build failure or runtime incompatibility since there is no tensorflow-addons version compatible with TF 2.21.
Additional Locations (1)
| @@ -1,4 +1,4 @@ | |||
| FROM tensorflow/tensorflow:2.11.0-gpu | |||
| FROM tensorflow/tensorflow:2.21.0rc0-gpu | |||
There was a problem hiding this comment.
Using release candidate image in production Dockerfile
Medium Severity
The base image tensorflow/tensorflow:2.21.0rc0-gpu is a release candidate, not a stable release. RC versions may contain unresolved bugs, undergo API changes before the final release, and are not intended for production use. This could lead to unexpected behavior or require another image upgrade soon after.


Snyk has created this PR to fix 3 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):
finetune/DockerfileWe recommend upgrading to
tensorflow/tensorflow:2.21.0rc0-gpu, as this image has only 128 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:
SNYK-UBUNTU2004-NGHTTP2-5954795
SNYK-UBUNTU2004-FREETYPE-9402627
SNYK-UBUNTU2004-FREETYPE-9402627
SNYK-UBUNTU2004-FREETYPE-9402627
SNYK-UBUNTU2004-LIBSSH-6130560
Important
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
👩💻 Set who automatically gets assigned
📜 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.
Note
Medium Risk
Base image upgrade can introduce TensorFlow/CUDA/OS-level compatibility changes that may affect training/inference behavior or build/runtime stability.
Overview
Updates the
finetuneDocker base image fromtensorflow/tensorflow:2.11.0-gputotensorflow/tensorflow:2.21.0rc0-gputo pick up security fixes in the underlying TensorFlow/OS stack.Written by Cursor Bugbot for commit 7560f7f. This will update automatically on new commits. Configure here.