PYSEC-2026-3350: Missing validation causes denial of service in TensorFlow via `SparseTensorToCSRSparseMatrix`

Published May 20, 2022
·
Updated

TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of tf.rawops.SparseTensorToCSRSparseMatrix does not fully validate the input arguments. This results in a CHECK-failure which can be used to trigger a denial of service attack. The code assumes denseshape is a vector and indices is a matrix (as part of requirements for sparse tensors) but there is no validation for this. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Affected Software

1 affected component
Google TensorFlow<2.9.0, <2.8.1, <2.7.2, <2.6.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.9.0
  2. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.8.1
  3. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.7.2
  4. Upgrade

    Upgrade TensorFlow to a version that resolves this vulnerability.

    Fixed in 2.6.4

Event History

May 20, 2022
CVE Published
via OSV·09:50 PM
Data Sourced
via OSV·09:50 PM
DescriptionSeverityWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203