CVE-2021-29589

Source
https://cve.org/CVERecord?id=CVE-2021-29589
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29589.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29589
Aliases
Related
Published
2021-05-14T20:15:14.770Z
Modified
2026-02-16T07:50:19.690617Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. The reference implementation of the GatherNd TFLite operator is vulnerable to a division by zero error(https://github.com/tensorflow/tensorflow/blob/0d45ea1ca641b21b73bcf9c00e0179cda284e7e7/tensorflow/lite/kernels/internal/reference/reference_ops.h#L966). An attacker can craft a model such that params input would be an empty tensor. In turn, params_shape.Dims(.) would be zero, in at least one dimension. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29589.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "15484346280628416796936893249668265531",
                "208014940439801778182319865846653766289",
                "240853923773169278026140225358180589397"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "id": "CVE-2021-29589-68decf51",
        "source": "https://github.com/tensorflow/tensorflow/commit/8e45822aa0b9f5df4b4c64f221e64dc930a70a9d",
        "target": {
            "file": "tensorflow/lite/kernels/gather_nd.cc"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 657.0,
            "function_hash": "190580954927247045390758115222122567406"
        },
        "signature_type": "Function",
        "id": "CVE-2021-29589-a5844866",
        "source": "https://github.com/tensorflow/tensorflow/commit/8e45822aa0b9f5df4b4c64f221e64dc930a70a9d",
        "target": {
            "function": "Eval",
            "file": "tensorflow/lite/kernels/gather_nd.cc"
        }
    }
]