Skip to content
TensorFlowGHSA-4hvf-hxvg-f67v

Read and Write outside of bounds in TensorFlow

High8.8CVE-2022-23560 · Published Feb 9, 2022 · updated Jul 13, 2026

### Impact An attacker can craft a TFLite model that would allow limited reads and writes outside of arrays in TFLite. This exploits missing validation in [the conversion from sparse tensors to dense tensors](https://github.com/tensorflow/tensorflow/blob/ca6f96b62ad84207fbec580404eaa7dd7403a550/tensorflow/lite/kernels/internal/utils/sparsity_format_converter.cc#L252-L293). ### Patches We have patched the issue in GitHub commit [6364463d6f5b6254cac3d6aedf999b6a96225038](https://github.com/tensorflow/tensorflow/commit/6364463d6f5b6254cac3d6aedf999b6a96225038). The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, 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 Wang Xuan of Qihoo 360 AIVul Team.

GitHub advisory

Affected versions

PackageAffectedFixed in
tensorflow
PyPI
< 2.5.32.5.3
>= 2.6.0, < 2.6.32.6.3
>= 2.7.0, < 2.7.12.7.1
Details and references

More TensorFlow advisories

All TensorFlow
Advisory
Use after free in `DecodePng` kernel
High7.6Feb 9, 2022
Out of bounds write in Tensorflow
High8.8Feb 9, 2022
Reachable Assertion in Tensorflow
High6.5Feb 9, 2022
Insecure temporary file in Tensorflow
High7.1Feb 9, 2022
Integer overflow in Tensorflow
High7.6Feb 9, 2022
Out of bounds write in TFLite
High8.8Feb 9, 2022

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.