CVE-2020-26269
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Arch Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Fixed | 2.4.0-1 |
Debian Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| sid | Fixed | 0 |
| forky | Fixed | 0 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | tensorflow | >=2.4.0rc0,<2.4.0 | 2.4.0 |
| PyPI | tensorflow-cpu | >=2.4.0rc0,<2.4.0 | 2.4.0 |
| PyPI | tensorflow-gpu | >=2.4.0rc0,<2.4.0 | 2.4.0 |
| PyPI | tensorflow | <8b5b9dc96666a3a5d27fad7179ff215e3b74b67c||>=2.4.0rc0,<2.4.0 | 8b5b9dc96666a3a5d27fad7179ff215e3b74b67c |
| PyPI | tensorflow-gpu | <8b5b9dc96666a3a5d27fad7179ff215e3b74b67c||>=2.4.0rc0,<2.4.0 | 8b5b9dc96666a3a5d27fad7179ff215e3b74b67c |
| PyPI | tensorflow-cpu | <8b5b9dc96666a3a5d27fad7179ff215e3b74b67c||>=2.4.0rc0,<2.4.0 | 8b5b9dc96666a3a5d27fad7179ff215e3b74b67c |
References
- https://security.archlinux.org/ASA-202012-22
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9jjw-hf72-3mxw
- https://nvd.nist.gov/vuln/detail/CVE-2020-26269
- https://github.com/tensorflow/tensorflow/pull/40861
- https://github.com/tensorflow/tensorflow/pull/44310
- https://github.com/tensorflow/tensorflow/commit/8b5b9dc96666a3a5d27fad7179ff215e3b74b67c
- 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
- https://security-tracker.debian.org/tracker/CVE-2020-26269
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.