{"answers":{"affected":"9 open source packages ship an affected version, including tensorflow, tensorflow-cpu and tensorflow-gpu. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-16778 in the wild and no public exploit code.","fix":"Upgrade tensorflow to 1.15.0 or later.","what":"CVE-2019-16778 is a low-severity vulnerability in Google Tensorflow, published on 16 Dec 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2019-16778 and fix it if it is affected.\n\nWhat it is: CVE-2019-16778 is a low-severity vulnerability in Google Tensorflow, published on 16 Dec 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2019-16778 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tensorflow (PyPI): affected all versions; fixed in 1.15.0\n- tensorflow (PyPI): affected all versions; fixed in 1.15.0\n- tensorflow (PyPI): affected from 1.0.0; fixed in 1.15.0\n- tensorflow-cpu (PyPI): affected all versions; fixed in 1.15.0\n- tensorflow-cpu (PyPI): affected all versions; fixed in 1.15.0\n- tensorflow-cpu (PyPI): affected from 1.0.0; fixed in 1.15.0\n- tensorflow-gpu (PyPI): affected all versions; fixed in 1.15.0\n- tensorflow-gpu (PyPI): affected all versions; fixed in 1.15.0\n- tensorflow-gpu (PyPI): affected from 1.0.0; fixed in 1.15.0\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/CVE-2019-16778/ (Markdown: https://insights.sbomify.com/CVE-2019-16778/index.md)","id":"CVE-2019-16778","markdown":"https://insights.sbomify.com/CVE-2019-16778/index.md","name":"CVE-2019-16778","record":{"aliases":["GHSA-844w-j86r-4x2j","PYSEC-2019-209","PYSEC-2019-227","PYSEC-2019-234"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"TensorFlow library","requires_auth":"low_privilege","summary":"An integer overflow in TensorFlow's UnsortedSegmentSum can cause heap buffer overflows, potentially leading to denial of service.","user_interaction":"required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tensorflow","vendor":"google"}],"cvss":{"score":2.6,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"In TensorFlow before 1.15, a heap buffer overflow in UnsortedSegmentSum can be produced when the Index template argument is int32. In this case data_size and num_segments fields are truncated from int64 to int32 and can produce negative numbers, resulting in accessing out of bounds heap memory. This is unlikely to be exploitable and was detected and fixed internally in TensorFlow 1.15 and 2.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow","id":"CVE-2019-16778","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"google:tensorflow","products":["google:tensorflow"],"type":"integer_overflow","year":"2019"},"n_packages":9,"n_references":3,"next":{"headline":"In RubyGem excon, interrupted Persistent Connections May Leak Response Data","id":"CVE-2019-16779"},"packages":[{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":null,"source":"GHSA-844w-j86r-4x2j"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"GHSA-844w-j86r-4x2j"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["1.0.0"],"last_affected":[],"package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"PYSEC-2019-209"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":null,"source":"GHSA-844w-j86r-4x2j"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"GHSA-844w-j86r-4x2j"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["1.0.0"],"last_affected":[],"package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"PYSEC-2019-227"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":null,"source":"GHSA-844w-j86r-4x2j"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"GHSA-844w-j86r-4x2j"},{"ecosystem":"PyPI","fixed":["1.15.0"],"introduced":["1.0.0"],"last_affected":[],"package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"PYSEC-2019-234"}],"prev":{"headline":"Arbitrary File Overwrite in npm CLI","id":"CVE-2019-16777"},"products":["tensorflow"],"published":"2019-12-16","related":[{"cvss_score":9.8,"headline":"TensorFlow vulnerable to heap out-of-buffer read in the QuantizeAndDequantize operation","id":"CVE-2023-25668","kev_date_added":null,"published":"2023-03-24"},{"cvss_score":9.8,"headline":"Integer Overflow or Wraparound in Google TensorFlow","id":"CVE-2018-7575","kev_date_added":null,"published":"2019-04-24"},{"cvss_score":9.3,"headline":"Arbitrary code execution due to YAML deserialization","id":"CVE-2021-37678","kev_date_added":null,"published":"2021-08-12"},{"cvss_score":9.1,"headline":"Path traversal in n/a","id":"CVE-2021-35958","kev_date_added":null,"published":"2021-06-30"},{"cvss_score":9,"headline":"Integer truncation in Shard API usage","id":"CVE-2020-15202","kev_date_added":null,"published":"2020-09-25"},{"cvss_score":9,"headline":"Data leak in Tensorflow","id":"CVE-2020-15205","kev_date_added":null,"published":"2020-09-25"},{"cvss_score":9,"headline":"Denial of Service in Tensorflow","id":"CVE-2020-15206","kev_date_added":null,"published":"2020-09-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["tensorflow"]},"summary":"An integer overflow in TensorFlow's UnsortedSegmentSum can cause heap buffer overflows, potentially leading to denial of service.","url":"https://insights.sbomify.com/CVE-2019-16778/"}