CVE-2021-41226: TensorFlow - Out of Bounds Read/Write
- Cve: CVE-2021-41226
- Name: TensorFlow - Out of Bounds Read/Write
- Description: TensorFlow is an open source platform for machine learning. In affected versions the implementation of `SparseBinCount` is vulnerable to a heap OOB access. This is because of missing validation between the elements of the `values` argument and the shape of the sparse output. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
- Impact: Potential for memory corruption leading to crashes or arbitrary code execution on the affected system.
- Remediation: Update to TensorFlow 2.7.0 or cherry-pick the fix into TensorFlow 2.6.1, 2.5.2, and 2.4.4.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Epss score: 0.00208
- Epss percentile: 0.10866
- Assignee: [email protected]
- Published at: 2021-11-05T21:15:09Z
- Age in days: 1845
- Modified at: 2026-06-17T04:08:08Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41226
- 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-125 | Out-of-bounds Read |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-374m-jm66-3vj8 | nvd | 2021-11-05 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/tensorflow/tensorflow/commit/f410212e373eb2aec4c9e60bf3702eba99a38aba | nvd | Patch, Third Party Advisory |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-374m-jm66-3vj8 | nvd | Exploit, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| google:tensorflow | >= 2.6.0, < 2.6.1; >= 2.5.0, < 2.5.2; < 2.4.4 | no | nvd | /v1/products/google/tensorflow |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| tensorflow/tensorflow | commit, package, security_advisory | yes | /v1/repositories/tensorflow/tensorflow |
Index
- Repositories: 347
- Repositories high signal: 134
- Packages: 3
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-11-05
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts