CVE-2021-37636

Source
https://cve.org/CVERecord?id=CVE-2021-37636
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37636.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37636
Aliases
Downstream
Related
Published
2021-08-12T18:15:10.377Z
Modified
2026-08-07T17:28:11.073840Z
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 tf.raw_ops.SparseDenseCwiseDiv is vulnerable to a division by 0 error. The implementation uses a common class for all binary operations but fails to treat the division by 0 case separately. We have patched the issue in GitHub commit d9204be9f49520cdaaeb2541d1dc5187b23f31d9. 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
Database specific
Show details
{
    "cpe": [
        "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:*",
        "cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:*"
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.4"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.3"
        },
        {
            "introduced": "2.5.0"
        },
        {
            "last_affected": "2.5.0"
        },
        {
            "introduced": "2.6.0-rc0"
        },
        {
            "last_affected": "2.6.0-rc0"
        },
        {
            "introduced": "2.6.0-rc1"
        },
        {
            "last_affected": "2.6.0-rc1"
        },
        {
            "introduced": "2.6.0-rc2"
        },
        {
            "last_affected": "2.6.0-rc2"
        }
    ]
}

Affected versions

2.*
2.5.0
2.6.0-rc0
2.6.0-rc1
2.6.0-rc2
v2.*
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.4.0
v2.4.1
v2.4.2

Database specific

vanir_signatures
[
    {
        "target": {
            "file": "tensorflow/core/kernels/sparse_dense_binary_op_shared.cc"
        },
        "deprecated": false,
        "id": "CVE-2021-37636-86b84c5a",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "214174012893009707425490939147929290755",
                "291723796129122211529807659750605483738",
                "108351397524048836121294337767006970979",
                "149679755399360352687906977100292515212",
                "229826355020750467137916988337092964035",
                "108373383663901032416847547004396707641",
                "23723156289159763665643677654502971707"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/d9204be9f49520cdaaeb2541d1dc5187b23f31d9"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37636.json"
vanir_signatures_modified
"2026-08-07T17:28:11Z"