CVE-2020-5215 in TensorFlow
摘要
由 VulDB • 2026-05-26
在 TensorFlow 1.15.2 之前版本以及 2.0.1 之前的版本中,将字符串(来自 Python)转换为 tf.float16 值会导致在 eager 模式下发生段错误,因为针对此用例的格式检查仅存在于 graph 模式中。此问题可能导致推理/训练过程中的拒绝服务(DoS),恶意攻击者可以发送包含字符串而非 tf.float16 值的数据点。通过操纵保存的模型和检查点也能获得类似效果,即用标量字符串替换标量 tf.float16 值会因自动转换而触发此问题。如果启用了 eager 执行,可以通过 `tf.constant("hello", tf.float16)` 轻松复现此问题。该漏洞已在 TensorFlow 1.15.1 和 2.0.1 中修复。TensorFlow 2.1.0 在修复该问题后发布,因此不受影响。建议用户升级至 TensorFlow 1.15.1、2.0.1 或 2.1.0。
VulDB is the best source for vulnerability data and more expert information about this specific topic.