🔍 CVE-2021-37642

5.5
CVSS Score
MEDIUM
2021-08-12
2026-06-17 04:00
✅ 완료

🇰🇷 한글 설명

TensorFlow의 `tf.raw_ops.ResourceScatterDiv` 구현에서 0으로 나누기 오류가 발생하는 취약점이 발견되었습니다. 이 문제는 모든 이진 연산에 공통 클래스를 사용하면서 0으로 나누는 경우를 별도로 처리하지 않아 발생합니다. 해당 문제는 TensorFlow 2.6.0 및 이전 지원 버전(2.5.1, 2.4.3, 2.3.4)에 패치가 적용되었습니다.

💡 쉬운 설명

수학 계산 중 숫자를 0으로 나누려고 할 때 프로그램이 오류를 일으키는 문제입니다. 이로 인해 머신러닝 모델을 학습시키거나 실행하는 과정에서 프로그램이 갑자기 멈출 수 있습니다.

🇺🇸 원문 (English)

TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.ResourceScatterDiv` is vulnerable to a division by 0 error. The [implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/resource_variable_ops.cc#L865) uses a common class for all binary operations but fails to treat the division by 0 case separately. We have patched the issue in GitHub commit 4aacb30888638da75023e6601149415b39763d76. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

📍 영향받는 시스템

TensorFlow 2.6.0 미만 버전 (2.5.1, 2.4.3, 2.3.4 포함)

⚔️ 공격 벡터

조작된 입력 데이터를 통해 0으로 나누기 연산을 유도하여 프로그램의 비정상 종료를 유발

🛡️ 대응 방법

TensorFlow를 최신 보안 패치가 적용된 버전(2.6.0 이상 또는 패치된 2.5.1, 2.4.3, 2.3.4)으로 업데이트

🔧 검증 코드

출력된 버전이 취약점이 해결된 버전(2.6.0 이상 또는 패치된 2.5.1, 2.4.3, 2.3.4)인지 확인

Shell / Script
pip show tensorflow | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Azure Machine Learning