{"id":"CVE-2022-23593","aliases":["CVE-2022-23593","GHSA-gwcx-jrx4-92w2","BIT-TENSORFLOW-2022-23593","PYSEC-2022-102","PYSEC-2022-157","PYSEC-2026-3193"],"related":[],"kind":"vulnerability","state":"published","title":"Segfault in `simplifyBroadcast` in Tensorflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe [`simplifyBroadcast` function in the MLIR-TFRT infrastructure in TensorFlow](https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/compiler/mlir/tfrt/jit/transforms/tf_cpurt_symbolic_shape_optimization.cc#L149-L205) is vulnerable to a segfault (hence, denial of service), if called with scalar shapes.\n\n```cc \n  size_t maxRank = 0;\n  for (auto shape : llvm::enumerate(shapes)) {\n    auto found_shape = analysis.dimensionsForShapeTensor(shape.value());\n    if (!found_shape) return {};\n    shapes_found.push_back(*found_shape);\n    maxRank = std::max(maxRank, found_shape->size());\n  }   \n\n  SmallVector<const ShapeComponentAnalysis::SymbolicDimension*>\n      joined_dimensions(maxRank);\n```\n\nIf all shapes are scalar, then `maxRank` is 0, so we build an empty `SmallVector`.\n\n### Patches\nWe have patched the issue in GitHub commit [35f0fabb4c178253a964d7aabdbb15c6a398b69a](https://github.com/tensorflow/tensorflow/commit/35f0fabb4c178253a964d7aabdbb15c6a398b69a).\n\nThe fix will be included in TensorFlow 2.8.0. This is the only affected version.\n\n### For more information\nPlease consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Tensorflow es un Marco de Aprendizaje Automático de Código Abierto. La función \"simplifyBroadcast\" en la infraestructura MLIR-TFRT en TensorFlow es vulnerable a un segfault (por lo tanto, denegación de servicio), si es llamado con formas escalares. Si todas las formas son escalares, entonces \"maxRank\" es 0, por lo que construimos un \"SmallVector\" vacío. La corrección será incluida en TensorFlow versión 2.8.0. Esta es la única versión afectada","source":"nvd"}],"published":"2022-02-04T22:32:08.000Z","modified":"2026-09-08T08:46:41.076Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"version":">= 2.7.0, < 2.8.0","status":"affected"}],"vendor":"tensorflow","product":"tensorflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0-rc0","status":"affected","fixed":"2.8.0"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0-rc0","status":"affected","fixed":"2.8.0"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0-rc0","status":"affected","fixed":"2.8.0"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.7.0","fixed":"2.8.0"}],"vendor":"google","product":"tensorflow","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"35f0fabb4c178253a964d7aabdbb15c6a398b69a"},{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.8.0"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"35f0fabb4c178253a964d7aabdbb15c6a398b69a"},{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.8.0"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0-rc0","status":"affected","fixed":"2.8.0"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.8.0"}],"ecosystem":"Bitnami","package":"tensorflow","purl":"pkg:bitnami/tensorflow","source":"bitnami"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gwcx-jrx4-92w2","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/commit/35f0fabb4c178253a964d7aabdbb15c6a398b69a","tags":["advisory","fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/compiler/mlir/tfrt/jit/transforms/tf_cpurt_symbolic_shape_optimization.cc#L149-L205","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23593","tags":["advisory","web"],"sources":["ghsa","pysec","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-102.yaml","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-157.yaml","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/tensorflow/tensorflow","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/tensorflow","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-gwcx-jrx4-92w2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-22T15:51:29.923Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23593","url":"https://www.cve.org/CVERecord?id=CVE-2022-23593","licence":"CVE Terms of Use","modified":"2025-04-22T18:27:13.457Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gwcx-jrx4-92w2","url":"https://github.com/advisories/GHSA-gwcx-jrx4-92w2","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:08.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23593","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23593","licence":"Public domain","modified":"2026-06-17T04:30:26.197Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-102","url":"https://osv.dev/vulnerability/PYSEC-2022-102","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:08.094Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-157","url":"https://osv.dev/vulnerability/PYSEC-2022-157","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:08.094Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3193","url":"https://osv.dev/vulnerability/PYSEC-2026-3193","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:08.094Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TENSORFLOW-2022-23593","url":"https://osv.dev/vulnerability/BIT-TENSORFLOW-2022-23593","licence":"Apache-2.0","modified":"2026-09-08T08:46:41.076Z"}],"updatedAt":"2026-11-25T22:58:09.531Z","epss":{"score":0.00899,"percentile":0.60747,"date":"2026-12-02T12:00:21.000Z"}}