Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-23563— Insecure temporary file in Tensorflow

Quick assessment

Affected
tensorflow tensorflow
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Google TensorFlow是美国谷歌(Google)公司的一套用于机器学习的端到端开源平台。 Tensorflow 存在安全漏洞,该漏洞源于 TensorFlow 使用 tempfile.mktemp 来创建临时文件。虽然这在测试中是可以接受的,但在实用程序和库中这是危险的,因为不同的进程可以在检查 mktemp 中的文件名和通过后续操作实际创建文件之间创建文件(TOC/TOU 类型弱点)。

CVSS 7.1 · High EPSS 0.11% · P1

Possible ATT&CK Techniques 1 AI

T1564.004 · NTFS File Attributes
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-23563

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Insecure temporary file in Tensorflow
Source: CVE Program / CVE List V5
Vulnerability Description
Tensorflow is an Open Source Machine Learning Framework. In multiple places, TensorFlow uses `tempfile.mktemp` to create temporary files. While this is acceptable in testing, in utilities and libraries it is dangerous as a different process can create the file between the check for the filename in `mktemp` and the actual creation of the file by a subsequent operation (a TOC/TOU type of weakness). In several instances, TensorFlow was supposed to actually create a temporary directory instead of a file. This logic bug is hidden away by the `mktemp` function usage. We have patched the issue in several commits, replacing `mktemp` with the safer `mkstemp`/`mkdtemp` functions, according to the usage pattern. Users are advised to upgrade as soon as possible.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
检查时间与使用时间(TOCTOU)的竞争条件
Source: CVE Program / CVE List V5
Vulnerability Title
Google Tensorflow 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Google TensorFlow是美国谷歌(Google)公司的一套用于机器学习的端到端开源平台。 Tensorflow 存在安全漏洞,该漏洞源于 TensorFlow 使用 tempfile.mktemp 来创建临时文件。虽然这在测试中是可以接受的,但在实用程序和库中这是危险的,因为不同的进程可以在检查 mktemp 中的文件名和通过后续操作实际创建文件之间创建文件(TOC/TOU 类型弱点)。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
tensorflow tensorflow >= 2.7.0, < 2.7.1 -

II. Public POCs for CVE-2022-23563

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-23563

登录查看更多情报信息。

Vendor Advisories for CVE-2022-23563 (1)

Same Patch Batch · tensorflow · 2022-02-04 · 36 CVEs total

CVE-2022-23561 8.8 HIGH Out of bounds write in TFLite
CVE-2022-23594 8.8 HIGH Out of bounds read in Tensorflow
CVE-2022-23587 8.8 HIGH Integer overflow in Tensorflow
CVE-2022-23559 8.8 HIGH Integer overflow in TFLite
CVE-2022-23560 8.8 HIGH Read and Write outside of bounds in TFLite
CVE-2022-23574 8.8 HIGH Out of bounds read and write in Tensorflow
CVE-2022-23566 8.8 HIGH Out of bounds write in Tensorflow
CVE-2022-23592 8.1 HIGH Out of bounds read in Tensorflow
CVE-2022-23558 7.6 HIGH Integer overflow in TFLite array creation
CVE-2022-23562 7.6 HIGH Integer overflow in Tensorflow
CVE-2022-23584 7.6 HIGH Use after free in `DecodePng` in Tensorflow
CVE-2022-23573 7.6 HIGH Uninitialized variable access in Tensorflow
CVE-2022-23591 7.5 HIGH Stack overflow in Tensorflow
CVE-2022-23575 6.5 MEDIUM Integer overflow in Tensorflow
CVE-2022-23557 6.5 MEDIUM Division by zero in TFLite
CVE-2022-23570 6.5 MEDIUM Null-dereference in Tensorflow
CVE-2022-23564 6.5 MEDIUM Reachable Assertion in Tensorflow
CVE-2022-23565 6.5 MEDIUM `CHECK`-failures in Tensorflow
CVE-2022-23582 6.5 MEDIUM `CHECK`-failures in `TensorByteSize` in Tensorflow
CVE-2022-23583 6.5 MEDIUM `CHECK`-failures in binary ops in Tensorflow

Showing top 20 of 36 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-23563

No comments yet


Leave a comment