CVE-2021-37680

Source
https://cve.org/CVERecord?id=CVE-2021-37680
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37680.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37680
Aliases
Downstream
Related
Published
2021-08-12T22:15:08.763Z
Modified
2026-04-11T16:26:19.571602Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of fully connected layers in TFLite is vulnerable to a division by zero error. We have patched the issue in GitHub commit 718721986aa137691ee23f03638867151f74935f. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Introduced
Fixed
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.4"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.5.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc2"
        }
    ]
}

Affected versions

0.*
0.5.0
0.6.0
v1.*
v1.1.0-rc1
v1.1.0-rc2
v1.12.1
v1.6.0-rc1
v1.9.0-rc2
v2.*
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.4.0
v2.4.1
v2.4.2
v2.5.0
v2.5.0-rc0
v2.5.0-rc1
v2.5.0-rc2
v2.5.0-rc3
v2.6.0-rc0
v2.6.0-rc1
v2.6.0-rc2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37680.json"
vanir_signatures_modified
"2026-04-11T16:26:19Z"
vanir_signatures
[
    {
        "source": "https://github.com/tensorflow/tensorflow/commit/718721986aa137691ee23f03638867151f74935f",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2021-37680-7d2211ed",
        "digest": {
            "length": 4819.0,
            "function_hash": "172848350254184907259319458722765284503"
        },
        "signature_type": "Function",
        "target": {
            "file": "tensorflow/lite/kernels/fully_connected.cc",
            "function": "PrepareImpl"
        }
    },
    {
        "source": "https://github.com/tensorflow/tensorflow/commit/718721986aa137691ee23f03638867151f74935f",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2021-37680-a894d2ce",
        "digest": {
            "line_hashes": [
                "3753256978164504196740599769978662731",
                "133502390930098452029117993448534315671",
                "319168274365729855471555314109120999257",
                "17543167403386656668174520573130507621"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "target": {
            "file": "tensorflow/lite/kernels/fully_connected.cc"
        }
    }
]