CVEMETERBack to radar
OFFICIAL RECORD · Python packages

CVE-2020-15214

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 8.1 · high

Out of bounds write in tensorflow-lite

In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger a write out bounds / segmentation fault if the segment ids are not sorted. Code assumes that the segment ids are in increasing order, using the last element of the tensor holding them to determine the dimensionality of output tensor. This results in allocating insufficient memory for the output tensor and in a write outside the bounds of the output array. This usually results in a segmentation fault, but depending on runtime conditions it can provide for a write gadget to be used in future memory corruption-based exploits. The issue is patched in commit 204945b19e44b57906c9344c0d00120eeeae178a and is released in TensorFlow versions 2.2.1, or 2.3.1. A potential workaround would be to add a custom `Verifier` to the model loading code to ensure that the segment ids are sorted, although this only handles the case when the segment ids are stored statically in the model. A similar validation could be done if the segment ids are generated at runtime between inference steps. If the segment ids are generated as outputs of a tensor during inference steps, then there are no possible workaround and users are advised to upgrade to patched code.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.671% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 8.1 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H
Assessment source · checked 2026-11-19T12:55:28.892Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:55:28.892ZCVE Program
epssverified2026-11-19T16:04:27.972ZFIRST EPSS
patchesverified2026-11-19T12:52:25.779ZOSV
affectedverified2026-11-19T12:55:28.892ZCVE Program
lifecycleverified2026-11-19T12:55:28.892ZCVE Program

Affected versions and configuration

tensorflow tensorflow; default status: unknown: >= 2.2.0, < 2.2.1 [affected; scheme: unspecified]; >= 2.3.0, < 2.3.1 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "tensorflow",
      "product": "tensorflow",
      "versions": [
        {
          "status": "affected",
          "version": ">= 2.2.0, < 2.2.1"
        },
        {
          "status": "affected",
          "version": ">= 2.3.0, < 2.3.1"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p2cq-cprg-frvm",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/tensorflow/tensorflow/commit/204945b19e44b57906c9344c0d00120eeeae178a",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-04T13:08:22.895Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-p2cq-cprg-frvm",
  "aliases": [
    "BIT-tensorflow-2020-15214",
    "CVE-2020-15214",
    "PYSEC-2020-137",
    "PYSEC-2020-294",
    "PYSEC-2020-329"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2.2.0"
            },
            {
              "fixed": "2.2.1"
            }
          ]
        }
      ],
      "package": {
        "name": "tensorflow",
        "purl": "pkg:pypi/tensorflow",
        "ecosystem": "PyPI"
      },
      "versions": [
        "2.2.0"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-p2cq-cprg-frvm/GHSA-p2cq-cprg-frvm.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2.3.0"
            },
            {
              "fixed": "2.3.1"
            }
          ]
        }
      ],
      "package": {
        "name": "tensorflow",
        "purl": "pkg:pypi/tensorflow",
        "ecosystem": "PyPI"
      },
      "versions": [
        "2.3.0"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-p2cq-cprg-frvm/GHSA-p2cq-cprg-frvm.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H"
    },
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p2cq-cprg-frvm",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15214",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/commit/00c7ed7ce81c2126ebc17dfe7073b5c0efd5ec0a",
      "type": "WEB"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/commit/204945b19e44b57906c9344c0d00120eeeae178a",
      "type": "WEB"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/commit/a4030d8ba3692c438997c27be2dd95f3d5f54827",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-294.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-329.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-137.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/blob/0e68f4d3295eb0281a517c3662f6698992b7b2cf/tensorflow/lite/kernels/internal/reference/reference_ops.h#L2625-L2631",
      "type": "WEB"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/blob/0e68f4d3295eb0281a517c3662f6698992b7b2cf/tensorflow/lite/kernels/segment_sum.cc#L39-L44",
      "type": "WEB"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-787"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "nvd_published_at": "2020-09-25T19:15:00Z",
    "github_reviewed_at": "2020-09-25T18:25:05Z"
  }
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "PYSEC-2020-137",
  "aliases": [
    "BIT-tensorflow-2020-15214",
    "CVE-2020-15214",
    "GHSA-p2cq-cprg-frvm",
    "PYSEC-2020-294",
    "PYSEC-2020-329"
  ],
  "affected": [
    {
      "ranges": [
        {
          "repo": "https://github.com/tensorflow/tensorflow",
          "type": "GIT",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "204945b19e44b57906c9344c0d00120eeeae178a"
            }
          ]
        },
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2.2.0"
            },
            {
              "fixed": "2.2.1"
            },
            {
              "introduced": "2.3.0"
            },
            {
              "fixed": "2.3.1"
            }
          ]
        }
      ],
      "package": {
        "name": "tensorflow",
        "purl": "pkg:pypi/tensorflow",
        "ecosystem": "PyPI"
      },
      "versions": [
        "2.2.0",
        "2.3.0"
      ],
      "database_specific": {
        "source": "https://github.com/pypa/advisory-database/blob/main/vulns/tensorflow/PYSEC-2020-137.yaml"
      }
    }
  ],
  "severity": [],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p2cq-cprg-frvm",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1",
      "type": "WEB"
    },
    {
      "url": "https://github.com/tensorflow/tensorflow/commit/204945b19e44b57906c9344c0d00120eeeae178a",
      "type": "FIX"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPyPI / packagetensorflowNot a distribution channel2.2.1Official record
ecosystem-boundaryPyPI / packagetensorflowNot a distribution channel2.3.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history