CVE-2020-15213
Denial of service in tensorflow-lite
In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger a denial of service by causing an out of memory allocation in the implementation of segment sum. Since code uses the last element of the tensor holding them to determine the dimensionality of output tensor, attackers can use a very large value to trigger a large allocation. 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 limit the maximum value in the segment ids tensor. This only handles the case when the segment ids are stored statically in the model, but a similar validation could be done if the segment ids are generated at runtime, between inference steps. However, 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.760% · score date 2026-11-18. 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-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:55:28.794Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:28.794Z | CVE Program |
| epss | verified | 2026-11-19T12:59:59.042Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:25.779Z | OSV |
| affected | verified | 2026-11-19T12:55:28.794Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:28.794Z | CVE Program |
Affected versions and configuration
tensorflow tensorflow; default status: unknown: = 2.2.0 [affected; scheme: unspecified]; = 2.3.0 [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"
},
{
"status": "affected",
"version": "= 2.3.0"
}
]
}
],
"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/commit/204945b19e44b57906c9344c0d00120eeeae178a",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hjmq-236j-8m87",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T13:08:22.853Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-hjmq-236j-8m87",
"aliases": [
"BIT-tensorflow-2020-15213",
"CVE-2020-15213",
"PYSEC-2020-136",
"PYSEC-2020-293",
"PYSEC-2020-328"
],
"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-hjmq-236j-8m87/GHSA-hjmq-236j-8m87.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-hjmq-236j-8m87/GHSA-hjmq-236j-8m87.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hjmq-236j-8m87",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15213",
"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-293.yaml",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-328.yaml",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-136.yaml",
"type": "WEB"
},
{
"url": "https://github.com/tensorflow/tensorflow",
"type": "PACKAGE"
},
{
"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-119",
"CWE-770"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2020-09-25T19:15:00Z",
"github_reviewed_at": "2020-09-25T18:22:48Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2020-136",
"aliases": [
"BIT-tensorflow-2020-15213",
"CVE-2020-15213",
"GHSA-hjmq-236j-8m87",
"PYSEC-2020-293",
"PYSEC-2020-328"
],
"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-136.yaml"
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hjmq-236j-8m87",
"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:53.000Z
Source modification: 2026-07-08T06:28:11.675ZDocument 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.426ZDocument fingerprint
6b66acdb43a5480f1f679058664e2b6acc74ebc493bad1f43077f2343349fdb9 - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T12:59:59.042ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
067d90b5e30d28a4f861f7d1f390a00a4683befc883fd389035dc7cefc637147 - CVE ProgramConsulted: 2026-11-19T12:55:28.794ZArchived source JSON
Source publication: 2020-09-25T18:50:29.000Z
Source modification: 2024-08-04T13:08:22.853ZDocument fingerprint
823d93af48dcd9ce23ff17665ec86e9706fc6fbb63c47da0500f8de8406cdedb
Official status history
- UNKNOWN → PUBLISHED · · evidence