CVE-2020-15214
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_MCVSS: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
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:28.892Z | CVE Program |
| epss | verified | 2026-11-19T16:04:27.972Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:25.779Z | OSV |
| affected | verified | 2026-11-19T12:55:28.892Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:28.892Z | CVE 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 JSONOSV · 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 JSONOSV · 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 JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | tensorflow | Not a distribution channel | 2.2.1 | Official record |
| ecosystem-boundary | PyPI / package | tensorflow | Not a distribution channel | 2.3.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:25.779ZArchived source JSON
Source publication: 2020-09-25T18:28:56.000Z
Source modification: 2026-07-08T06:29:08.202ZDocument fingerprint
6b66acdb43a5480f1f679058664e2b6acc74ebc493bad1f43077f2343349fdb9 - OSVConsulted: 2026-11-19T12:52:25.779ZArchived source JSON
Source publication: 2020-09-25T19:15:00.000Z
Source modification: 2023-12-06T01:00:17.486ZDocument fingerprint
6b66acdb43a5480f1f679058664e2b6acc74ebc493bad1f43077f2343349fdb9 - CVE ProgramConsulted: 2026-11-19T12:55:28.892ZArchived source JSON
Source publication: 2020-09-25T18:50:23.000Z
Source modification: 2024-08-04T13:08:22.895ZDocument fingerprint
ed956372d4407c215d8a5a665583fac4f2fd814ee93a34f33621931a570f3513 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:27.972ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
014f9629f7f43cb872e60882107c1eaf015ac2e42c966095c43334e8cdc7e3b5
Official status history
- UNKNOWN → PUBLISHED · · evidence