🔍 CVE-2022-35976

5.2
CVSS Score
MEDIUM
2022-08-18
2026-06-17 04:52
✅ 완료

🇰🇷 한글 설명

VSCode의 GitOps Tools Extension이 Kubernetes 클러스터와 통신할 때 사용하는 kubeconfig 파일을 악용하여 사용자 권한으로 임의 코드를 실행할 수 있는 취약점입니다. 신뢰할 수 없는 프로세스나 사용자가 생성 또는 수정한 kubeconfig를 사용할 경우 위험에 노출됩니다.

💡 쉬운 설명

VSCode의 특정 확장 프로그램이 설정 파일을 읽을 때, 나쁜 의도로 만들어진 파일을 읽으면 해커가 내 컴퓨터에서 마음대로 명령을 실행할 수 있습니다. 믿을 수 없는 설정 파일을 사용하지 않는 것이 중요합니다.

🇺🇸 원문 (English)

The GitOps Tools Extension for VSCode relies on kubeconfigs in order to communicate with Kubernetes clusters. A specially crafted kubeconfig leads to arbitrary code execution on behalf of the user running VSCode. Users relying on kubeconfigs that are generated or altered by other processes or users are affected by this issue. Please note that the vulnerability is specific to this extension, and the same kubeconfig would not result in arbitrary code execution when used with kubectl. Using only trust-worthy kubeconfigs is a safe mitigation. However, updating to the latest version of the extension is still highly recommended.

📍 영향받는 시스템

VSCode GitOps Tools Extension (이전 버전)

⚔️ 공격 벡터

악의적으로 조작된 kubeconfig 파일을 통해 VSCode 확장 프로그램 내에서 임의 코드 실행

🛡️ 대응 방법

GitOps Tools Extension을 최신 버전으로 업데이트하고 신뢰할 수 있는 kubeconfig만 사용

🔧 검증 코드

명령어 결과에 gitops-tools가 나타나면 해당 확장 프로그램이 설치된 것이며, 최신 버전 여부는 VSCode 확장 관리자에서 확인해야 합니다.

Shell / Script
code --list-extensions | grep gitops-tools

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Kubernetes