{"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-h6gw-r52c-724r 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-h6gw-r52c-724r is a vulnerability in tensorflow, published on 9 Feb 2022."},"fix_prompt":"Check this codebase for GHSA-h6gw-r52c-724r and fix it if it is affected.\n\nWhat it is: GHSA-h6gw-r52c-724r is a vulnerability in tensorflow, published on 9 Feb 2022. \nExploitation: There is no known exploitation of GHSA-h6gw-r52c-724r 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-h6gw-r52c-724r/ (Markdown: https://insights.sbomify.com/GHSA-h6gw-r52c-724r/index.md)","id":"GHSA-h6gw-r52c-724r","markdown":"https://insights.sbomify.com/GHSA-h6gw-r52c-724r/index.md","name":"GHSA-h6gw-r52c-724r","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_read","data_modify"],"network_reachable":"unknown","non_default_config":false,"product_category":"TensorFlow machine learning library","requires_auth":"none","summary":"Attackers can trigger denial of service or read/write out-of-bounds memory via missing validation in TensorFlow's boosted trees implementation.","user_interaction":"not_required","vuln_class":"null_dereference"},"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 [code for boosted trees in TensorFlow](https://github.com/tensorflow/tensorflow/blob/e0b6e58c328059829c3eb968136f17aa72b6c876/tensorflow/core/kernels/boosted_trees/stats_ops.cc) is still missing validation. This allows malicious users to read and write outside of bounds of heap allocated data as well as trigger denial of service (via dereferencing `nullptr`s or via `CHECK`-failures).\n\nThis follows after CVE-2021-41208 where these APIs were still vulnerable to multiple security issues.\n\n**Note**: Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs.  Instead, please use the downstream [TensorFlow Decision Forests](https://github.com/tensorflow/decision-forests) project which is newer and supports more features. \n  \nThese APIs are now deprecated in TensorFlow 2.8. We will remove TensorFlow's boosted trees APIs in subsequent releases.\n  \n### Patches\nWe have patched the known issues in multiple GitHub commits.\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\nThis should allow users to use existing boosted trees APIs for a while until they migrate to [TensorFlow Decision Forests](https://github.com/tensorflow/decision-forests), while guaranteeing that known vulnerabilities are fixed.\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\nThese vulnerabilities have been reported by Yu Tian of Qihoo 360 AIVul Team and Faysal Hossain Shezan from University of Virginia. Some of the issues have been discovered internally after a careful audit of the APIs.","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":"NULL Pointer Dereference and Access of Uninitialized Pointer in TensorFlow","id":"GHSA-h6gw-r52c-724r","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"null_dereference","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-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.6.3"],"introduced":["2.6.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-h6gw-r52c-724r"},{"ecosystem":"PyPI","fixed":["2.7.1"],"introduced":["2.7.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-h6gw-r52c-724r"}],"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":"Attackers can trigger denial of service or read/write out-of-bounds memory via missing validation in TensorFlow's boosted trees implementation.","url":"https://insights.sbomify.com/GHSA-h6gw-r52c-724r/"}