CVE-2021-37691

Source
https://cve.org/CVERecord?id=CVE-2021-37691
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37691.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37691
Aliases
Downstream
Related
Published
2021-08-12T23:15:08.870Z
Modified
2026-03-13T22:14:08.704476Z
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 an attacker can craft a TFLite model that would trigger a division by zero error in LSH implementation. We have patched the issue in GitHub commit 0575b640091680cfb70f4dd93e70658de43b94f9. The fix will be included in TensorFlow 2.6.0. We will also cherrypick thiscommit 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"
        }
    ]
}

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "deprecated": false,
        "id": "CVE-2021-37691-2e0e943c",
        "target": {
            "file": "tensorflow/lite/kernels/lsh_projection.cc",
            "function": "Resize"
        },
        "digest": {
            "length": 1185.0,
            "function_hash": "153765026720717873553622162809517774561"
        },
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/0575b640091680cfb70f4dd93e70658de43b94f9"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "id": "CVE-2021-37691-9948d186",
        "target": {
            "file": "tensorflow/lite/kernels/lsh_projection.cc"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "100958010626960290937932643431668470913",
                "91363597158062884554777960708974968509",
                "256865439124341810872312277664259650505",
                "202176865526868331268314586827147549458",
                "272023360593352511251123088612280180723"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/0575b640091680cfb70f4dd93e70658de43b94f9"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37691.json"