Heap out of bounds read in filesystem glob matching in TensorFlow
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-125 and the CVSS impact.
Summary
In TensorFlow release candidate versions 2.4.0rc*, the general implementation for matching filesystem paths to globbing pattern is vulnerable to an access out of bounds of the array holding the directories. There are multiple invariants and preconditions that are assumed by the parallel implementation of GetMatchingPaths but are not verified by the PRs introducing it (#40861 and #44310). Thus, we are completely rewriting the implementation to fully specify and validate these. This is patched in version 2.4.0. This issue only impacts master branch and the release candidates for TF version 2.4. The final release of the 2.4 release will be patched.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tensorflow | all versions | — | No fix listed | CNA | |
| — | tensorflow (PyPI) | 2.4.0rc0 to before 2.4.0 | 2.4.0 | Patch available | GHSA-9jjw-hf72-3mxw |
| — | tensorflow-cpu (PyPI) | 2.4.0rc0 to before 2.4.0 | 2.4.0 | Patch available | GHSA-9jjw-hf72-3mxw |
| — | tensorflow-gpu (PyPI) | 2.4.0rc0 to before 2.4.0 | 2.4.0 | Patch available | GHSA-9jjw-hf72-3mxw |
- tensorflow VendorGoogle Affected all versions Fixed in — No fix listed CNA
- tensorflow (PyPI) Vendor— Affected 2.4.0rc0 to before 2.4.0 Fixed in 2.4.0 Patch available GHSA-9jjw-hf72-3mxw
- tensorflow-cpu (PyPI) Vendor— Affected 2.4.0rc0 to before 2.4.0 Fixed in 2.4.0 Patch available GHSA-9jjw-hf72-3mxw
- tensorflow-gpu (PyPI) Vendor— Affected 2.4.0rc0 to before 2.4.0 Fixed in 2.4.0 Patch available GHSA-9jjw-hf72-3mxw
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:google:tensorflow:2.4.0:rc0:*:*:*:*:*:* | 2.4.0 rc0 | Vulnerable | |
| cpe:2.3:a:google:tensorflow:2.4.0:rc1:*:*:*:*:*:* | 2.4.0 rc1 | Vulnerable | |
| cpe:2.3:a:google:tensorflow:2.4.0:rc2:*:*:*:*:*:* | 2.4.0 rc2 | Vulnerable | |
| cpe:2.3:a:google:tensorflow:2.4.0:rc3:*:*:*:*:*:* | 2.4.0 rc3 | Vulnerable | |
| cpe:2.3:a:google:tensorflow:2.4.0:rc4:*:*:*:*:*:* | 2.4.0 rc4 | Vulnerable |
- cpe:2.3:a:google:tensorflow:2.4.0:rc0:*:*:*:*:*:* Versions 2.4.0 rc0 Vulnerable ·Google
- cpe:2.3:a:google:tensorflow:2.4.0:rc1:*:*:*:*:*:* Versions 2.4.0 rc1 Vulnerable ·Google
- cpe:2.3:a:google:tensorflow:2.4.0:rc2:*:*:*:*:*:* Versions 2.4.0 rc2 Vulnerable ·Google
- cpe:2.3:a:google:tensorflow:2.4.0:rc3:*:*:*:*:*:* Versions 2.4.0 rc3 Vulnerable ·Google
- cpe:2.3:a:google:tensorflow:2.4.0:rc4:*:*:*:*:*:* Versions 2.4.0 rc4 Vulnerable ·Google
Remediation
- Fix · GHSA-9jjw-hf72-3mxw tensorflow (PyPI) Fixed in 2.4.0 Advisory →
- Fix · GHSA-9jjw-hf72-3mxw tensorflow-cpu (PyPI) Fixed in 2.4.0 Advisory →
- Fix · GHSA-9jjw-hf72-3mxw tensorflow-gpu (PyPI) Fixed in 2.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-26269
- 2026-10-03 Alias added: GHSA-9jjw-hf72-3mxw
References
Other 8
- https://github.com/tensorflow/tensorflow/pull/40861
- https://github.com/tensorflow/tensorflow/pull/44310
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-300.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-335.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-141.yaml
- https://github.com/tensorflow/tensorflow
- https://github.com/tensorflow/tensorflow/blob/458c6260265c46ebaf18052d6c61aea4b6b40926/tensorflow/core/platform/file_system_helper.cc#L106
- https://github.com/tensorflow/tensorflow/blob/458c6260265c46ebaf18052d6c61aea4b6b40926/tensorflow/core/platform/file_system_helper.cc#L127
More Google Tensorflow vulnerabilities
- TI-2022-20241 FractionalMaxPool and FractionalAVGPool heap out-of-bounds acess in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07640 Integer overflow in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07627 Out of bounds read and write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07619 Out of bounds write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07613 Read and Write outside of bounds in TFLite CVSS 3.1HIGH 8.8
- TI-2022-07612 Integer overflow in TFLite CVSS 3.1HIGH 8.8
Sources
- CVE-2020-26269 · CVE Program
- CVE-2020-26269 · NVD
- FIRST EPSS
- GHSA-9jjw-hf72-3mxw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences