🇰🇷 한글 설명
keras-team/keras 3.12.0 버전에서 악성 tar 아카이브를 통해 filter_safe_tarinfos 검증을 우회할 수 있는 취약점이 발견되었습니다. 심볼릭 링크 항목이 경로 검증을 거치지 않아 의도된 디렉터리 외부로 파일을 생성하거나 읽고 덮어쓸 수 있는 경로 탐색 공격이 가능합니다.
💡 쉬운 설명
압축 파일을 풀 때 특정 파일이 지정된 폴더 밖으로 나가지 못하게 막는 보안 장치가 심볼릭 링크(바로가기)에는 작동하지 않는 문제입니다. 이를 통해 해커가 컴퓨터의 중요한 파일을 훔쳐보거나 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
A vulnerability in keras-team/keras version 3.12.0 allows an attacker to craft a malicious tar archive that bypasses the `filter_safe_tarinfos` validation in `keras/src/utils/file_utils.py`. Specifically, symlink entries are not subjected to the same `is_path_in_dir` validation as regular file entries, allowing symlinks to be created outside the intended extraction directory. This can lead to symlink-based file read, file overwrite, or directory escape attacks. The issue is particularly impactful on Python 3.10 and 3.11, where `filter_safe_tarinfos` is the sole defense against tar path traversal. This vulnerability is distinct from CVE-2025-12060 and other previously reported issues.
📍 영향받는 시스템
keras-team/keras version 3.12.0 (Python 3.10 및 3.11 환경에서 특히 위험)
⚔️ 공격 벡터
검증을 우회하도록 설계된 악성 심볼릭 링크가 포함된 tar 아카이브를 생성하여 압축 해제 유도
🛡️ 대응 방법
Keras 라이브러리를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 Version 값이 3.12.0인 경우 해당 취약점에 노출된 상태입니다.
pip show keras | grep Version