Security advisory
TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/55a97caa9e99c7f37a0bbbeb414dc55553d3ae7f/tensorflow/core/kernels/quantized_batch_norm_op.cc) does not validate all constraints specified in the op's contract(https://www.tensorflow.org/api_docs/python/tf/raw_ops/QuantizedBatchNormWithGlobalNormalization). The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.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-29548
- 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. An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/55a97caa9e99c7f37a0bbbeb414dc55553d3ae7f/tensorflow/core/kernels/quantized_batch_norm_op.cc) does not validate all constraints specified in the op's contract(https://www.tensorflow.org/api_docs/python/tf/raw_ops/QuantizedBatchNormWithGlobalNormalization). The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
osv:CVE-2021-29548
Complete source record
{
"id": "77df25d1ccc29337aa14779ad68f06fc785800886dfea95a2c9aa44a5a4e63af",
"url": "https://osv.dev/vulnerability/CVE-2021-29548",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-29548",
"summary": "TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/55a97caa9e99c7f37a0bbbeb414dc55553d3ae7f/tensorflow/core/kernels/quantized_batch_norm_op.cc) does not validate all constraints specified in the op's contract(https://www.tensorflow.org/api_docs/python/tf/raw_ops/QuantizedBatchNormWithGlobalNormalization). The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.",
"evidence": "osv:CVE-2021-29548",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-29548",
"aliases": [
"BIT-tensorflow-2021-29548",
"CVE-2021-29548",
"GHSA-p45v-v4pw-77jr",
"PYSEC-2021-185",
"PYSEC-2021-476",
"PYSEC-2021-674"
],
"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": "0931ea3d985bb9c8fdd054a5e29c4129623c849b"
},
{
"introduced": "2b96f3662bd776e277f86997659e61046b56c315"
},
{
"fixed": "cfe0c80169ae984bcdc99ff6de7444164aaa8e07"
},
{
"introduced": "b36436b087bd8e8701ef51718179037cccdfc26e"
},
{
"fixed": "3929ffacfbef7c431e8397920d040aaf47acff19"
},
{
"introduced": "582c8d236cb079023657287c318ff26adb239002"
},
{
"fixed": "1923123d32ea41d92b70a27a3f6ecf0763b56f6c"
},
{
"fixed": "d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.1.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.4.0"
},
{
"fixed": "2.4.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.1.3",
"v2.2.2",
"v2.3.2",
"v2.4.1",
"v2.1.2",
"v2.2.1",
"v2.4.0",
"v2.3.1",
"v2.2.0",
"v2.1.1",
"v2.3.0",
"v2.1.0",
"v2.1.0-rc0",
"v2.1.0-rc2",
"v2.1.0-rc1",
"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-29548.json",
"vanir_signatures": [
{
"id": "CVE-2021-29548-9d06ae6e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"176618047136456417880005532924269322386",
"297047972375586089626536842260205915101",
"86200857832530856272713735861939086941",
"128459269962812644813524439573502370374",
"234004257098849043291372428099319489604",
"241579587392670441474268375065918101774",
"161063756124405785828275356797381227591",
"37244088738306890189939361308459926176",
"316467082556001404614516698981229802163",
"135937994080295905309159847098386748770",
"167120151489323212762499174682729280990",
"219490438250623205816948631995075558366",
"242888050880428708846886754973363308772",
"72111755195317785167421845503711011011",
"131068498761825027470444422476444652228",
"185457261491039634984875476907287325232",
"238957868349673335557020188134440930668",
"227576154549641252975969184476197098428",
"181823546976821326746531119399087937682",
"77817855725171497703242639549410228571",
"121111861639199729372945519955015565610"
]
},
"source": "https://github.com/tensorflow/tensorflow/commit/d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b",
"target": {
"file": "tensorflow/core/kernels/quantized_batch_norm_op.cc"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:10:46Z"
}
}
],
"modified": "2026-10-20T14:10:46.406673294Z",
"provider": "osv",
"references": [
"https://github.com/tensorflow/tensorflow/commit/d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b",
"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p45v-v4pw-77jr"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-29548",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388652,
"published_at": "2021-05-14T20:15:12.807+00:00"
}