9

CVE-2020-15202: Integer truncation in Shard API usage

Modified
AliasesGHSA-h6fg-mjxg-hqq4BIT-tensorflow-2020-15202PYSEC-2020-125
Published 25-09-2020Last modified 04-08-2024

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.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.0/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.29%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 25-09-2020
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Tensorflow

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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
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