CVE-2020-15202: Integer truncation in Shard API usage
Vulnerability summary
CVE-2020-15202 is a critical (CVSS 9.0) Numeric Truncation Error vulnerability in google tensorflow. EPSS estimates a 1.29% chance of exploitation in the next 30 days, higher than 71.1% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 25-09-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 3 sources · 3 versions- OSV · PypiEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
1.29%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.29% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundTensorflow
Maturity: poc
Weaknesses
CWE · root cause- CWE-197Numeric Truncation ErrorTruncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.
- CWE-754Improper Check for Unusual or Exceptional ConditionsThe product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
PyPI3 products
- tensorflow< 1.15.4 | ≥ 2.0.0, < 2.0.3 | ≥ 2.1.0, < 2.1.2 | ≥ 2.2.0, < 2.2.1 | < ca8c013b5e97b1373b3bb1c97ea655e69f31a575 | ≥ 2.3.0, < 2.3.1
- tensorflow-cpu< 1.15.4 | ≥ 2.0.0, < 2.0.3 | ≥ 2.1.0, < 2.1.2 | ≥ 2.2.0, < 2.2.1 | < ca8c013b5e97b1373b3bb1c97ea655e69f31a575 | ≥ 2.3.0, < 2.3.1
- tensorflow-gpu< 1.15.4 | ≥ 2.0.0, < 2.0.3 | ≥ 2.1.0, < 2.1.2 | ≥ 2.2.0, < 2.2.1 | < ca8c013b5e97b1373b3bb1c97ea655e69f31a575 | ≥ 2.3.0, < 2.3.1
Google1 product
- tensorflow< 1.15.4 | ≥ 2.0.0, < 2.0.3 | ≥ 2.1.0, < 2.1.2 | ≥ 2.2.0, < 2.2.1 | ≥ 2.3.0, < 2.3.1
Opensuse1 product
- leapEOL15.2
Tensorflow1 product
- tensorflow< 1.15.4 | ≥ 2.0.0, < 2.0.3 | ≥ 2.1.0, < 2.1.2 | ≥ 2.2.0, < 2.2.1 | ≥ 2.3.0, < 2.3.1
4 vendors · 6 products
References
10 links- github.com/tensorflow/tensorflow/security/advisories/GHSA-h6fg-mjxg-hqq4X Refsource CONFIRMWEBAdvisoryExploitThird Party Advisory
- github.com/tensorflow/tensorflow/commit/27b417360cbd671ef55915e4bb6bb06af8b8a832X Refsource MISCWEBFIXPatchThird Party Advisory
- github.com/tensorflow/tensorflow/commit/ca8c013b5e97b1373b3bb1c97ea655e69f31a575X Refsource MISCWEBFIXPatchThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.htmlVendor AdvisoryX Refsource SUSEWEBMailing ListThird Party Advisory