🇰🇷 한글 설명
python-gnupg 0.3.5의 shell_quote 함수가 문자열을 올바르게 인용하지 않아, '$(' 같은 셸 메타문자를 통해 임의의 코드 실행을 허용하는 취약점입니다. CVE-2013-7323 수정이 불완전했기 때문에 발생했습니다.
💡 쉬운 설명
Python-GnuPG가 사용자 입력을 제대로 검증하지 않아 특수 문자로 프로그램이 의도하지 않은 명령을 실행하게 만들 수 있습니다. 공격자가 애플리케이션에 접근할 수 있다면 시스템 제어 권한까지 얻을 수 있습니다.
🇺🇸 원문 (English)
The shell_quote function in python-gnupg 0.3.5 does not properly quote strings, which allows context-dependent attackers to execute arbitrary code via shell metacharacters in unspecified vectors, as demonstrated using "$(" command-substitution sequences, a different vulnerability than CVE-2014-1928. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.
📍 영향받는 시스템
python-gnupg 0.3.5 이하 모든 버전
⚔️ 공격 벡터
GnuPG 함수에 '$(' 명령 대체 시퀀스를 포함한 특수 문자열을 입력하여 셸 명령 실행
🛡️ 대응 방법
python-gnupg를 0.3.6 이상 패치 버전으로 업그레이드
🔧 검증 코드
Version이 0.3.5 이하면 취약 상태이며, 0.3.6 이상이면 패치됨
pip show python-gnupg 2>/dev/null | grep Version