🔍 CVE-2021-28792

7.8
CVSS Score
HIGH
2021-03-18
2026-06-17 03:46
✅ 완료

🇰🇷 한글 설명

Visual Studio Code의 비공식 Swift Development Environment 확장 프로그램 2.12.1 미만 버전에서 발생하는 취약점입니다. 공격자가 조작된 설정값을 포함한 워크스페이스를 통해 원격에서 임의의 코드를 실행할 수 있습니다.

💡 쉬운 설명

해커가 만든 특수한 프로젝트 파일을 VS Code로 열기만 해도 컴퓨터에 악성 프로그램이 자동으로 실행될 수 있는 위험한 보안 결함입니다. Swift 개발 도구의 설정 경로를 악용하여 공격을 수행합니다.

🇺🇸 원문 (English)

The unofficial Swift Development Environment extension before 2.12.1 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted sourcekit-lsp.serverPath, swift.languageServerPath, swift.path.sourcekite, swift.path.sourcekiteDockerMode, swift.path.swift_driver_bin, or swift.path.shell configuration value that triggers execution upon opening the workspace.

📍 영향받는 시스템

Visual Studio Code Swift Development Environment extension (version < 2.12.1)

⚔️ 공격 벡터

조작된 설정값(sourcekit-lsp.serverPath 등)이 포함된 악성 워크스페이스 파일을 사용자가 열도록 유도

🛡️ 대응 방법

Swift Development Environment 확장 프로그램을 2.12.1 버전 이상으로 즉시 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 2.12.1보다 낮으면 취약한 상태이며, 2.12.1 이상이면 안전합니다.

Shell / Script
code --list-extensions | grep swift-development-environment && code --list-extensions | grep swift-development-environment | xargs -I {} code --extension-version {} 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Visual Studio