🇰🇷 한글 설명
e-book 관리 프로그램인 calibre의 9.12.0 이전 버전에서 발생하는 취약점입니다. 악의적인 EPUB, OPF, PDF 파일 내의 composite_template 메타데이터를 처리할 때, 중첩된 python: 템플릿 호출이 보안 설정을 우회하여 임의의 파이썬 코드를 실행할 수 있습니다.
💡 쉬운 설명
악성 코드가 포함된 전자책 파일을 열기만 해도 해커가 사용자의 컴퓨터에서 마음대로 명령을 실행할 수 있는 위험한 보안 결함입니다. 이 문제는 전자책 파일 안에 숨겨진 특수한 명령어를 프로그램이 잘못 처리하면서 발생합니다.
🇺🇸 원문 (English)
calibre is an e-book manager. Prior to 9.12.0, calibre processes attacker-controlled composite_template metadata from a malicious EPUB, OPF, PDF, or similar file through program: and a nested template() call whose formatter does not inherit allow_python_templates=False, allowing a nested python: template to reach compile_python_template and execute arbitrary Python code when the file is opened or imported. This issue is fixed in version 9.12.0.
📍 영향받는 시스템
calibre 9.12.0 미만 모든 버전
⚔️ 공격 벡터
사용자가 조작된 전자책 파일(EPUB, OPF, PDF 등)을 calibre로 열거나 가져올 때 발생
🛡️ 대응 방법
calibre를 최신 버전인 9.12.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 9.12.0보다 낮으면 취약한 상태이며, 9.12.0 이상이면 안전합니다.
calibre-debug --version 2>/dev/null || calibre --version 2>/dev/null