🔍 CVE-2021-29592

4.4
CVSS Score
MEDIUM
2021-05-14
2026-06-17 03:47
✅ 완료

🇰🇷 한글 설명

TensorFlow의 Reshape 연산자에서 1차원 텐서의 요소를 타겟 형상으로 사용할 때 발생하는 취약점입니다. 이전 보안 패치(CVE-2020-15209)가 1차원 텐서 케이스를 누락하여, null 버퍼를 지원하는 텐서를 전달할 수 있는 문제가 존재합니다.

💡 쉬운 설명

데이터의 모양을 바꾸는 과정에서 잘못된 데이터 형식을 처리하지 못해 발생하는 오류입니다. 이를 통해 프로그램이 비정상적으로 작동하거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

TensorFlow is an end-to-end open source platform for machine learning. The fix for CVE-2020-15209(https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15209) missed the case when the target shape of `Reshape` operator is given by the elements of a 1-D tensor. As such, the fix for the vulnerability(https://github.com/tensorflow/tensorflow/blob/9c1dc920d8ffb4893d6c9d27d1f039607b326743/tensorflow/lite/core/subgraph.cc#L1062-L1074) allowed passing a null-buffer-backed tensor with a 1D shape. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

📍 영향받는 시스템

TensorFlow 2.5.0 미만 버전 (2.4.2, 2.3.3, 2.2.3, 2.1.4 포함)

⚔️ 공격 벡터

조작된 1차원 텐서 형상을 포함한 모델을 TensorFlow 엔진에 입력하여 null 버퍼 접근 유도

🛡️ 대응 방법

TensorFlow를 2.5.0 이상 버전으로 업데이트하거나, 해당 버전의 보안 패치가 적용된 2.4.2, 2.3.3, 2.2.3, 2.1.4 버전으로 업데이트

🔧 검증 코드

출력된 버전 번호가 2.5.0 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
python3 -c 'import tensorflow as tf; print(tf.__version__)'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Azure Machine Learning