Security advisory
TensorFlow is an open source platform for machine learning. In affected versions if `tf.image.resize` is called with a large input argument then the TensorFlow process will crash due to a `CHECK`-failure caused by an overflow. The number of elements in the output tensor is too much for the `int64_t` type and the overflow is detected via a `CHECK` statement. This aborts the process. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-41199
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:56 UTC · Revision 1
Source evidence
TensorFlow is an open source platform for machine learning. In affected versions if `tf.image.resize` is called with a large input argument then the TensorFlow process will crash due to a `CHECK`-failure caused by an overflow. The number of elements in the output tensor is too much for the `int64_t` type and the overflow is detected via a `CHECK` statement. This aborts the process. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
osv:CVE-2021-41199
Complete source record
{
"id": "8ee0b4a866b1edf3487e93d00fa15d3fb36b267d042eece4fe1cff89958fd783",
"url": "https://osv.dev/vulnerability/CVE-2021-41199",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-41199",
"summary": "TensorFlow is an open source platform for machine learning. In affected versions if `tf.image.resize` is called with a large input argument then the TensorFlow process will crash due to a `CHECK`-failure caused by an overflow. The number of elements in the output tensor is too much for the `int64_t` type and the overflow is detected via a `CHECK` statement. This aborts the process. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.",
"evidence": "osv:CVE-2021-41199",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-41199",
"aliases": [
"BIT-tensorflow-2021-41199",
"CVE-2021-41199",
"GHSA-5hx2-qx8j-qjqm",
"PYSEC-2021-392",
"PYSEC-2021-609",
"PYSEC-2021-807"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tensorflow/tensorflow",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "64918868e2154b06c7479347a59a4230f785e9fa"
},
{
"introduced": "a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"
},
{
"fixed": "957590ea15cc03ee2e00fc61934647d54836676f"
},
{
"introduced": "919f693420e35d00c8d0a42100837ae3718f7927"
},
{
"last_affected": "919f693420e35d00c8d0a42100837ae3718f7927"
},
{
"fixed": "e5272d4204ff5b46136a1ef1204fc00597e21837"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.4.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.5.0"
},
{
"fixed": "2.5.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0"
},
{
"last_affected": "2.6.0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "e5272d4204ff5b46136a1ef1204fc00597e21837"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.6.0",
"v2.4.3",
"v2.6.0",
"v2.5.1",
"v2.4.2",
"v2.5.0",
"v2.4.1",
"v2.4.0",
"v2.4.0-rc4",
"v2.4.0-rc3",
"v2.4.0-rc2",
"v2.4.0-rc1",
"v2.4.0-rc0",
"v1.12.1",
"v1.9.0-rc2",
"v1.6.0-rc1",
"v1.1.0-rc2",
"v1.1.0-rc1",
"0.6.0",
"0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41199.json"
}
}
],
"modified": "2026-10-20T10:54:57.833491440Z",
"provider": "osv",
"references": [
"https://github.com/tensorflow/tensorflow/commit/e5272d4204ff5b46136a1ef1204fc00597e21837",
"https://github.com/tensorflow/tensorflow/issues/46914",
"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-5hx2-qx8j-qjqm"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-41199",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386565,
"published_at": "2021-11-05T20:15:07.97+00:00"
}