🔍 CVE-2026-52860

7.8
CVSS Score
HIGH
2026-06-11
2026-09-17 12:18
✅ 완료

🇰🇷 한글 설명

Vim 9.2.0597 미만 버전에서 Python omni-completion 기능이 현재 버퍼의 함수 및 클래스 정의를 재구성할 때 exec()를 사용하여 코드를 실행하는 취약점이 발견되었습니다. 공격자가 조작한 버퍼를 열고 자동 완성 기능을 실행하면 악의적인 Python 코드가 실행될 수 있습니다. 기존의 import 관련 완화 조치로는 이 경로를 방어할 수 없습니다.

💡 쉬운 설명

텍스트 편집기인 Vim에서 자동 완성 기능을 사용할 때, 파일 안에 숨겨진 악성 코드가 자동으로 실행될 수 있는 보안 결함입니다. 해커가 만든 특수한 파일을 열기만 해도 컴퓨터에서 원치 않는 명령이 실행될 위험이 있습니다.

🇺🇸 원문 (English)

Vim is an open source, command line text editor. Prior to version 9.2.0597, Vim's Python omni-completion executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. Python evaluates function default values, parameter annotations, and class base expressions at definition time, so a hostile buffer can execute attacker-controlled Python expressions during omni-completion. The existing g:pythoncomplete_allow_import mitigation (GHSA-52mc-rq6p-rc7c) does not cover this path, because the attacker-controlled code is not a harvested import/from statement. This issue has been patched in version 9.2.0597.

📍 영향받는 시스템

Vim version 9.2.0597 미만 버전

⚔️ 공격 벡터

공격자가 조작한 Python 코드가 포함된 텍스트 파일을 사용자가 Vim으로 열고 자동 완성 기능을 실행할 때 발생

🛡️ 대응 방법

Vim을 최신 버전인 9.2.0597 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 9.2.0597보다 낮은지 확인하십시오.

Shell / Script
vim --version | head -n 1 | grep -oE 'Vim (9\.[0-9]+(\.[0-9]+)?|[0-9]+)'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python