🇰🇷 한글 설명
llm CLI 도구 0.27.1 이하 버전에서 --functions 인자를 통해 사용자 제공 Python 코드를 검증 없이 exec()로 직접 실행하는 취약점. 공격자가 악의적 명령을 사회공학으로 유도하여 실행시키면 시스템 전체 제어가 가능합니다.
💡 쉬운 설명
llm 프로그램이 사용자가 입력한 코드를 바로 실행해서 악의적인 코드를 숨겨 사용자를 속여 실행시킬 수 있습니다. 실행되면 해커가 컴퓨터를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
The llm CLI tool thru 0.27.1 contains a critical code injection vulnerability via its --functions command-line argument. This argument is intended to allow users to provide custom Python function definitions. However, the tool directly executes the provided code using the unsafe exec() function without any sanitization, sandboxing, or security restrictions. An attacker can exploit this by crafting a malicious llm command with arbitrary Python code in the --functions argument and using social engineering to trick a victim into running it. This leads to arbitrary code execution on the victim's system, potentially granting the attacker full control.
📍 영향받는 시스템
llm CLI tool 버전 0.27.1 이하
⚔️ 공격 벡터
--functions 인자에 악의적 Python 코드를 포함시킨 llm 명령을 사회공학으로 사용자 실행 유도
🛡️ 대응 방법
llm을 최신 버전(0.27.2 이상)으로 즉시 업그레이드
🔧 검증 코드
출력된 버전이 0.27.2 이상이면 안전, 0.27.1 이하면 취약 상태
llm --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'