🇰🇷 한글 설명
Flair 0.15.0 및 0.15.1 버전의 공식 휠 파일에 포함된 clustering.py 모듈에서 임의의 파이썬 코드가 실행될 수 있는 취약점이 발견되었습니다. ClusteringModel.load 메서드가 pickle.loads를 사용하여 모델 파일을 로드할 때 공격자가 조작한 파일을 사용하면 권한 탈취가 가능합니다. 이전 취약점(CVE-2024-10073)에서 수정되었다고 기록되었으나, 실제 배포된 패키지에는 해당 모듈이 여전히 남아 있어 위험이 지속됩니다.
💡 쉬운 설명
악의적인 사용자가 만든 가짜 AI 모델 파일을 불러오기만 해도 컴퓨터가 해커의 명령을 실행하게 되는 보안 결함입니다. 모델을 로드하는 과정에서 검증되지 않은 코드가 함께 실행될 수 있어 위험합니다.
🇺🇸 원문 (English)
The official Flair wheels for 0.15.0 and 0.15.1 still contain flair/models/clustering.py, whose ClusteringModel.load static method returns pickle.loads(joblib.load(str(model_file))) and so executes arbitrary Python while loading a model file. Loading a model supplied by an attacker therefore runs that attacker's code with the privileges of the loading process. This is the same sink and the same file as CVE-2024-10073, which records 0.15.0 as the fixed version on the basis that clustering support was dropped in that release; the module was removed from the documented API but remains present in the distributed artifact and reachable by importing flair.models.clustering directly, so the earlier record's fixed version does not hold for the shipped package.
📍 영향받는 시스템
Flair library versions 0.15.0 and 0.15.1
⚔️ 공격 벡터
공격자가 조작된 모델 파일을 제공하고 사용자가 이를 ClusteringModel.load 메서드로 로드하도록 유도
🛡️ 대응 방법
Flair 라이브러리를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 해당 모듈을 사용하지 않도록 주의하십시오.
🔧 검증 코드
출력된 버전이 0.15.0 또는 0.15.1인 경우 해당 취약점에 노출된 상태입니다.
pip show flair | grep -E 'Version'