CVE-2022-41899: PYSEC-2026-941 - `CHECK` fail via inputs in `SdcaOptimizer`

CVE-2022-41899 · Severity: low · CVSS 3.1 · Published 2026-07-07

TensorFlow's SdcaOptimizer component (a machine-learning optimization algorithm) fails to properly validate input tensor dimensions and crashes with a CHECK failure when receiving incorrectly-shaped inputs. An attacker could cause a denial of service by supplying malformed data to training jobs using this optimizer.

Technologies: Google TensorFlow, tensorflow (PyPI), tensorflow-cpu (PyPI), tensorflow-gpu (PyPI). Vendors: Google, PyPI.

Quick answers

Is CVE-2022-41899 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-41899 being exploited in the wild.
How severe is CVE-2022-41899?
Low severity, with a CVSS score of 3.1, published 7 July 2026.
Which products and versions are affected?
Google TensorFlow 0.12.0 through 2.8.3, 2.9.0 through 2.9.2, 2.10.0; tensorflow (PyPI) ECOSYSTEM:introduced=0,fixed=2.8.4,introduced=2.9.0,fixed=2.9.3,introduced=2.10.0,fixed=2.10.1; tensorflow-cpu (PyPI) ECOSYSTEM:introduced=0,fixed=2.8.4,introduced=2.9.0,fixed=2.9.3,introduced=2.10.0,fixed=2.10.1; tensorflow-gpu (PyPI) ECOSYSTEM:introduced=0,fixed=2.8.4,introduced=2.9.0,fixed=2.9.3,introduced=2.10.0,fixed=2.10.1.
Is there a fix for CVE-2022-41899?
Yes. tensorflow (PyPI): upgrade to 2.10.1 or later; tensorflow-cpu (PyPI): upgrade to 2.10.1 or later; tensorflow-gpu (PyPI): upgrade to 2.10.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-41899 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2022-41899?
Check whether you run Google TensorFlow, tensorflow (PyPI), tensorflow-cpu (PyPI) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • tensorflow (PyPI): upgrade to 2.10.1 or later
    pip install "tensorflow>=2.10.1"
  • tensorflow-cpu (PyPI): upgrade to 2.10.1 or later
    pip install "tensorflow-cpu>=2.10.1"
  • tensorflow-gpu (PyPI): upgrade to 2.10.1 or later
    pip install "tensorflow-gpu>=2.10.1"

Technical details

The vulnerability is an insufficient input validation issue (CWE-20) in the SdcaOptimizer kernel. When the `dense_features` or `example_state_data` parameters are supplied with tensor ranks other than 2, the code triggers an internal CHECK assertion failure rather than gracefully rejecting the invalid input. The vulnerability requires network access and authentication/privileges to call the raw TensorFlow operation. An attacker with the ability to invoke tf.raw_ops.SdcaOptimizer can trigger a denial-of-service crash. A fix was committed in GitHub commit 80ff197d03db2a70c6a111f97dcdacad1b0babfa and is available in TensorFlow 2.11, 2.10.1, 2.9.3, and 2.8.4.

Affected products

  • Google TensorFlow 0.12.0 through 2.8.3, 2.9.0 through 2.9.2, 2.10.0
  • Google TensorFlow CPU 1.15.0 through 2.8.3, 2.9.0 through 2.9.2, 2.10.0
  • Google TensorFlow GPU 0.12.0 through 2.8.3, 2.9.0 through 2.9.2, 2.10.0

Identifiers

  • CVE-2022-41899
  • GHSA-27rc-728f-x5w2
  • PYSEC-2026-3086
  • PYSEC-2026-3264
  • PYSEC-2026-941

Timeline

  • 2022-11-18: disclosed: Published on NVD
  • 2022-11-21: advisory: GitHub advisory published
  • 2022-11-21: patched: TensorFlow 2.11, 2.10.1, 2.9.3, and 2.8.4 patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.