🇰🇷 한글 설명
aider(aider-chat)가 실행 시 저장소 루트의 .aider.conf.yml 파일을 자동으로 로드하는 과정에서 발생하는 취약점입니다. 공격자가 조작한 설정 파일 내의 test-cmd 또는 lint-cmd 명령어가 사용자 확인 없이 셸을 통해 실행되어 임의의 명령어가 실행될 수 있습니다.
💡 쉬운 설명
해커가 만든 프로젝트를 내려받아 aider를 실행하기만 해도, 컴퓨터에 몰래 악성 명령어가 실행될 수 있는 보안 결함입니다. 설정 파일에 숨겨진 명령어가 사용자의 허락 없이 자동으로 작동하는 것이 문제입니다.
🇺🇸 원문 (English)
aider (aider-chat) automatically loads a .aider.conf.yml configuration file from the root of the git repository it is launched in. A crafted repository can set test-cmd (executed at startup) or lint-cmd (executed on the first file edit), which aider runs through a shell (subprocess with shell=True) without any user confirmation, LLM interaction, or API key. Consequently, a user who clones and runs aider inside an attacker-supplied repository achieves arbitrary command execution on their machine. The behavior is long-standing and was confirmed on 0.86.3.dev (current main).
📍 영향받는 시스템
aider (aider-chat) 0.86.3.dev 및 이전 버전
⚔️ 공격 벡터
공격자가 조작한 .aider.conf.yml 파일이 포함된 Git 저장소를 클론하고 aider를 실행함
🛡️ 대응 방법
aider를 최신 버전으로 업데이트하거나, 신뢰할 수 없는 저장소에서 aider를 실행할 때 주의해야 합니다.
🔧 검증 코드
출력된 버전이 0.86.3.dev 이하인지 확인하여 취약 여부를 판단합니다.
pip show aider | grep Version