Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-26271

MEDIUM 4.4EPSS 7%

Heap out of bounds access in MakeEdge in TensorFlow

Also known as BIT-tensorflow-2020-26271, GHSA-q263-fvxm-m5mw, PYSEC-2020-257, PYSEC-2020-302, PYSEC-2020-337

Mitigation

  • Upgrade tensorflow to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).
  • Upgrade tensorflow-cpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).
  • Upgrade tensorflow-gpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).

Who should check

  • Projects that depend on PyPI package tensorflow (< 1.15.5)
  • Projects that depend on PyPI package tensorflow-cpu (< 1.15.5)
  • Projects that depend on PyPI package tensorflow-gpu (< 1.15.5)
  • Anyone running tensorflow < 1.15.5; >= 2.0.0, < 2.0.4; >= 2.1.0, < 2.1.3; >= 2.2.0, < 2.2.2; >= 2.3.0, < 2.3.2

Vulnerability facts

Affected
tensorflow < 1.15.5; tensorflow-cpu < 1.15.5; tensorflow-gpu < 1.15.5
Fixed in
1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
CWE
CWE-125
Published
Modified

Description

In affected versions of TensorFlow under certain cases, loading a saved model can result in accessing uninitialized memory while building the computation graph. The MakeEdge function creates an edge between one output tensor of the src node (given by output_index) and the input slot of the dst node (given by input_index). This is only possible if the types of the tensors on both sides coincide, so the function begins by obtaining the corresponding DataType values and comparing these for equality. However, there is no check that the indices point to inside of the arrays they index into. Thus, this can result in accessing data out of bounds of the corresponding heap allocated arrays. In most scenarios, this can manifest as unitialized data access, but if the index points far away from the boundaries of the arrays this can be used to leak addresses from the library. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI tensorflow< 1.15.51.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2osv
PyPI tensorflow-cpu< 1.15.51.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2osv
PyPI tensorflow-gpu< 1.15.51.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2osv
tensorflow< 1.15.5; >= 2.0.0, < 2.0.4; >= 2.1.0, < 2.1.3; >= 2.2.0, < 2.2.2; >= 2.3.0, < 2.3.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2020-26271.md
Affected: tensorflow < 1.15.5; tensorflow-cpu < 1.15.5; tensorflow-gpu < 1.15.5
Fixed in: 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2

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.

References

FAQ

Is CVE-2020-26271 being exploited?

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

How serious is CVE-2020-26271?

Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2020-26271?

tensorflow < 1.15.5; tensorflow-cpu < 1.15.5; tensorflow-gpu < 1.15.5.

Is there a fix for CVE-2020-26271?

Yes. Fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2. Upgrade tensorflow to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line). Upgrade tensorflow-cpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line). Upgrade tensorflow-gpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).

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

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.

Sponsors