{"answers":{"affected":"18 open source packages ship an affected version, including tensorflow, tensorflow-cpu and tensorflow-gpu.","exploited":"There is no known exploitation of GHSA-43q8-3fv7-pr5x in the wild and no public exploit code.","fix":"Upgrade tensorflow to a fixed version for your release line: 2.5.3, 2.6.3 or 2.7.1.","what":"GHSA-43q8-3fv7-pr5x is a denial of service vulnerability in tensorflow, published on 9 Feb 2022."},"fix_prompt":"Check this codebase for GHSA-43q8-3fv7-pr5x and fix it if it is affected.\n\nWhat it is: GHSA-43q8-3fv7-pr5x is a denial of service vulnerability in tensorflow, published on 9 Feb 2022. \nExploitation: There is no known exploitation of GHSA-43q8-3fv7-pr5x in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tensorflow (PyPI): affected all versions; fixed in 2.5.3\n- tensorflow (PyPI): affected all versions; fixed in 2.5.3\n- tensorflow (PyPI): affected from 2.6.0; fixed in 2.6.3\n- tensorflow (PyPI): affected from 2.6.0; fixed in 2.6.3\n- tensorflow (PyPI): affected from 2.7.0; fixed in 2.7.1\n- tensorflow (PyPI): affected from 2.7.0; fixed in 2.7.1\n- tensorflow-cpu (PyPI): affected all versions; fixed in 2.5.3\n- tensorflow-cpu (PyPI): affected all versions; fixed in 2.5.3\n- tensorflow-cpu (PyPI): affected from 2.6.0; fixed in 2.6.3\n- tensorflow-cpu (PyPI): affected from 2.6.0; fixed in 2.6.3\n- tensorflow-cpu (PyPI): affected from 2.7.0; fixed in 2.7.1\n- tensorflow-cpu (PyPI): affected from 2.7.0; fixed in 2.7.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-43q8-3fv7-pr5x/ (Markdown: https://insights.sbomify.com/GHSA-43q8-3fv7-pr5x/index.md)","id":"GHSA-43q8-3fv7-pr5x","markdown":"https://insights.sbomify.com/GHSA-43q8-3fv7-pr5x/index.md","name":"GHSA-43q8-3fv7-pr5x","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"TensorFlow library","requires_auth":"none","summary":"A malicious user can trigger a denial of service via segmentation fault or heap out-of-bounds read in tf.sparse.split due to improper input validation.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nThe implementation of [`tf.sparse.split`](https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/sparse_split_op.cc#L26-L102) does not fully validate the input arguments. Hence, a malicious user can trigger a denial of service via a segfault or a heap OOB read:\n\n```python\nimport tensorflow as tf\ndata = tf.random.uniform([1, 32, 32], dtype=tf.float32)\naxis = [1, 2]\nx = tf.sparse.from_dense(data)\nresult = tf.sparse.split(x,3, axis=axis)\n```\nThe code assumes `axis` is a scalar. This is another instance of [TFSA-2021-190](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-190.md) (CVE-2021-41206).\n\n### Patches\nWe have patched the issue in GitHub commit [61bf91e768173b001d56923600b40d9a95a04ad5](https://github.com/tensorflow/tensorflow/commit/61bf91e768173b001d56923600b40d9a95a04ad5) (merging [#53695](https://github.com/tensorflow/tensorflow/pull/53695)).\n\nThe 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.\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.\n\n### Attribution\nThis vulnerability has been reported externally via a [GitHub issue](https://github.com/tensorflow/tensorflow/issues/53660).","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Improper Validation of Integrity Check Value in TensorFlow","id":"GHSA-43q8-3fv7-pr5x","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":18,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-43q8-3fv7-pr5x"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-43q8-3fv7-pr5x"}],"products":null,"published":"2022-02-09","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A malicious user can trigger a denial of service via segmentation fault or heap out-of-bounds read in tf.sparse.split due to improper input validation.","url":"https://insights.sbomify.com/GHSA-43q8-3fv7-pr5x/"}