🔍 CVE-2021-29591

7.3
CVSS Score
HIGH
2021-05-14
2026-06-17 03:47
✅ 완료

🇰🇷 한글 설명

TensorFlow Lite 그래프 내 노드 간 루프 존재 여부를 확인하지 않아 발생하는 취약점입니다. 공격자가 악의적으로 조작된 모델을 통해 평가 과정에서 무한 루프를 유발하거나 스택 오버플로우를 일으킬 수 있습니다.

💡 쉬운 설명

인공지능 모델 파일에 잘못된 명령을 넣어 컴퓨터가 무한히 반복 계산을 하게 만들거나 시스템을 멈추게 할 수 있는 문제입니다. 이를 통해 프로그램이 강제로 종료되거나 오류가 발생할 수 있습니다.

🇺🇸 원문 (English)

TensorFlow is an end-to-end open source platform for machine learning. TFlite graphs must not have loops between nodes. However, this condition was not checked and an attacker could craft models that would result in infinite loop during evaluation. In certain cases, the infinite loop would be replaced by stack overflow due to too many recursive calls. For example, the `While` implementation(https://github.com/tensorflow/tensorflow/blob/106d8f4fb89335a2c52d7c895b7a7485465ca8d9/tensorflow/lite/kernels/while.cc) could be tricked into a scneario where both the body and the loop subgraphs are the same. Evaluating one of the subgraphs means calling the `Eval` function for the other and this quickly exhaust all stack space. 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. Please consult our security guide(https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.

📍 영향받는 시스템

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

⚔️ 공격 벡터

악의적으로 조작된 TFlite 모델 파일을 로드하여 평가(Evaluation)를 수행할 때 발생

🛡️ 대응 방법

TensorFlow 2.5.0 이상 버전으로 업데이트하거나 해당 보안 패치가 적용된 버전을 사용

🔧 검증 코드

출력된 TensorFlow 버전이 2.5.0 미만인지 확인

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:H/I:L/A:H

💻 영향받는 소프트웨어

Azure Machine Learning