{"id":"CVE-2022-23593","published":"2022-02-04T22:32:08Z","modified":"2025-04-22T18:27:13Z","title":"Segfault in `simplifyBroadcast` in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"Tensorflow is an Open Source Machine Learning Framework. The `simplifyBroadcast` function in the MLIR-TFRT infrastructure in TensorFlow is vulnerable to a segfault (hence, denial of service), if called with scalar shapes. If all shapes are scalar, then `maxRank` is 0, so we build an empty `SmallVector`. The fix will be included in TensorFlow 2.8.0. This is the only affected version.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00732,"percentile":0.50292,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gwcx-jrx4-92w2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/35f0fabb4c178253a964d7aabdbb15c6a398b69a","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/compiler/mlir/tfrt/jit/transforms/tf_cpurt_symbolic_shape_optimization.cc#L149-L205","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":10.06},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.7.0, < 2.8.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:51:29.923296Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.8.0-rc0, <2.8.0"],"patched":["2.8.0"],"from":["GHSA-gwcx-jrx4-92w2","PYSEC-2026-3193"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.8.0-rc0, <2.8.0",">=2.7.0, <2.8.0"],"patched":["2.8.0"],"from":["GHSA-gwcx-jrx4-92w2","PYSEC-2022-102"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.8.0-rc0, <2.8.0",">=2.7.0, <2.8.0"],"patched":["2.8.0"],"from":["GHSA-gwcx-jrx4-92w2","PYSEC-2022-157"],"provenance":"source"}],"summary":{"text":"A flaw in the simplifyBroadcast function in the MLIR-TFRT infrastructure of TensorFlow causes a segfault when the function is called with scalar shapes, because it builds an empty SmallVector when all shapes are scalar. An attacker able to reach the affected code path over the network can trigger a denial of service, with no authentication, no user interaction, and only high attack complexity required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:00Z"},"euvd":{"id":"EUVD-2022-0286","exploited":false,"provenance":"source"}}