🔍 CVE-2006-1542

3.7
CVSS Score
LOW
2006-03-30
2026-06-16 22:23
✅ 완료

🇰🇷 한글 설명

Python 2.4.2 이하에서 발생하는 스택 기반 버퍼 오버플로우 취약점으로, 긴 이름의 디렉토리에서 스크립트 실행 시 realpath 함수와 관련하여 스택 오버플로우가 발생합니다. 이를 통해 권한 상승이 가능할 수 있으나, 실제 공격 시나리오는 제한적입니다.

💡 쉬운 설명

Python이 매우 긴 경로명을 가진 디렉토리에서 실행될 때 메모리 오류가 발생할 수 있습니다. 이 오류를 악용하면 컴퓨터 권한을 상승시킬 수 있지만, 실제로 이를 활용하기는 어렵습니다.

🇺🇸 원문 (English)

Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0.3 with libc 2.3.5, allows local users to cause a "stack overflow," and possibly gain privileges, by running a script from a current working directory that has a long name, related to the realpath function. NOTE: this might not be a vulnerability. However, the fact that it appears in a programming language interpreter could mean that some applications are affected, although attack scenarios might be limited because the attacker might already need to cross privilege boundaries to cause an exploitable program to be placed in a directory with a long name; or, depending on the method that Python uses to determine the current working directory, setuid applications might be affected.

📍 영향받는 시스템

Python 2.4.2 이하, Linux 2.6.12.5, gcc 4.0.3, libc 2.3.5 환경

⚔️ 공격 벡터

긴 경로명의 디렉토리에서 Python 스크립트 실행

🛡️ 대응 방법

Python을 2.4.3 이상으로 업그레이드

🔧 검증 코드

버전 정보가 출력되면 취약한 버전이 설치되어 있습니다.

Shell / Script
python --version 2>&1 | grep -oE '2\.[0-4]\.[0-2]'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python