🇰🇷 한글 설명
kotaemon 0.12.0 이하 버전의 check_connection 엔드포인트에서 안전하지 않은 역직렬화 취약점이 발견되었습니다. 공격자가 __type__ 필드가 포함된 조작된 YAML/JSON 입력을 전송하여 임의의 파이썬 클래스를 생성할 수 있으며, 이를 통해 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
해커가 특수하게 조작된 데이터를 보내면 서버가 이를 잘못 해석하여 해커가 원하는 명령어를 마음대로 실행할 수 있는 보안 약점입니다. 인증 없이도 공격이 가능하여 매우 위험합니다.
🇺🇸 원문 (English)
kotaemon through 0.12.0 contains an insecure deserialization vulnerability in the check_connection endpoint that allows unauthenticated attackers to instantiate arbitrary Python classes by supplying crafted YAML/JSON input with a __type__ field. Attackers can exploit this to override the __type__ field with subprocess.check_output and arbitrary arguments, achieving remote code execution with application process privileges.
📍 영향받는 시스템
kotaemon 0.12.0 이하 모든 버전
⚔️ 공격 벡터
인증되지 않은 공격자가 check_connection 엔드포인트에 조작된 YAML/JSON 데이터를 전송하여 공격
🛡️ 대응 방법
kotaemon을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 0.12.0 이하인지 확인하십시오.
pip show kotaemon | grep Version