CVE-2022-23575

Source
https://cve.org/CVERecord?id=CVE-2022-23575
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-23575.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-23575
Aliases
Downstream
Related
Published
2022-02-04T22:32:23Z
Modified
2026-08-04T08:27:12Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Integer overflow in Tensorflow
Details

Tensorflow is an Open Source Machine Learning Framework. The implementation of OpLevelCostEstimator::CalculateTensorSize is vulnerable to an integer overflow if an attacker can create an operation which would involve a tensor with large enough number of elements. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-190"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23575.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "introduced":  "2.7.0"
                },
                {
                    "fixed":  "2.7.1"
                },
                {
                    "introduced":  "2.6.0"
                },
                {
                    "fixed":  "2.6.3"
                },
                {
                    "fixed":  "2.5.3"
                }
            ],
            "source":  "AFFECTED_FIELD"
        }
    ]
}
References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source":  "REFERENCES"
}

Affected versions

0.*
0.5.0
0.6.0
v1.*
v1.1.0-rc1
v1.1.0-rc2
v1.12.1
v1.6.0-rc1
v1.9.0-rc2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-23575.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "6867945618924244830991197170779640620",
                "2833316744254387015103601601470434976",
                "18836910587785092566775726218349368343",
                "330207264792585205922701984823353465725"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2022-23575-40317fdd",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/tensorflow/tensorflow/commit/fcd18ce3101f245b083b30655c27b239dc72221e",
        "target":  {
            "file":  "tensorflow/core/grappler/costs/op_level_cost_estimator.cc"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "275156724836927627735001893406593752028",
            "length":  276
        },
        "id":  "CVE-2022-23575-7eb8a34b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/tensorflow/tensorflow/commit/fcd18ce3101f245b083b30655c27b239dc72221e",
        "target":  {
            "file":  "tensorflow/core/grappler/costs/op_level_cost_estimator.cc",
            "function":  "OpLevelCostEstimator::CalculateTensorSize"
        }
    }
]
vanir_signatures_modified
"2026-08-04T08:27:12Z"