Skip to content

[Snyk] Security upgrade python from 3.8 to 3.13.3#59

Open
vieiraamanda wants to merge 1 commit intomasterfrom
snyk-fix-e4398db02c64e6b8817bbca0e7cff9bc
Open

[Snyk] Security upgrade python from 3.8 to 3.13.3#59
vieiraamanda wants to merge 1 commit intomasterfrom
snyk-fix-e4398db02c64e6b8817bbca0e7cff9bc

Conversation

@vieiraamanda
Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 2 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):

  • Dockerfile

We recommend upgrading to python:3.13.3, as this image has only 204 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
low severity Inappropriate Encoding for Output Context
SNYK-DEBIAN12-OPENSSH-1556053
  295  
low severity OS Command Injection
SNYK-DEBIAN12-IMAGEMAGICK-5660573
  256  
low severity OS Command Injection
SNYK-DEBIAN12-IMAGEMAGICK-5660573
  256  
low severity OS Command Injection
SNYK-DEBIAN12-IMAGEMAGICK-5660573
  256  
low severity OS Command Injection
SNYK-DEBIAN12-IMAGEMAGICK-5660573
  256  

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:

🦉 OS Command Injection

@msant262
Copy link
Copy Markdown
Collaborator

Logo
Checkmarx One – Scan Summary & Details11d29d58-510f-4374-ac6c-f948b65fdf58

New Issues (43)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
HIGH Missing User Instruction /Dockerfile: 1
detailsA user should be specified in the dockerfile, otherwise the image will run as root
ID: l%2BjXWK7FAv3yAaBNwyM%2B%2BAkGP9c%3D
HIGH Missing User Instruction /Dockerfile: 1
detailsA user should be specified in the dockerfile, otherwise the image will run as root
ID: E60VfuXdEmzu36v1WAMa4yvtPLQ%3D
HIGH Passwords And Secrets - Generic Password /docker-compose.yml: 11
detailsQuery to find passwords and secrets in infrastructure code.
ID: V8AVMn8%2FoaddYde7YLHKWRCvPdg%3D
HIGH Passwords And Secrets - Generic Secret /teste_appscan.yml: 17
detailsQuery to find passwords and secrets in infrastructure code.
ID: ecwW1SCO5h3wdQn6xlTtH6F4Tsw%3D
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 5
detailsWhen installing a package, its pin version should be defined
ID: oSU%2B3STagtVtSZQ4qlb3hjVbxQs%3D
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 5
detailsWhen installing a package, its pin version should be defined
ID: fsm14vG2JXWj3EM9MOraEo6xYzM%3D
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 8
detailsWhen installing a package, its pin version should be defined
ID: s5dw367xPzI9EDJsY94Gs%2BkwdnE%3D
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 5
detailsWhen installing a package, its pin version should be defined
ID: qAPdKq6s9kcxPyUxE97p5%2BtRXUA%3D
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 14
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
ID: YMDdiX99qe26NH6DUkTpzUZioDg%3D
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 4
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
ID: NGSkwrNJEwraW3QQ412ZSmCGA8g%3D
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 2
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
ID: 3I7jXnLhrx%2BqHLQNBOIsmML8t%2F4%3D
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 12
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
ID: gP%2F%2BfqNkZPyOqQAl0K%2FUbowMbuY%3D
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 23
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
ID: A5OKucrLyUyytKqzlnG%2FENfj%2FOo%3D
MEDIUM Container Traffic Not Bound To Host Interface /docker-compose.yml: 6
detailsIncoming container traffic should be bound to a specific host interface
ID: Izr8mKlP7kboqARhEtoDYfL6AB8%3D
MEDIUM Container Traffic Not Bound To Host Interface /docker-compose.yml: 16
detailsIncoming container traffic should be bound to a specific host interface
ID: M72Rs3WU8T2L5K%2Fpqz7hNi%2Fc%2F4A%3D
MEDIUM Healthcheck Not Set /docker-compose.yml: 12
detailsCheck containers periodically to see if they are running properly.
ID: LLoY5ia4KoXmMvZMAth1f11wEKc%3D
MEDIUM Healthcheck Not Set /docker-compose.yml: 2
detailsCheck containers periodically to see if they are running properly.
ID: yZeqNyVsXZaEBnhDH69y3pVzj6E%3D
MEDIUM Healthcheck Not Set /docker-compose.yml: 23
detailsCheck containers periodically to see if they are running properly.
ID: y8LfUkosBcLy78n%2B0TNKgDbCtBA%3D
MEDIUM Healthcheck Not Set /docker-compose.yml: 14
detailsCheck containers periodically to see if they are running properly.
ID: W9kY9jpfVAY7LiO4mlzrtjU5WHs%3D
MEDIUM Healthcheck Not Set /docker-compose.yml: 4
detailsCheck containers periodically to see if they are running properly.
ID: RkxATa9v7hACBgyka5eSvvGiG08%3D
MEDIUM Memory Not Limited /docker-compose.yml: 12
detailsMemory limits should be defined for each container. This prevents potential resource exhaustion by ensuring that containers consume not more than t...
ID: RYkCpRgZQ5uMv73t15FSa6rlhFo%3D
MEDIUM Memory Not Limited /docker-compose.yml: 4
detailsMemory limits should be defined for each container. This prevents potential resource exhaustion by ensuring that containers consume not more than t...
ID: mGcZDeCNavannD1WuJ1mv4qNkoE%3D
MEDIUM Memory Not Limited /docker-compose.yml: 23
detailsMemory limits should be defined for each container. This prevents potential resource exhaustion by ensuring that containers consume not more than t...
ID: %2Bv2K%2FOPSWsd1pxX4%2FxzM2csqiYo%3D
MEDIUM Security Opt Not Set /docker-compose.yml: 12
detailsAttribute 'security_opt' should be defined.
ID: oUc8m%2BoLYv3DH2oyaGpJucc8NZ8%3D
MEDIUM Security Opt Not Set /docker-compose.yml: 4
detailsAttribute 'security_opt' should be defined.
ID: MCrG6ZI%2F8g8l8bDS5VRG6fGS3Mo%3D
MEDIUM Security Opt Not Set /docker-compose.yml: 23
detailsAttribute 'security_opt' should be defined.
ID: aS1xfCR328sx%2B1Cc54XulT5qCgQ%3D
MEDIUM Security Opt Not Set /docker-compose.yml: 2
detailsAttribute 'security_opt' should be defined.
ID: LfrGadfcFaMKhZ0ZNvqarWtoNis%3D
MEDIUM Security Opt Not Set /docker-compose.yml: 14
detailsAttribute 'security_opt' should be defined.
ID: SWjK3q2wfJn5C8fJVElzaR7AxLc%3D
MEDIUM Unpinned Package Version in Pip Install /Dockerfile: 20
detailsPackage version pinning reduces the range of versions that can be installed, reducing the chances of failure due to unanticipated changes
ID: IA%2Fv%2FiK1LjRxfNj12spqF97EK5k%3D
LOW Cpus Not Limited /docker-compose.yml: 4
detailsCPU limits should be set because if the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests
ID: LYQFYqe8k%2Bg9%2FmSfoMEEunitbdU%3D
LOW Cpus Not Limited /docker-compose.yml: 12
detailsCPU limits should be set because if the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests
ID: VBPzm2SggskXoaNfCrkxWcBuUXg%3D
LOW Cpus Not Limited /docker-compose.yml: 23
detailsCPU limits should be set because if the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests
ID: J%2BPs0ff8aualK4n%2Fv6Mr3kFK%2Fpo%3D
LOW Healthcheck Instruction Missing /Dockerfile: 1
detailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
ID: 805LiShyQB4W8XAONe7CRVSvUH0%3D
LOW Healthcheck Instruction Missing /Dockerfile: 1
detailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
ID: IpeMSEmUp34b74o%2Baua40zTxTOc%3D
LOW Multiple RUN, ADD, COPY, Instructions Listed /Dockerfile: 9
detailsMultiple commands (RUN, COPY, ADD) should be grouped in order to reduce the number of layers.
ID: pSXNcF%2BIgTo0DE2Z02Qbk5ayMGc%3D
LOW Multiple RUN, ADD, COPY, Instructions Listed /Dockerfile: 7
detailsMultiple commands (RUN, COPY, ADD) should be grouped in order to reduce the number of layers.
ID: pPiQu6LxgyuP9ov5ctsbzTqtNBk%3D
LOW Pip install Keeping Cached Packages /Dockerfile: 14
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
ID: EiUk2gdEDk%2BGGf3QbNZPL6rvrwg%3D
LOW Pip install Keeping Cached Packages /Dockerfile: 9
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
ID: 6M0YLnjTRL9CI4881rYGhfWZbk4%3D
LOW Pip install Keeping Cached Packages /Dockerfile: 20
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
ID: Tke%2BGe3KVJ4C1lqwwjr7yMs2zq4%3D
LOW Pip install Keeping Cached Packages /Dockerfile: 23
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
ID: jAISApa31%2FpYw%2B6l%2BbWgqD8YSfA%3D
LOW Unpinned Actions Full Length Commit SHA /main.yml: 13
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...
ID: OlP4VuCso%2Bc62lmN05RdrBh00v4%3D
LOW Unpinned Actions Full Length Commit SHA /teste_appscan.yml: 14
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...
ID: 8aU5F3QD2MLDQj8q9nQ9WPVjiOw%3D
LOW Update Instruction Alone /Dockerfile: 8
detailsInstruction 'RUN update' should always be followed by ' install' in the same RUN statement
ID: bjkyAChuafG%2FJo8%2FX37Gi%2FMBJRw%3D
Fixed Issues (7)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
CRITICAL CVE-2024-53908 Python-Django-5.1.3
HIGH CVE-2024-53907 Python-Django-5.1.3
MEDIUM CVE-2024-56201 Python-Jinja2-3.1.4
MEDIUM CVE-2024-56326 Python-Jinja2-3.1.4
MEDIUM CVE-2024-56374 Python-Django-5.1.3
MEDIUM CVE-2025-26699 Python-Django-5.1.3
MEDIUM CVE-2025-27516 Python-Jinja2-3.1.4

@PauloNova8
Copy link
Copy Markdown

Logo
Checkmarx One – Scan Summary & Detailsdf33d382-62c0-4628-8221-7f8a9bf01ecf

New Issues (18)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
CRITICAL CVE-2023-5457 Python-Django-5.2
detailsDescription: A CWE-1269 "Product Released in Non-Release Configuration" vulnerability in the Django web framework used by the web application (due to the "debug...
Attack Vector: NETWORK
Attack Complexity: LOW

ID: 3%2Bu0VRvFkKqs6%2F9iycr%2F4LgpLM230sdM3hw%2BF0Mtcvw%3D
Vulnerable Package
HIGH CVE-2024-4340 Python-sqlparse-0.3.1
detailsRecommended version: 0.5.0
Description: The package sqlparse versions prior to 0.5.0 are vulnerable to Denial of Service (DoS). This vulnerability occurs when a heavily nested list is pas...
Attack Vector: NETWORK
Attack Complexity: LOW

ID: crn31hL1jLIyqA6aiLhm3l7n4YWoPuodHXiHKBR1LI8%3D
Vulnerable Package
HIGH Cx89a94f30-7a24 Python-sqlparse-0.3.1
detailsRecommended version: 0.5.0
Description: In sqlparse versions prior to 0.5.0, passing a heavily nested list to "sqlparse.parse()" leads to a Denial of Service (DOS) attack due to "Recursio...
Attack Vector: NETWORK
Attack Complexity: LOW

ID: Hek7DR%2FsiR6VwL%2FSG%2FUgv%2BDXUoZue04hrZ6DG5%2B3TwY%3D
Vulnerable Package
HIGH Deserialization_of_Untrusted_Data /pygoat/introduction/views.py: 405
detailsThe serialized object FILES processed in  in the file /pygoat/introduction/views.py at line 405 is deserialized by load in the file /pygoat/introdu...
ID: kCbvDhp3HvvFDR0zm8iXv1qcSQc%3D
Attack Vector
HIGH Missing User Instruction /Dockerfile: 1
detailsA user should be specified in the dockerfile, otherwise the image will run as root
ID: E60VfuXdEmzu36v1WAMa4yvtPLQ%3D
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 8
detailsWhen installing a package, its pin version should be defined
ID: s5dw367xPzI9EDJsY94Gs%2BkwdnE%3D
MEDIUM Command_Argument_Injection /pygoat/introduction/views.py: 300
detailsAn argument is passed to an external OS command by check_output at /pygoat/introduction/views.py in line 312. This could allow an attacker to attac...
ID: vbc%2B2ncQoxHTaVGqHmwoE3Fuhg0%3D
Attack Vector
MEDIUM Django_Missing_Function_Level_Authorization /pygoat/introduction/views.py: 341
detailsLine 341 flags a method or annotation that could be a potential unauthorized access to object available in the corresponding controller. This quer...
ID: ZK89w9aw0Gn%2Bu%2BozOLcGddl9j6k%3D
Attack Vector
MEDIUM Django_Missing_Function_Level_Authorization /pygoat/introduction/views.py: 230
detailsLine 230 flags a method or annotation that could be a potential unauthorized access to object available in the corresponding controller. This quer...
ID: D2%2FFex4Ylp5VtppBhD8UMS9SHwM%3D
Attack Vector
MEDIUM Django_Missing_Function_Level_Authorization /pygoat/introduction/views.py: 202
detailsLine 202 flags a method or annotation that could be a potential unauthorized access to object available in the corresponding controller. This quer...
ID: kyIy%2F0RRmGE6OJBzSiUlLYTHE%2FE%3D
Attack Vector
MEDIUM Django_Missing_Function_Level_Authorization /pygoat/introduction/views.py: 182
detailsLine 182 flags a method or annotation that could be a potential unauthorized access to object available in the corresponding controller. This quer...
ID: 4HHH4MwWu8rdfVnAD8j0UYA%2FCLM%3D
Attack Vector
MEDIUM Secure_Cookie_Flag_Not_Set_In_Config /pygoat/introduction/views.py: 119
detailsA cookie was generated and sent to the client in file /pygoat/introduction/views.py in line 119, secure attribute is missing. A cookie without a se...
ID: P%2FppiHx0Z5F5WBY4t%2B2VVf9SdRE%3D
Attack Vector
MEDIUM Use_Of_Hardcoded_Password /pygoat/pygoat/settings.py: 25
detailsThe application uses the hard-coded password "lr66%-a!$km5ed@n5ug!tya5bv!0(yqwa1tn!q%0%3m2nh%oml" for authentication purposes, either using it to v...
ID: tP53b%2FEPYW25bk%2F5kjGZyU0FJYc%3D
Attack Vector
MEDIUM Use_Of_Hardcoded_Password /pygoat/introduction/views.py: 385
detailsThe application uses the hard-coded password "SECERTKEY123" for authentication purposes, either using it to verify users' identities, or to access ...
ID: Dg4IvIsXBRiG5Un7QlaTZ01FNj8%3D
Attack Vector
LOW Healthcheck Instruction Missing /Dockerfile: 1
detailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
ID: 805LiShyQB4W8XAONe7CRVSvUH0%3D
LOW Multiple RUN, ADD, COPY, Instructions Listed /Dockerfile: 7
detailsMultiple commands (RUN, COPY, ADD) should be grouped in order to reduce the number of layers.
ID: pPiQu6LxgyuP9ov5ctsbzTqtNBk%3D
LOW Pip install Keeping Cached Packages /Dockerfile: 14
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
ID: EiUk2gdEDk%2BGGf3QbNZPL6rvrwg%3D
LOW Update Instruction Alone /Dockerfile: 8
detailsInstruction 'RUN update' should always be followed by ' install' in the same RUN statement
ID: bjkyAChuafG%2FJo8%2FX37Gi%2FMBJRw%3D
Fixed Issues (30)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
HIGH Command_Injection /pygoat/introduction/views.py: 300
HIGH Missing User Instruction /Dockerfile: 1
HIGH Unsafe_Deserialization /pygoat/introduction/views.py: 116
HIGH Unsafe_Deserialization /pygoat/introduction/views.py: 113
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 8
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 205
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 187
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 188
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 189
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 215
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 343
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 116
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 361
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 216
MEDIUM Cookie_Poisoning /pygoat/introduction/views.py: 343
MEDIUM Host Namespace is Shared /docker-compose.yml: 4
MEDIUM Host Namespace is Shared /docker-compose.yml: 14
MEDIUM Host Namespace is Shared /docker-compose.yml: 12
MEDIUM Host Namespace is Shared /docker-compose.yml: 2
MEDIUM Host Namespace is Shared /docker-compose.yml: 23
MEDIUM Networks Not Set /docker-compose.yml: 2
MEDIUM Networks Not Set /docker-compose.yml: 12
MEDIUM Networks Not Set /docker-compose.yml: 23
MEDIUM Networks Not Set /docker-compose.yml: 14
MEDIUM Networks Not Set /docker-compose.yml: 4
MEDIUM Pip install Keeping Cached Packages /Dockerfile: 14
MEDIUM Privacy_Violation /pygoat/introduction/views.py: 216
MEDIUM Update Instruction Alone /Dockerfile: 7
LOW Healthcheck Instruction Missing /Dockerfile: 1
LOW Multiple RUN, ADD, COPY, Instructions Listed /Dockerfile: 7

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.

4 participants