CVE-2018-21233 Out-of-bounds read in TensorFlow possibly causing disclosure of the contents of process memory.
An integer overflow in TensorFlow's BMP decoder allows attackers to read process memory contents via a crafted image.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-21233?
CVE-2018-21233 is a medium-severity vulnerability in Google Tensorflow, published on 4 May 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
TensorFlow before 1.7.0 has an integer overflow that causes an out-of-bounds read, possibly causing disclosure of the contents of process memory. This occurs in the DecodeBmp feature of the BMP decoder in core/kernels/decode_bmp_op.cc.
Weakness: CWE-125
Which versions are affected by CVE-2018-21233?
7 open source packages ship an affected version, including tensorflow, tensorflow-cpu and tensorflow-gpu. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tensorflow PyPI | All versions | 1.7.0 |
tensorflow PyPI | All versions | 1.7.0 |
tensorflow PyPI | All versions | 1.7.0 |
tensorflow-cpu PyPI | All versions | 1.7.0 |
tensorflow-gpu PyPI | All versions | 1.7.0 |
tensorflow-gpu PyPI | All versions | 1.7.0 |
1 more packages
tensorflow-gpu PyPI | All versions | 1.7.0 |
Products include Google Tensorflow.
How do I fix CVE-2018-21233?
Upgrade tensorflow to 1.7.0 or later.
Is CVE-2018-21233 being exploited?
There is no known exploitation of CVE-2018-21233 in the wild and no public exploit code.
Other vulnerabilities in Google Tensorflow
- CVE-2023-25668 TensorFlow vulnerable to heap out-of-buffer read in the QuantizeAndDequantize operation
- CVE-2018-7575 Integer Overflow or Wraparound in Google TensorFlow
- CVE-2021-37678 Arbitrary code execution due to YAML deserialization
- CVE-2021-35958 Path traversal in n/a
- CVE-2020-15202 Integer truncation in Shard API usage
Sources
Also known as GHSA-h98h-8mxr-m8gx, PYSEC-2020-253, PYSEC-2020-269, PYSEC-2020-304.