{"id":"CVE-2022-21734","published":"2022-02-03T12:59:18Z","modified":"2025-05-05T16:31:55Z","title":"`CHECK`-failures in Tensorflow","vendor":null,"product":null,"tier":"tail","description":{"text":"Tensorflow is an Open Source Machine Learning Framework. The implementation of `MapStage` is vulnerable a `CHECK`-fail if the key tensor is not a scalar. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00789,"percentile":0.57157,"provenance":"source"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gcvh-66ff-4mwm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/f57315566d7094f322b784947093406c2aea0d7d","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/map_stage_op.cc#L519-L550","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.43},{"name":"CVSS severity","points":4.55}]},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-25T15:47:12.603964Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.5.3",">=2.6.0, <2.6.3",">=2.7.0, <2.7.1"],"patched":["2.5.3","2.6.3","2.7.1"],"from":["GHSA-gcvh-66ff-4mwm","PYSEC-2026-3187"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.5.3",">=2.6.0, <2.6.3",">=2.7.0, <2.7.1"],"patched":["2.5.3","2.6.3","2.7.1"],"from":["GHSA-gcvh-66ff-4mwm","PYSEC-2022-58"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.5.3",">=2.6.0, <2.6.3",">=2.7.0, <2.7.1"],"patched":["2.5.3","2.6.3","2.7.1"],"from":["GHSA-gcvh-66ff-4mwm","PYSEC-2022-113"],"provenance":"source"}],"summary":{"text":"The flaw is in TensorFlow's implementation of MapStage, which can hit a CHECK failure when the key tensor passed to it is not a scalar. An attacker able to supply a non-scalar key tensor to this component can trigger the crash, causing a denial of service; the vector indicates network access with low complexity and low privileges required, and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:29Z"},"euvd":{"id":"EUVD-2022-0297","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2021-37671","parents":[{"from":"CVE-2021-37671","to":"CVE-2022-21734","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/map_stage_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/532f5c5a547126c634fefd43bbad1dc6417678ac","https://github.com/tensorflow/tensorflow/commit/f57315566d7094f322b784947093406c2aea0d7d"],"basis":"rarely changed file"}]},{"from":"CVE-2021-37673","to":"CVE-2022-21734","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/map_stage_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/d7de67733925de196ec8863a33445b73f9562d1d","https://github.com/tensorflow/tensorflow/commit/f57315566d7094f322b784947093406c2aea0d7d"],"basis":"shared function","functions":["MapStageOp"]}]}]}}