7.5

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

Modified
AliasesGHSA-8fvv-46hw-vpg3BIT-tensorflow-2022-41887PYSEC-2026-3136
Published 18-11-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-41887 is a high (CVSS 7.5) Incorrect Calculation of Buffer Size vulnerability in google tensorflow. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 52.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.65%
0%100%
Low · +0.16 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 18-11-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.65%

Chance of exploitation in the next 30 days

Percentile

53%

Versus all other CVEs

30-day change

Increase +0.16 pp

From 0.49% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Tensorflow

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

PyPI3 products
  • tensorflow< 2.9.3 | ≥ 2.10.0, < 2.10.1
  • tensorflow-cpu< 2.9.3 | ≥ 2.10.0, < 2.10.1
  • tensorflow-gpu< 2.9.3 | ≥ 2.10.0, < 2.10.1
Google1 product
Tensorflow1 product

3 vendors · 5 products

References

10 links