🔍 CVE-2016-7091

4.4
CVSS Score
MEDIUM
2016-12-22
2026-06-17 00:52
✅ 완료

🇰🇷 한글 설명

sudo의 기본 설정에서 INPUTRC 환경변수를 보존하여 정보 공개 취약점이 발생합니다. readline을 사용하는 제한된 프로그램에 대한 sudo 접근 권한이 있는 로컬 사용자가 특수하게 조작된 파일을 통해 상승된 권한으로 파일 내용을 읽을 수 있습니다.

💡 쉬운 설명

sudo 사용 시 특정 환경변수(INPUTRC)가 유지되어 일반 사용자가 관리자 권한으로 파일을 읽을 수 있는 문제입니다. 로컬 사용자만 공격 가능하며 특정 권한과 조건이 필요합니다.

🇺🇸 원문 (English)

sudo: It was discovered that the default sudo configuration on Red Hat Enterprise Linux and possibly other Linux implementations preserves the value of INPUTRC which could lead to information disclosure. A local user with sudo access to a restricted program that uses readline could use this flaw to read content from specially formatted files with elevated privileges provided by sudo.

📍 영향받는 시스템

Red Hat Enterprise Linux 및 다른 Linux 배포판의 sudo 기본 설정 (1.8.x 버전)

⚔️ 공격 벡터

sudo 명령 실행 시 INPUTRC 환경변수를 특수하게 조작된 파일 경로로 설정하여 권한 상승으로 파일 내용 읽기

🛡️ 대응 방법

sudo 설정 업데이트 또는 /etc/sudoers에서 env_keep 목록에 INPUTRC 제거

🔧 검증 코드

명령어가 VULNERABLE을 출력하면 취약점이 존재하며, SAFE를 출력하면 안전한 상태입니다.

Shell / Script
grep -h 'env_keep' /etc/sudoers /etc/sudoers.d/* 2>/dev/null | grep -q INPUTRC && echo 'VULNERABLE' || echo 'SAFE'

📊 CVSS Vector String

CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

💻 영향받는 소프트웨어

Sudo