# CVE-2022-41887: Overflow in `tf.keras.losses.poisson` in Tensorflow

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-18T00:00:00.000Z
- Modified: 2026-09-08T08:48:20.624Z
- Also known as: GHSA-8fvv-46hw-vpg3, BIT-TENSORFLOW-2022-41887, PYSEC-2026-3136, PYSEC-2026-3297, PYSEC-2026-970
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: >= 2.10.0, < 2.10.1; < 2.9.3
- tensorflow (PyPI): before 2.9.3; from 2.10.0 before 2.10.1
- tensorflow-cpu (PyPI): before 2.9.3; from 2.10.0 before 2.10.1
- tensorflow-gpu (PyPI): before 2.9.3; from 2.10.0 before 2.10.1
- google tensorflow: from 2.9.0 before 2.9.3; 2.10.0
- tensorflow (Bitnami): from 2.9.0 before 2.9.3; from 2.10.0 before 2.10.1

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c> (advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h> (advisory, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41887> (advisory, web)
- <https://github.com/tensorflow/tensorflow> (package)
- <https://pypi.org/project/tensorflow> (package)
- <https://github.com/advisories/GHSA-8fvv-46hw-vpg3> (advisory)
- <https://pypi.org/project/tensorflow-cpu> (package)
- <https://pypi.org/project/tensorflow-gpu> (package)

## Sources

- CVE List: [CVE-2022-41887](https://www.cve.org/CVERecord?id=CVE-2022-41887), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-8fvv-46hw-vpg3](https://github.com/advisories/GHSA-8fvv-46hw-vpg3), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2022-41887](https://nvd.nist.gov/vuln/detail/CVE-2022-41887), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-3136](https://osv.dev/vulnerability/PYSEC-2026-3136), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-3297](https://osv.dev/vulnerability/PYSEC-2026-3297), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-970](https://osv.dev/vulnerability/PYSEC-2026-970), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2022-41887](https://osv.dev/vulnerability/BIT-TENSORFLOW-2022-41887), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-41887 · Whole record: https://cve.day/CVE-2022-41887.json · Rebuilt by cve.day 2026-11-25T22:58:16.625Z
