{"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-wcv5-vrvr-3rx2 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-wcv5-vrvr-3rx2 is a vulnerability in tensorflow, published on 9 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-wcv5-vrvr-3rx2 and fix it if it is affected.\n\nWhat it is: GHSA-wcv5-vrvr-3rx2 is a vulnerability in tensorflow, published on 9 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-wcv5-vrvr-3rx2 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-wcv5-vrvr-3rx2/ (Markdown: https://insights.sbomify.com/GHSA-wcv5-vrvr-3rx2/index.md)","id":"GHSA-wcv5-vrvr-3rx2","markdown":"https://insights.sbomify.com/GHSA-wcv5-vrvr-3rx2/index.md","name":"GHSA-wcv5-vrvr-3rx2","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"TensorFlow library","requires_auth":"none","summary":"An attacker can cause a denial of service in TensorFlow via integer overflow in Grappler constant folding by providing crafted tensor shapes.","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 Grappler component of TensorFlow is vulnerable to a denial of service via `CHECK`-failure (assertion failure) in [constant folding](https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/grappler/optimizers/constant_folding.cc#L963-L1035):\n\n```cc\n  for (const auto\u0026 output_prop : output_props) {\n    const PartialTensorShape output_shape(output_prop.shape());\n    // ...\n  }\n```\n  \nThe `output_prop` tensor has a shape that is controlled by user input and this can result in triggering one of the `CHECK`s in the `PartialTensorShape` constructor. This is an 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 [be7b286d40bc68cb0b56f702186cc4837d508058](https://github.com/tensorflow/tensorflow/commit/be7b286d40bc68cb0b56f702186cc4837d508058).\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.","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":"Integer Overflow or Wraparound in TensorFlow","id":"GHSA-wcv5-vrvr-3rx2","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.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-wcv5-vrvr-3rx2"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-wcv5-vrvr-3rx2"}],"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":"An attacker can cause a denial of service in TensorFlow via integer overflow in Grappler constant folding by providing crafted tensor shapes.","url":"https://insights.sbomify.com/GHSA-wcv5-vrvr-3rx2/"}