Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2021-29531

Опубликовано: 14 мая 2021
Источник: nvd
CVSS3: 2.5
CVSS3: 5.5
CVSS2: 2.1
EPSS Низкий

Описание

TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a CHECK fail in PNG encoding by providing an empty input tensor as the pixel data. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/e312e0791ce486a80c9d23110841525c6f7c3289/tensorflow/core/kernels/image/encode_png_op.cc#L57-L60) only validates that the total number of pixels in the image does not overflow. Thus, an attacker can send an empty matrix for encoding. However, if the tensor is empty, then the associated buffer is nullptr. Hence, when calling png::WriteImageToBuffer(https://github.com/tensorflow/tensorflow/blob/e312e0791ce486a80c9d23110841525c6f7c3289/tensorflow/core/kernels/image/encode_png_op.cc#L79-L93), the first argument (i.e., image.flat<T>().data()) is NULL. This then triggers the CHECK_NOTNULL in the first line of png::WriteImageToBuffer(https://github.com/tensorflow/tensorflow/blob/e312e0791ce486a80c9d23110841525c6f7c3289/tensor

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
Версия до 2.1.4 (исключая)
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
Версия от 2.2.0 (включая) до 2.2.3 (исключая)
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
Версия от 2.3.0 (включая) до 2.3.3 (исключая)
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
Версия от 2.4.0 (включая) до 2.4.2 (исключая)

EPSS

Процентиль: 2%
0.00015
Низкий

2.5 Low

CVSS3

5.5 Medium

CVSS3

2.1 Low

CVSS2

Дефекты

CWE-754

Связанные уязвимости

CVSS3: 2.5
debian
больше 4 лет назад

TensorFlow is an end-to-end open source platform for machine learning. ...

CVSS3: 2.5
github
больше 4 лет назад

CHECK-fail in tf.raw_ops.EncodePng

EPSS

Процентиль: 2%
0.00015
Низкий

2.5 Low

CVSS3

5.5 Medium

CVSS3

2.1 Low

CVSS2

Дефекты

CWE-754