CVE-2021-29592

Source
https://cve.org/CVERecord?id=CVE-2021-29592
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29592.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29592
Aliases
Related
Published
2021-05-14T20:15:15.070Z
Modified
2026-02-24T08:19:42.680256Z
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 fix for CVE-2020-15209(https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15209) missed the case when the target shape of Reshape operator is given by the elements of a 1-D tensor. As such, the fix for the vulnerability(https://github.com/tensorflow/tensorflow/blob/9c1dc920d8ffb4893d6c9d27d1f039607b326743/tensorflow/lite/core/subgraph.cc#L1062-L1074) allowed passing a null-buffer-backed tensor with a 1D shape. 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

vanir_signatures
[
    {
        "id": "CVE-2021-29592-6136519e",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "134966435749284529896685106725418560391",
                "195012807394744830882500001352287091943",
                "258943017488857489105184913070775176850",
                "262639945130873311081524216483142842635"
            ]
        },
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/f8378920345f4f4604202d4ab15ef64b2aceaa16",
        "signature_type": "Line",
        "target": {
            "file": "tensorflow/lite/core/subgraph.cc"
        }
    },
    {
        "id": "CVE-2021-29592-a2104606",
        "signature_version": "v1",
        "digest": {
            "function_hash": "88709668552099428651847384861280954811",
            "length": 2322.0
        },
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/f8378920345f4f4604202d4ab15ef64b2aceaa16",
        "signature_type": "Function",
        "target": {
            "file": "tensorflow/lite/core/subgraph.cc",
            "function": "Subgraph::Invoke"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29592.json"