CVE-2021-41227: TensorFlow - Information Disclosure
- Cve: CVE-2021-41227
- Name: TensorFlow - Information Disclosure
- Description: TensorFlow is an open source platform for machine learning. In affected versions the `ImmutableConst` operation in TensorFlow can be tricked into reading arbitrary memory contents. This is because the `tstring` TensorFlow string class has a special case for memory mapped strings but the operation itself does not offer any support for this datatype. 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: Attackers can read sensitive memory contents, potentially leading to information disclosure or data leakage.
- Remediation: Update to TensorFlow 2.7.0 or cherry-pick the fix on versions 2.6.1, 2.5.2, and 2.4.4.
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00238
- Epss percentile: 0.14883
- Assignee: [email protected]
- Published at: 2021-11-05T23:15:08Z
- Age in days: 1845
- Modified at: 2026-06-17T04:08:08Z
- 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-2021-41227
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, 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-j8c8-67vp-6mx7 | nvd | 2021-11-05 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/tensorflow/tensorflow/commit/1cb6bb6c2a6019417c9adaf9e6843ba75ee2580b | Patch, Third Party Advisory |
| https://github.com/tensorflow/tensorflow/commit/3712a2d3455e6ccb924daa5724a3652a86f6b585 | Patch, Third Party Advisory |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-j8c8-67vp-6mx7 | Exploit, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| google:tensorflow | = 2.7.0 rc0; = 2.7.0 rc1; >= 2.6.0, < 2.6.1; >= 2.5.0, < 2.5.2; >= 2.4.0, < 2.4.4 | no | nvd | /v1/products/google/tensorflow |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| tensorflow/tensorflow | commit, fix, 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