🔍 CVE-2023-29011

7.5
CVSS Score
HIGH
2023-04-25
2026-06-17 05:49
✅ 완료

🇰🇷 한글 설명

Git for Windows의 connect.exe가 설정 파일 경로를 C:\etc\connectrc로 하드코딩하여 사용함에 따라 발생하는 취약점입니다. 동일한 멀티유저 환경에서 공격자가 해당 경로에 악성 설정 파일을 생성할 경우 권한 상승이나 보안 위협이 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터 내의 특정 폴더에 누구나 파일을 만들 수 있는 허점이 있어, 해커가 가짜 설정 파일을 심어둘 수 있는 문제입니다. 이를 통해 사용자의 연결 정보를 가로채거나 악의적인 동작을 유도할 수 있습니다.

🇺🇸 원문 (English)

Git for Windows, the Windows port of Git, ships with an executable called `connect.exe`, which implements a SOCKS5 proxy that can be used to connect e.g. to SSH servers via proxies when certain ports are blocked for outgoing connections. The location of `connect.exe`'s config file is hard-coded as `/etc/connectrc` which will typically be interpreted as `C:\etc\connectrc`. Since `C:\etc` can be created by any authenticated user, this makes `connect.exe` susceptible to malicious files being placed there by other users on the same multi-user machine. The problem has been patched in Git for Windows v2.40.1. As a workaround, create the folder `etc` on all drives where Git commands are run, and remove read/write access from those folders. Alternatively, watch out for malicious `<drive>:\etc\connectrc` files on multi-user machines.

📍 영향받는 시스템

Git for Windows 2.40.1 미만 버전

⚔️ 공격 벡터

멀티유저 환경에서 공격자가 C:\etc\connectrc 경로에 악성 설정 파일을 미리 생성하여 배치함

🛡️ 대응 방법

Git for Windows를 v2.40.1 이상으로 업데이트하거나, 모든 드라이브의 etc 폴더를 생성한 후 읽기/쓰기 권한을 제한함

🔧 검증 코드

출력된 Git 버전이 2.40.1보다 낮은지 확인하여 취약 여부를 판단함

Shell / Script
git --version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Windows Server