🇰🇷 한글 설명
Unsloth Zoo 버전 2025.9.9부터 2026.8.14 이전 버전에서 모델 로딩 컴파일 경로에 코드 주입 취약점이 발견되었습니다. 공격자가 악성 config.json 파일 내의 model_type 값에 개행 문자를 삽입하여 임의의 파이썬 코드를 실행할 수 있으며, 이를 통해 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
악성 모델 파일을 불러올 때, 파일 안에 숨겨진 특수 명령어가 실행되어 해커가 컴퓨터를 마음대로 조종할 수 있는 문제입니다. 모델 설정 파일에 몰래 코드를 적어두는 방식으로 공격이 이루어집니다.
🇺🇸 원문 (English)
Unsloth Zoo versions 2025.9.9 before 2026.8.14, as implemented in Unsloth 2025.9.9 through 2026.8.19, contains a code injection vulnerability in the model-loading compile path where the get_transformers_model_type() function in hf_utils.py collects model_type values from nested model configurations without enforcing a character allowlist, allowing newlines and arbitrary Python source to survive normalization. Attackers can embed a newline in a nested model_type value within a malicious model's config.json to terminate the generated import statement and execute arbitrary Python code via exec() in unsloth_compile_transformers(), achieving remote code execution as the loading user when the model is loaded for training or inference.
📍 영향받는 시스템
Unsloth Zoo versions 2025.9.9 before 2026.8.14 (implemented in Unsloth 2025.9.9 through 2026.8.19)
⚔️ 공격 벡터
악성 config.json 파일의 model_type 값에 개행 문자와 파이썬 코드를 삽입하여 모델 로딩 시 실행
🛡️ 대응 방법
Unsloth Zoo를 2026.8.14 이후 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 버전이 2026.8.14 미만인 경우 해당 취약점에 노출된 상태입니다.
pip show unsloth-zoo | grep Version