Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS02eDk5LWd2MnYtcTc2ds4AAv-w

FPE in `tf.image.generate_bounding_box_proposals`

Impact

When running on GPU, tf.image.generate_bounding_box_proposals receives a scores input that must be of rank 4 but is not checked.

import tensorflow as tf

a = tf.constant(value=[[1.0, 1.0], [1.0, 1.0], [1.0, 1.0], [1.0, 1.0]])
b = tf.constant(value=[1])

tf.image.generate_bounding_box_proposals(scores=a,bbox_deltas=a,image_info=a,anchors=a,pre_nms_topn=b)

Patches

We have patched the issue in GitHub commit cf35502463a88ca7185a99daa7031df60b3c1c98.

The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Pattarakrit Rattankul.

Permalink: https://github.com/advisories/GHSA-6x99-gv2v-q76v
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02eDk5LWd2MnYtcTc2ds4AAv-w
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 10 months ago
Updated: 8 months ago


CVSS Score: 4.8
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H

Identifiers: GHSA-6x99-gv2v-q76v, CVE-2022-41888
References:

Affected Packages

pypi:tensorflow-gpu
Versions: >= 2.10.0, < 2.10.1, >= 2.9.0, < 2.9.3, < 2.8.4
Fixed in: 2.10.1, 2.9.3, 2.8.4
pypi:tensorflow-cpu
Versions: >= 2.10.0, < 2.10.1, >= 2.9.0, < 2.9.3, < 2.8.4
Fixed in: 2.10.1, 2.9.3, 2.8.4
pypi:tensorflow
Versions: >= 2.10.0, < 2.10.1, >= 2.9.0, < 2.9.3, < 2.8.4
Fixed in: 2.10.1, 2.9.3, 2.8.4