Security advisory
TensorFlow is an open source platform for machine learning. In affected versions the code for boosted trees in TensorFlow is still missing validation. As a result, attackers can trigger denial of service (via dereferencing `nullptr`s or via `CHECK`-failures) as well as abuse undefined behavior (binding references to `nullptr`s). An attacker can also read and write from heap buffers, depending on the API that gets used and the arguments that are passed to the call. Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs. We will deprecate TensorFlow's boosted trees APIs in subsequent releases. 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-41208
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:39 UTC · Revision 1
Source evidence
TensorFlow is an open source platform for machine learning. In affected versions the code for boosted trees in TensorFlow is still missing validation. As a result, attackers can trigger denial of service (via dereferencing `nullptr`s or via `CHECK`-failures) as well as abuse undefined behavior (binding references to `nullptr`s). An attacker can also read and write from heap buffers, depending on the API that gets used and the arguments that are passed to the call. Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs. We will deprecate TensorFlow's boosted trees APIs in subsequent releases. 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-41208
Complete source record
{
"id": "3ddabb69f66f6c8a49d369c4def974b2b9c47506e4fb88dc280e32a70f135795",
"url": "https://osv.dev/vulnerability/CVE-2021-41208",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-41208",
"summary": "TensorFlow is an open source platform for machine learning. In affected versions the code for boosted trees in TensorFlow is still missing validation. As a result, attackers can trigger denial of service (via dereferencing `nullptr`s or via `CHECK`-failures) as well as abuse undefined behavior (binding references to `nullptr`s). An attacker can also read and write from heap buffers, depending on the API that gets used and the arguments that are passed to the call. Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs. We will deprecate TensorFlow's boosted trees APIs in subsequent releases. 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-41208",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-41208",
"aliases": [
"BIT-tensorflow-2021-41208",
"CVE-2021-41208",
"GHSA-57wx-m983-2f88",
"PYSEC-2021-400",
"PYSEC-2021-617",
"PYSEC-2021-815"
],
"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": "582c8d236cb079023657287c318ff26adb239002"
},
{
"fixed": "64918868e2154b06c7479347a59a4230f785e9fa"
},
{
"introduced": "a4dfb8d1a71385bd6d122e4f27f86dcebb96712d"
},
{
"fixed": "957590ea15cc03ee2e00fc61934647d54836676f"
},
{
"introduced": "919f693420e35d00c8d0a42100837ae3718f7927"
},
{
"fixed": "3aa40c3ce9d16eae296f086bc4ac4d62deb2affc"
},
{
"introduced": "ce35e5c3a8efdb8161c6a85c8fb9ffb5bbdc9ffd"
},
{
"last_affected": "ff68385595088304cf772086b9a259a65b007622"
},
{
"fixed": "5c8c9a8bfe750f9743d0c859bae112060b216f5c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.4.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:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0"
},
{
"fixed": "2.6.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*",
"range": [
{
"introduced": "2.7.0-rc0"
},
{
"last_affected": "2.7.0-rc0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*",
"range": [
{
"introduced": "2.7.0-rc1"
},
{
"last_affected": "2.7.0-rc1"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "5c8c9a8bfe750f9743d0c859bae112060b216f5c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.7.0-rc0",
"2.7.0-rc1",
"v2.7.0-rc1",
"v2.4.3",
"v2.6.0",
"v2.5.1",
"v2.7.0-rc0",
"v2.4.2",
"v2.5.0",
"v2.4.1",
"v2.4.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41208.json",
"vanir_signatures": [
{
"id": "CVE-2021-41208-48e6ee10",
"digest": {
"threshold": 0.9,
"line_hashes": [
"220609869328640345057801586402488092310",
"315228004130802308057968725626772892674",
"49740043434354683271587922884670062059",
"98291743711334348301168791985484169373",
"60068679364796745105942688247261832194",
"288538590666039222303234330255718642577",
"264653214243979719408593636298426616634",
"53897143722174894316318855672646396317",
"304647743425630064661453677694800735287",
"156754711716393873571865131871364905097",
"212708465787276449948553597451968900805",
"59184946719511221102450993958582816274",
"339671748466750056887519188714604513953",
"27034983341358700079441739824153470663",
"135427090848286891698091120670969859827",
"206220200170668855805063381991154143376",
"59060369083491920600447105757272887737",
"158893707232973015049766105971505387381",
"317649801016706957956385391093470857696",
"226189623777457776652974776279118260000",
"181641009461756777905246588987540911635",
"31180430911074932709208855167175491375",
"132272156062821547642089289760297032192",
"70066852581885461866714752736205072131",
"190082984282377035501402409134664376745",
"115536770548733704541760329083146722141",
"70066852581885461866714752736205072131",
"190082984282377035501402409134664376745",
"115536770548733704541760329083146722141",
"158610424312858645840979274256102253435",
"185729240400043633531647592964709231493",
"287201671522610781098273275669430858781",
"148889470475453540217184772682215013980",
"17116269206472717894415046207963083882",
"213449580534777251122844336737274902826",
"158582374323178779985911705059290886416",
"111444462289305555649677520589066445221"
]
},
"source": "https://github.com/tensorflow/tensorflow/commit/5c8c9a8bfe750f9743d0c859bae112060b216f5c",
"target": {
"file": "tensorflow/core/kernels/boosted_trees/stats_ops.cc"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:10:45Z"
}
}
],
"modified": "2026-10-20T14:10:45.611872492Z",
"provider": "osv",
"references": [
"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-57wx-m983-2f88",
"https://github.com/tensorflow/tensorflow/commit/5c8c9a8bfe750f9743d0c859bae112060b216f5c"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-41208",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388650,
"published_at": "2021-11-05T22:15:08.533+00:00"
}