{"id":"CVE-2021-29611","published":"2021-05-14T19:20:43Z","modified":"2024-08-03T22:11:06Z","title":"Incomplete validation in `SparseReshape`","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an end-to-end open source platform for machine learning. Incomplete validation in `SparseReshape` results in a denial of service based on a `CHECK`-failure. The implementation(https://github.com/tensorflow/tensorflow/blob/e87b51ce05c3eb172065a6ea5f48415854223285/tensorflow/core/kernels/sparse_reshape_op.cc#L40) has no validation that the input arguments specify a valid sparse tensor. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2 and TensorFlow 2.3.3, as these are the only affected versions.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00202,"percentile":0.10318,"provenance":"source"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-9rpc-5v9q-5r7f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/1d04d7d93f4ed3854abf75d6b712d72c3f70d6b6","tags":["x_refsource_MISC"]}],"priority":{"score":4.6,"factors":[{"name":"EPSS percentile","points":2.06},{"name":"CVSS severity","points":2.52}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 2.3.3",">= 2.4.0, < 2.4.2"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.3.0, <2.3.3",">=2.4.0, <2.4.2","<2.1.4",">=2.2.0, <2.2.3"],"patched":["2.3.3","2.4.2","2.1.4","2.2.3"],"from":["GHSA-9rpc-5v9q-5r7f","PYSEC-2021-248"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.3.0, <2.3.3",">=2.4.0, <2.4.2","<2.1.4",">=2.2.0, <2.2.3"],"patched":["2.3.3","2.4.2","2.1.4","2.2.3"],"from":["GHSA-9rpc-5v9q-5r7f","PYSEC-2021-539"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.3.0, <2.3.3",">=2.4.0, <2.4.2","<2.1.4",">=2.2.0, <2.2.3"],"patched":["2.3.3","2.4.2","2.1.4","2.2.3"],"from":["GHSA-9rpc-5v9q-5r7f","PYSEC-2021-737"],"provenance":"source"}],"summary":{"text":"The flaw is incomplete input validation in the SparseReshape operation of TensorFlow's machine learning platform, where the implementation never checks that its arguments describe a valid sparse tensor. An attacker who can get a crafted sparse input to this operation, with local access and a low-privilege account and some form of user interaction, can trigger a CHECK failure that crashes the process and causes a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:48Z"},"euvd":{"id":"EUVD-2021-0352","exploited":false,"provenance":"source"}}