NULL Pointer Dereference Affecting tensorflow package, versions [,2.11.1)[2.12.0rc0,2.12.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.44% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-TENSORFLOW-3372984
  • published26 Mar 2023
  • disclosed26 Mar 2023
  • creditYu Tian of Qihoo 360 AIVul Team

Introduced: 26 Mar 2023

CVE-2023-25665  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade tensorflow to version 2.11.1, 2.12.0 or higher.

Overview

tensorflow is a machine learning framework.

Affected versions of this package are vulnerable to NULL Pointer Dereference when SparseSparseMaximum is given invalid sparse tensors as inputs.

PoC

import tensorflow as tf
tf.raw_ops.SparseSparseMaximum(
 a_indices=[[1]],
 a_values =[ 0.1 ],
 a_shape = [2],
 b_indices=[[]],
 b_values =[2 ],
 b_shape = [2],
)

References

CVSS Base Scores

version 3.1