CVE-2018-21233 Out-of-bounds read in TensorFlow possibly causing disclosure of the contents of process memory.

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
tensorflow PyPIAll versions1.7.0
tensorflow PyPIAll versions1.7.0
tensorflow PyPIAll versions1.7.0
tensorflow-cpu PyPIAll versions1.7.0
tensorflow-gpu PyPIAll versions1.7.0
tensorflow-gpu PyPIAll versions1.7.0
1 more packages
tensorflow-gpu PyPIAll versions1.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.

All Google Tensorflow vulnerabilities

Sources

Also known as GHSA-h98h-8mxr-m8gx, PYSEC-2020-253, PYSEC-2020-269, PYSEC-2020-304.

Is CVE-2018-21233 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free