CVE-2022-23585

Memory leak in decoding PNG images in Tensorflow

Tensorflow is an Open Source Machine Learning Framework. When decoding PNG images TensorFlow can produce a memory leak if the image is invalid. After calling `png::CommonInitDecode(..., &decode)`, the `decode` value contains allocated buffers which can only be freed by calling `png::CommonFreeDecode(&decode)`. However, several error case in the function implementation invoke the `OP_REQUIRES` macro which immediately terminates the execution of the function, without allowing for the memory free to occur. 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.


We have discovered 58 live websites that are affected by CVE-2022-23585.

Run a Free Instant Scan




Affected Software

Product  tensorflow
Category JavaScript Libraries
Vulnerable Domains58 live websites (25% of tensorflow install base)
Vulnerable Versions
  • from 0 through 2.5.3
  • from 2.6 through 2.6.3
  • from 2.7 through 2.7.1
Vulnerable Versions Count9 versions ( 64% of all versions)


Common Weakness Enumeration

CWE-401 Missing Release of Memory after Effective Lifetime



Details

  • Published - Feb 4, 2022
  • Updated - Apr 22, 2025

Website Distribution by Country

Number of websites using CVE-2022-23585
United States42 websites



Germany4 websites
Canada2 websites
India2 websites
Netherlands2 websites
Austria1 websites
Brazil1 websites
Chile1 websites
Cyprus1 websites
Denmark1 websites

Website Distribution by TLD

Number of websites using CVE-2022-23585
.com27 websites
.io2 websites
.org2 websites
.at1 websites
.ch1 websites
.com.br1 websites
.de1 websites
.dk1 websites
.net1 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2022-23585

Top websites that are affected by CVE-2022-23585. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
************.com United States***,***
*******.************.de Germany***,***
******.me United States*,***,***
***********.com United States*,***,***
************.com United States*,***,***
***********.com United States*,***,***
*******.**.kr Korea, South*,***,***
**********.com Netherlands*,***,***
******.com Canada*,***,***
*********.******.**********.org Germany*,***,***
See full domain list

FAQ

CVE-2022-23585 is Missing Release of Memory after Effective Lifetime in tensorflow
A total of 58 websites have been identified as vulnerable to CVE-2022-23585, based on global website indexing conducted by WebTechSurvey.
The tensorflow is affected by the CVE-2022-23585 vulnerability.
tensorflow versions up to 2.7.1 are vulnerable to CVE-2022-23585.
CVE-2022-23585 is resolved in version 2.7.1 of tensorflow.