CVE-2021-29604

Source
https://cve.org/CVERecord?id=CVE-2021-29604
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29604.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29604
Aliases
Related
Published
2021-05-14T20:15:15.620Z
Modified
2026-02-16T07:52:48.561586Z
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. The TFLite implementation of hashtable lookup is vulnerable to a division by zero error(https://github.com/tensorflow/tensorflow/blob/1a8e885b864c818198a5b2c0cbbeca5a1e833bc8/tensorflow/lite/kernels/hashtable_lookup.cc#L114-L115) An attacker can craft a model such that values's first dimension would be 0. 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-29604.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 1400.0,
            "function_hash": "191081793026311531790949102634207843258"
        },
        "signature_type": "Function",
        "id": "CVE-2021-29604-86a16a1e",
        "source": "https://github.com/tensorflow/tensorflow/commit/5117e0851348065ed59c991562c0ec80d9193db2",
        "target": {
            "function": "Eval",
            "file": "tensorflow/lite/kernels/hashtable_lookup.cc"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "113846231299445093603067850235213429916",
                "78659140534013114368724993322264428562",
                "56257027727385067485979458085631788381",
                "102604769656003669449050504601508926916"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "id": "CVE-2021-29604-ff02e73e",
        "source": "https://github.com/tensorflow/tensorflow/commit/5117e0851348065ed59c991562c0ec80d9193db2",
        "target": {
            "file": "tensorflow/lite/kernels/hashtable_lookup.cc"
        }
    }
]