🇰🇷 한글 설명
GNU Bash 4.3 및 이전 버전에서 환경 변수의 함수 정의를 부적절하게 파싱하여 원격 공격자가 임의의 코드를 실행하거나 메모리 접근 위반을 유발할 수 있습니다. OpenSSH sshd의 ForceCommand, Apache HTTP Server의 CGI 모듈, DHCP 클라이언트 등 권한 경계를 넘는 환경 설정 시 악용될 수 있습니다.
💡 쉬운 설명
Bash가 환경 변수에 숨겨진 악의적인 코드를 제대로 확인하지 못해, 공격자가 시스템에 명령을 몰래 실행할 수 있는 문제입니다. 특히 SSH나 웹 서버를 통해 원격으로 공격 가능합니다.
🇺🇸 원문 (English)
GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code or cause a denial of service (uninitialized memory access, and untrusted-pointer read and write operations) via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271 and CVE-2014-7169.
📍 영향받는 시스템
GNU Bash 4.3 이하 모든 버전 (특히 RHEL/CentOS 6-7, Ubuntu 12.04 LTS, Debian 7.x)
⚔️ 공격 벡터
SSH 접속, CGI 스크립트 실행, DHCP 클라이언트 설정, HTTP 요청 등을 통해 악의적인 환경 변수 주입
🛡️ 대응 방법
Bash를 4.3-27 이상으로 업데이트하거나 glibc/libc 보안 패치 적용
🔧 검증 코드
Bash 버전이 4.3보다 높으면 안전, 4.3 이하면 취약 (정확한 패치 수준 확인은 dpkg -l bash 또는 rpm -q bash 사용)
bash --version | grep -oP 'version \K[0-9]+\.[0-9]+' | awk '{if($1>4.3) print "SAFE"; else print "VULNERABLE"}'