# CVE-2020-26269: Heap out of bounds read in filesystem glob matching in TensorFlow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-26)
- **CWE:** CWE-125
- **Aliases:** BIT-tensorflow-2020-26269, GHSA-9jjw-hf72-3mxw, PYSEC-2020-141, PYSEC-2020-300, PYSEC-2020-335
- **Published:** 2020-12-10T22:10:28.000Z
- **Modified:** 2026-09-10T03:49:46.420Z

## Who should check

- Projects that depend on PyPI package tensorflow (\>= 2.4.0rc0, \< 2.4.0)
- Projects that depend on PyPI package tensorflow-cpu (\>= 2.4.0rc0, \< 2.4.0)
- Projects that depend on PyPI package tensorflow-gpu (\>= 2.4.0rc0, \< 2.4.0)
- Anyone running tensorflow .4.0rc\*

## Description

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.

## Affected and fixed versions

- PyPI `tensorflow`: affected \>= 2.4.0rc0, \< 2.4.0; fixed 2.4.0 (osv)
- PyPI `tensorflow-cpu`: affected \>= 2.4.0rc0, \< 2.4.0; fixed 2.4.0 (osv)
- PyPI `tensorflow-gpu`: affected \>= 2.4.0rc0, \< 2.4.0; fixed 2.4.0 (osv)
- tensorflow: .4.0rc\* (cvelist)

## Mitigation

- Upgrade tensorflow to 2.4.0 or later.
- Upgrade tensorflow-cpu to 2.4.0 or later.
- Upgrade tensorflow-gpu to 2.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-26269. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-26269.md
Affected: tensorflow >= 2.4.0rc0, < 2.4.0; tensorflow-cpu >= 2.4.0rc0, < 2.4.0; tensorflow-gpu >= 2.4.0rc0, < 2.4.0
Fixed in: 2.4.0

Steps:
1. Search this machine and project for tensorflow (PyPI), tensorflow-cpu (PyPI), tensorflow-gpu (PyPI), tensorflow: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-26269 being exploited?

There is no confirmed exploitation: CVE-2020-26269 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-26269?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2020-26269?

tensorflow \>= 2.4.0rc0, \< 2.4.0; tensorflow-cpu \>= 2.4.0rc0, \< 2.4.0; tensorflow-gpu \>= 2.4.0rc0, \< 2.4.0.

### Is there a fix for CVE-2020-26269?

Yes. Fixed in 2.4.0. Upgrade tensorflow to 2.4.0 or later. Upgrade tensorflow-cpu to 2.4.0 or later. Upgrade tensorflow-gpu to 2.4.0 or later.

### How do I check if I'm affected by CVE-2020-26269?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9jjw-hf72-3mxw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-26269>
- patch: <https://github.com/tensorflow/tensorflow/commit/8b5b9dc96666a3a5d27fad7179ff215e3b74b67c>
- patch: <https://github.com/tensorflow/tensorflow/pull/40861>
- patch: <https://github.com/tensorflow/tensorflow/pull/44310>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-300.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-335.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-141.yaml>
- other: <https://github.com/tensorflow/tensorflow>
- other: <https://github.com/tensorflow/tensorflow/blob/458c6260265c46ebaf18052d6c61aea4b6b40926/tensorflow/core/platform/file_system_helper.cc#L106>
- other: <https://github.com/tensorflow/tensorflow/blob/458c6260265c46ebaf18052d6c61aea4b6b40926/tensorflow/core/platform/file_system_helper.cc#L127>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-26269>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9jjw-hf72-3mxw> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-141> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-300> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-335> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-26269> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-26269>
