{"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-mw6j-hh29-h379 in the wild and no public exploit code.","fix":"Upgrade tensorflow to a fixed version for your release line: 2.6.4, 2.7.2 or 2.8.1.","what":"GHSA-mw6j-hh29-h379 is a vulnerability in tensorflow, published on 25 May 2022."},"fix_prompt":"Check this codebase for GHSA-mw6j-hh29-h379 and fix it if it is affected.\n\nWhat it is: GHSA-mw6j-hh29-h379 is a vulnerability in tensorflow, published on 25 May 2022. \nExploitation: There is no known exploitation of GHSA-mw6j-hh29-h379 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tensorflow (PyPI): affected all versions; fixed in 2.6.4\n- tensorflow (PyPI): affected all versions; fixed in 2.6.4\n- tensorflow (PyPI): affected from 2.7.0; fixed in 2.7.2\n- tensorflow (PyPI): affected from 2.7.0; fixed in 2.7.2\n- tensorflow (PyPI): affected from 2.8.0; fixed in 2.8.1\n- tensorflow (PyPI): affected from 2.8.0; fixed in 2.8.1\n- tensorflow-cpu (PyPI): affected all versions; fixed in 2.6.4\n- tensorflow-cpu (PyPI): affected all versions; fixed in 2.6.4\n- tensorflow-cpu (PyPI): affected from 2.7.0; fixed in 2.7.2\n- tensorflow-cpu (PyPI): affected from 2.7.0; fixed in 2.7.2\n- tensorflow-cpu (PyPI): affected from 2.8.0; fixed in 2.8.1\n- tensorflow-cpu (PyPI): affected from 2.8.0; fixed in 2.8.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-mw6j-hh29-h379/ (Markdown: https://insights.sbomify.com/GHSA-mw6j-hh29-h379/index.md)","id":"GHSA-mw6j-hh29-h379","markdown":"https://insights.sbomify.com/GHSA-mw6j-hh29-h379/index.md","name":"GHSA-mw6j-hh29-h379","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":"An integer overflow in TensorFlow's depthwise operations allows attackers to cause a denial of service via assertion failure.","user_interaction":"not_required","vuln_class":"integer_overflow"},"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 depthwise ops in TensorFlow is vulnerable to a denial of service via `CHECK`-failure (assertion failure) caused by overflowing the number of elements in a tensor:\n\n```python\nimport tensorflow as tf\n\ninput = tf.constant(1, shape=[1, 4, 4, 3], dtype=tf.float32)\nfilter_sizes = tf.constant(1879048192, shape=[13], dtype=tf.int32)\nout_backprop = tf.constant(1, shape=[1, 4, 4, 3], dtype=tf.float32)\ntf.raw_ops.DepthwiseConv2dNativeBackpropFilter(\n    input=input, filter_sizes=filter_sizes, out_backprop=out_backprop, strides=[1, 1, 1, 1], padding=\"SAME\")\n```\n  \nThis is another instance of [TFSA-2021-198](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md) (CVE-2021-41197).\n  \n### Patches\nWe have patched the issue in GitHub commit [3796cc4fcd93ae55812a457abc96dcd55fbb854b](https://github.com/tensorflow/tensorflow/commit/3796cc4fcd93ae55812a457abc96dcd55fbb854b).\n\nThe fix will be included in TensorFlow 2.9.0. We will also cherrypick this commit on TensorFlow 2.8.1, TensorFlow 2.7.2, and TensorFlow 2.6.4, 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 by Neophytos Christou from Secure Systems Lab at Brown University.","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":"`CHECK` failure in depthwise ops via overflows","id":"GHSA-mw6j-hh29-h379","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"integer_overflow","year":"2022"},"n_packages":18,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-mw6j-hh29-h379"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-mw6j-hh29-h379"}],"products":null,"published":"2022-05-25","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":"An integer overflow in TensorFlow's depthwise operations allows attackers to cause a denial of service via assertion failure.","url":"https://insights.sbomify.com/GHSA-mw6j-hh29-h379/"}