🔍 CVE-2020-1171

8.8
CVSS Score
HIGH
2020-05-21
2026-08-19 17:17
✅ 완료

🇰🇷 한글 설명

Visual Studio Code의 Python 확장 프로그램이 프로젝트를 열 때 설정 파일을 로드하는 과정에서 원격 코드 실행(RCE) 취약점이 발생합니다. 공격자가 조작한 저장소를 클론하고 열도록 유도하면, 사용자의 권한으로 임의의 코드가 실행되어 시스템 제어권을 탈취당할 수 있습니다.

💡 쉬운 설명

해커가 만든 코드가 담긴 프로젝트를 VS Code로 열기만 해도 컴퓨터가 해킹될 수 있는 위험한 문제입니다. 공격자는 이를 통해 파일을 삭제하거나 새로운 계정을 만드는 등 컴퓨터를 마음대로 조작할 수 있습니다.

🇺🇸 원문 (English)

A remote code execution vulnerability exists in Visual Studio Code when the Python extension loads configuration files after opening a project. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code with the Python extension installed. Attacker-specified code would execute when the target opened the integrated terminal. The update address the vulnerability by modifying the way Visual Studio Code Python extension handles environment variables.

📍 영향받는 시스템

Visual Studio Code 및 Python extension (취약한 버전)

⚔️ 공격 벡터

공격자가 만든 악성 저장소를 사용자가 클론한 뒤 VS Code에서 열도록 유도하여 통합 터미널 실행 시 공격 코드 실행

🛡️ 대응 방법

Visual Studio Code 및 Python 확장 프로그램을 최신 버전으로 업데이트하여 환경 변수 처리 방식 개선 적용

🔧 검증 코드

설치된 VS Code 버전과 Python 확장 프로그램의 설치 여부를 확인하여 최신 업데이트 적용 상태를 점검합니다.

Shell / Script
code --version && pip show extensions | grep -i python

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Visual Studio