CVE-2022-21727: TensorFlow - Integer Overflow
- Cve: CVE-2022-21727
- Name: TensorFlow - Integer Overflow
- Description: Tensorflow is an Open Source Machine Learning Framework. The implementation of shape inference for `Dequantize` is vulnerable to an integer overflow weakness. The `axis` argument can be `-1` (the default value for the optional argument) or any other positive value at most the number of dimensions of the input. Unfortunately, the upper bound is not checked, and, since the code computes `axis + 1`, an attacker can trigger an integer overflow. 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.
- Impact: Attackers can cause integer overflow, potentially leading to application crashes or undefined behavior.
- Remediation: Update to TensorFlow 2.8.0 or cherry-pick the fix into versions 2.7.1, 2.6.3, and 2.5.3.
- Vulnerability type: integer_overflow
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00665
- Epss percentile: 0.5251
- Assignee: [email protected]
- Published at: 2022-02-03T11:15:07Z
- Age in days: 1755
- Modified at: 2026-06-17T04:26:52Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21727
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/ops/array_ops.cc#L3001-L3034 | nvd | 2022-02-03 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/tensorflow/tensorflow/commit/b64638ec5ccaa77b7c1eb90958e3d85ce381f91b | Patch, Third Party Advisory |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-c6fh-56w7-fvjw | Patch, Third Party Advisory |
| https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/ops/array_ops.cc#L3001-L3034 | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| google:tensorflow | = 2.7.0; >= 2.6.0, <= 2.6.2; <= 2.5.2 | no | nvd | /v1/products/google/tensorflow |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| tensorflow/tensorflow | commit, security_advisory | yes | /v1/repositories/tensorflow/tensorflow |
Index
- Repositories: 352
- Repositories high signal: 135
- Packages: 3
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-02-03
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts