🔍 CVE-2018-12029

7.0
CVSS Score
HIGH
2018-06-17
2026-06-17 01:37
✅ 완료

🇰🇷 한글 설명

Phusion Passenger 3.x에서 5.x(5.3.2 미만) 버전의 nginx 모듈에서 발생하는 레이스 컨디션 취약점입니다. 권한이 불충분한 passenger_instance_registry_dir 설정 시, 파일 생성과 소유권 변경 사이의 간극을 이용해 심볼릭 링크를 생성함으로써 루트 권한을 획득할 수 있습니다.

💡 쉬운 설명

프로그램이 파일을 만들고 주인을 바꾸는 아주 짧은 찰나의 순간을 노려 공격하는 방식입니다. 공격자가 가짜 연결 통로(심볼릭 링크)를 만들어 놓으면, 프로그램이 중요한 시스템 파일을 공격자의 파일로 착각해 권한을 넘겨주게 됩니다.

🇺🇸 원문 (English)

A race condition in the nginx module in Phusion Passenger 3.x through 5.x before 5.3.2 allows local escalation of privileges when a non-standard passenger_instance_registry_dir with insufficiently strict permissions is configured. Replacing a file with a symlink after the file was created, but before it was chowned, leads to the target of the link being chowned via the path. Targeting sensitive files such as root's crontab file allows privilege escalation.

📍 영향받는 시스템

Phusion Passenger 3.x ~ 5.x (5.3.2 미만 버전)

⚔️ 공격 벡터

로컬 권한을 가진 사용자가 레이스 컨디션을 이용해 심볼릭 링크를 생성하여 권한 상승 시도

🛡️ 대응 방법

Phusion Passenger를 5.3.2 이상의 최신 버전으로 업데이트하거나, passenger_instance_registry_dir의 디렉토리 권한을 엄격하게 제한하십시오.

🔧 검증 코드

출력된 Passenger 버전이 5.3.2 미만인지 확인하십시오.

Shell / Script
passenger-install --version 2>/dev/null || passenger-status 2>/dev/null | grep 'Passenger version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Nginx