Security advisory
TensorFlow is an end-to-end open source platform for machine learning. Sending invalid argument for `row_partition_types` of `tf.raw_ops.RaggedTensorToTensor` API results in a null pointer dereference and undefined behavior. The [implementation](https://github.com/tensorflow/tensorflow/blob/47a06f40411a69c99f381495f490536972152ac0/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L328) accesses the first element of a user supplied list of values without validating that the provided list is not empty. We have patched the issue in GitHub commit 301ae88b331d37a2a16159b65b255f4f9eb39314. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.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-37638
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:39 UTC · Revision 1
Source evidence
TensorFlow is an end-to-end open source platform for machine learning. Sending invalid argument for `row_partition_types` of `tf.raw_ops.RaggedTensorToTensor` API results in a null pointer dereference and undefined behavior. The [implementation](https://github.com/tensorflow/tensorflow/blob/47a06f40411a69c99f381495f490536972152ac0/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L328) accesses the first element of a user supplied list of values without validating that the provided list is not empty. We have patched the issue in GitHub commit 301ae88b331d37a2a16159b65b255f4f9eb39314. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
osv:CVE-2021-37638
Complete source record
{
"id": "986d476df42502db507e57e2947171d19621b645b41ac43e440ec43691ae926a",
"url": "https://osv.dev/vulnerability/CVE-2021-37638",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-37638",
"summary": "TensorFlow is an end-to-end open source platform for machine learning. Sending invalid argument for `row_partition_types` of `tf.raw_ops.RaggedTensorToTensor` API results in a null pointer dereference and undefined behavior. The [implementation](https://github.com/tensorflow/tensorflow/blob/47a06f40411a69c99f381495f490536972152ac0/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L328) accesses the first element of a user supplied list of values without validating that the provided list is not empty. We have patched the issue in GitHub commit 301ae88b331d37a2a16159b65b255f4f9eb39314. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.",
"evidence": "osv:CVE-2021-37638",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-37638",
"aliases": [
"BIT-tensorflow-2021-37638",
"CVE-2021-37638",
"GHSA-hwr7-8gxx-fj5p",
"PYSEC-2021-260",
"PYSEC-2021-551",
"PYSEC-2021-749"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tensorflow/tensorflow",
"type": "GIT",
"events": [
{
"introduced": "b36436b087bd8e8701ef51718179037cccdfc26e"
},
{
"fixed": "7462dcaae1e8cfe1dfd0c62dd6083f9749a9d827"
},
{
"introduced": "582c8d236cb079023657287c318ff26adb239002"
},
{
"fixed": "4c0b84bf2a714bcdd18da1f1f94d533d72399d52"
},
{
"introduced": "a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"
},
{
"last_affected": "5368d50428b30b7c9ccd038aec65d09252d16596"
},
{
"fixed": "301ae88b331d37a2a16159b65b255f4f9eb39314"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.4.0"
},
{
"fixed": "2.4.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.5.0"
},
{
"last_affected": "2.5.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0-rc0"
},
{
"last_affected": "2.6.0-rc0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0-rc1"
},
{
"last_affected": "2.6.0-rc1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0-rc2"
},
{
"last_affected": "2.6.0-rc2"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "301ae88b331d37a2a16159b65b255f4f9eb39314"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.5.0",
"2.6.0-rc0",
"2.6.0-rc1",
"2.6.0-rc2",
"v2.3.3",
"v2.4.2",
"v2.3.2",
"v2.4.1",
"v2.4.0",
"v2.3.1",
"v2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37638.json",
"vanir_signatures": [
{
"id": "CVE-2021-37638-610ae5d4",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54544424920457278157334232613568948712",
"78445894225962367791772422298767634625",
"142303990175543666514551465063300712598",
"59479207936404383443007801086768327620"
]
},
"source": "https://github.com/tensorflow/tensorflow/commit/301ae88b331d37a2a16159b65b255f4f9eb39314",
"target": {
"file": "tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:10:47Z"
}
}
],
"modified": "2026-10-20T14:10:47.600610079Z",
"provider": "osv",
"references": [
"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hwr7-8gxx-fj5p",
"https://github.com/tensorflow/tensorflow/commit/301ae88b331d37a2a16159b65b255f4f9eb39314"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-37638",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388658,
"published_at": "2021-08-12T19:15:08.603+00:00"
}