Vulnerabilities / CVE-2020-15202

critical

CVE-2020-15202

Integer truncation in Shard API usage

Published Modified CWE 197, 754
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
GHSA7.1CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Bitnami9.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by GHSA (high).

Description

In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `Shard` API in TensorFlow expects the last argument to be a function taking two `int64` (i.e., `long long`) arguments. However, there are several places in TensorFlow where a lambda taking `int` or `int32` arguments is being used. In these cases, if the amount of work to be parallelized is large enough, integer truncation occurs. Depending on how the two arguments of the lambda are used, this can result in segfaults, read/write outside of heap allocated arrays, stack overflows, or data corruption. The issue is patched in commits 27b417360cbd671ef55915e4bb6bb06af8b8a832 and ca8c013b5e97b1373b3bb1c97ea655e69f31a575, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasetensorflow1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
pip::GitHub Security Advisory piptensorflow, tensorflow-cpu, tensorflow-gpu1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
Show all 4 entries from 2 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasetensorflow1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
pip::GitHub Security Advisory piptensorflow1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
pip::GitHub Security Advisory piptensorflow-cpu1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1
pip::GitHub Security Advisory piptensorflow-gpu1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.