🇰🇷 한글 설명
TensorFlow의 체크포인트 로딩 인프라에서 파일 형식에 대한 검증이 누락되어 발생한 취약점입니다. 공격자가 외부에서 저장된 체크포인트를 수정할 수 있다면 정의되지 않은 동작, 정수 오버플로, 세그먼트 결함 및 CHECK-fail 크래시를 유발할 수 있습니다.
💡 쉬운 설명
머신러닝 모델을 불러올 때 파일이 정상적인지 확인하지 않아 발생하는 문제입니다. 악의적으로 조작된 파일을 불러오면 프로그램이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
TensorFlow is an open source platform for machine learning. In affected versions an attacker can trigger undefined behavior, integer overflows, segfaults and `CHECK`-fail crashes if they can change saved checkpoints from outside of TensorFlow. This is because the checkpoints loading infrastructure is missing validation for invalid file formats. The fixes will be included in TensorFlow 2.7.0. We will also cherrypick these commits on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
📍 영향받는 시스템
TensorFlow 2.7.0 미만 버전 (2.6.1, 2.5.2, 2.4.4 포함)
⚔️ 공격 벡터
TensorFlow 외부에서 조작된 체크포인트 파일을 로드하도록 유도
🛡️ 대응 방법
TensorFlow를 2.7.0 이상 버전으로 업데이트하거나, 지원되는 버전(2.6.1, 2.5.2, 2.4.4)의 보안 패치를 적용
🔧 검증 코드
출력된 버전이 2.7.0 미만인지 확인하여 취약 여부를 판단합니다.
python3 -c 'import tensorflow as tf; print(tf.__version__)'