🔍 CVE-2014-1624

3.3
CVSS Score
LOW
2014-01-28
2026-04-29 01:13
✅ 완료

🇰🇷 한글 설명

python-xdg 0.25의 xdg.BaseDirectory.get_runtime_dir 함수에 레이스 컨디션 취약점이 존재합니다. 공격자가 /tmp/pyxdg-runtime-dir-fallback-victim을 사전 생성 후 symlink로 변경하여 임의의 파일을 덮어쓸 수 있습니다.

💡 쉬운 설명

임시 폴더 생성 과정의 시간차를 이용해 공격자가 다른 사용자의 파일을 수정할 수 있는 결함입니다. /tmp에서 파일을 안전하게 생성하지 않아 발생합니다.

🇺🇸 원문 (English)

Race condition in the xdg.BaseDirectory.get_runtime_dir function in python-xdg 0.25 allows local users to overwrite arbitrary files by pre-creating /tmp/pyxdg-runtime-dir-fallback-victim to point to a victim-owned location, then replacing it with a symlink to an attacker-controlled location once the get_runtime_dir function is called.

📍 영향받는 시스템

python-xdg 0.25 및 이전 버전

⚔️ 공격 벡터

로컬 사용자가 /tmp/pyxdg-runtime-dir-fallback-victim을 미리 생성하고 get_runtime_dir 함수 호출 시 symlink로 교체하여 목표 파일 쓰기

🛡️ 대응 방법

python-xdg를 0.26 이상으로 업그레이드하거나 /tmp 디렉토리 권한 재설정

🔧 검증 코드

설치된 버전이 0.26 이상이면 안전함. 0.25 이하 또는 미설치 상태 확인 필요

Shell / Script
python3 -c "import xdg; print(xdg.__version__)" 2>/dev/null || apt-cache policy python-xdg | grep Installed

📊 CVSS Vector String

CVSS Vector
AV:L/AC:M/Au:N/C:N/I:P/A:P

💻 영향받는 소프트웨어

Python