CVE-2022-23561: TensorFlow TFLite Model Arbitrary Write Vulnerability

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2022-23561: Out of bounds write in TFLite. Affects tensorflow across 3 version ranges.

< 2.5.3 >= 2.6.0, < 2.6.3 >= 2.7.0, < 2.7.1

Fixed in 2.5.3, 2.6.3 or 2.7.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-23561 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. This vulnerability affects the TFLite model in TensorFlow, which is used for deploying machine learning models on mobile and embedded devices.

Vulnerability Detail

An attacker can exploit this vulnerability by crafting a malicious TFLite model that triggers a write outside the bounds of an array in TFLite. Specifically, the attacker can overwrite the linked list used by the memory allocator. This can lead to an arbitrary write primitive under certain conditions. The impact of this vulnerability can be severe, as it allows an attacker to manipulate memory and potentially execute arbitrary code or cause a denial of service.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.5.3 2.5.3
  • >= 2.6.0, < 2.6.3 2.6.3
  • >= 2.7.0, < 2.7.1 2.7.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the official patches provided by the TensorFlow project.

Conclusion

The TensorFlow TFLite model arbitrary write vulnerability (CVE-2022-23561) poses a significant risk to systems utilizing TensorFlow for machine learning. It is crucial to update to the latest patched versions of TensorFlow to mitigate this vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open-source machine learning framework developed by Google. It provides tools and resources for building and deploying machine learning models.

TFLite is a component of TensorFlow that allows machine learning models to be deployed on mobile and embedded devices.

An attacker can exploit this vulnerability by crafting a malicious TFLite model that triggers a write outside the bounds of an array, allowing them to manipulate memory and potentially execute arbitrary code.

The impact of this vulnerability can be severe, as it allows an attacker to manipulate memory and potentially execute arbitrary code or cause a denial of service.

Users are advised to update their TensorFlow installations to the latest patched versions (2.8.0, 2.7.1, 2.6.3, or 2.5.3) to mitigate the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.5.3 2.5.3
  • >= 2.6.0, < 2.6.3 2.6.3
  • >= 2.7.0, < 2.7.1 2.7.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback