---
id: CVE-2022-23569
aliases:
  - GHSA-qj5r-f9mv-rffh
  - BIT-tensorflow-2022-23569
  - PYSEC-2022-133
  - PYSEC-2022-78
  - PYSEC-2026-3230
title: '`CHECK`-fails when building invalid tensor shapes in Tensorflow'
summary: '`CHECK`-fails when building invalid tensor shapes in Tensorflow'
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
vendor: tensorflow
product: tensorflow
ecosystem: pip
affected:
  - tensorflow < 2.5.3
  - 'tensorflow >= 2.6.0, < 2.6.3'
  - 'tensorflow >= 2.7.0, < 2.7.1'
  - tensorflow-cpu < 2.5.3
  - 'tensorflow-cpu >= 2.6.0, < 2.6.3'
  - 'tensorflow-cpu >= 2.7.0, < 2.7.1'
  - tensorflow-gpu < 2.5.3
  - 'tensorflow-gpu >= 2.6.0, < 2.6.3'
  - 'tensorflow-gpu >= 2.7.0, < 2.7.1'
patched:
  - tensorflow 2.5.3
  - tensorflow 2.6.3
  - tensorflow 2.7.1
  - tensorflow-cpu 2.5.3
  - tensorflow-cpu 2.6.3
  - tensorflow-cpu 2.7.1
  - tensorflow-gpu 2.5.3
  - tensorflow-gpu 2.6.3
  - tensorflow-gpu 2.7.1
published: '2022-02-09'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:17.257988129Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-qj5r-f9mv-rffh'
references:
  - url: >-
      https://github.com/tensorflow/tensorflow/security/advisories/GHSA-qj5r-f9mv-rffh
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-23569'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-78.yaml
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-133.yaml
  - url: 'https://github.com/tensorflow/tensorflow'
  - url: >-
      https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md
tags:
  - osv
  - pip
epss: 0.00462
epssPercentile: 0.39291
ingestedAt: '2026-07-13T18:58:02.049Z'
---

## Overview

### Impact 
Multiple operations in TensorFlow can be used to trigger a denial of service via `CHECK`-fails (i.e., assertion failures). This is similar to [TFSA-2021-198](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md) (CVE-2021-41197) and has similar fixes.

### Patches
We have patched the reported issues in multiple GitHub commits. It is possible that other similar instances exist in TensorFlow, we will issue fixes as these are discovered.

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 Faysal Hossain Shezan from University of Virginia.

## Affected packages

- `tensorflow < 2.5.3`
- `tensorflow >= 2.6.0, < 2.6.3`
- `tensorflow >= 2.7.0, < 2.7.1`
- `tensorflow-cpu < 2.5.3`
- `tensorflow-cpu >= 2.6.0, < 2.6.3`
- `tensorflow-cpu >= 2.7.0, < 2.7.1`
- `tensorflow-gpu < 2.5.3`
- `tensorflow-gpu >= 2.6.0, < 2.6.3`
- `tensorflow-gpu >= 2.7.0, < 2.7.1`

## Remediation

Upgrade to a patched release:

- `tensorflow 2.5.3`
- `tensorflow 2.6.3`
- `tensorflow 2.7.1`
- `tensorflow-cpu 2.5.3`
- `tensorflow-cpu 2.6.3`
- `tensorflow-cpu 2.7.1`
- `tensorflow-gpu 2.5.3`
- `tensorflow-gpu 2.6.3`
- `tensorflow-gpu 2.7.1`
