🔍 CVE-2026-52805

8.7
CVSS Score
HIGH
2026-06-24
2026-06-26 05:16
✅ 완료

🇰🇷 한글 설명

Gogs의 저장소 마이그레이션 기능에서 서버 측 요청 위조(SSRF) 취약점이 발견되었습니다. 공격자는 초기 URL 검증을 우회하는 리다이렉트를 이용하여 차단된 내부 엔드포인트에 접근하고 내부 저장소 내용을 탈취할 수 있습니다.

💡 쉬운 설명

외부 사이트 주소를 입력하면 서버가 그 내용을 가져오는 기능을 악용하는 공격입니다. 겉으로는 안전한 주소처럼 보이지만, 실제로는 서버 내부의 비밀 데이터가 있는 곳으로 연결되도록 속이는 방식입니다.

🇺🇸 원문 (English)

Gogs is an open source self-hosted Git service. Prior to 0.14.3, a Server-Side Request Forgery (SSRF) vulnerability exists in the repository migration functionality. The application validates only the initially submitted URL hostname, but git clone --mirror follows HTTP redirects. An authenticated user can submit a public URL that redirects to a blocked internal endpoint (e.g., 127.0.0.1), importing the internal repository's contents into an attacker-controlled repository. This vulnerability is fixed in 0.14.3.

📍 영향받는 시스템

Gogs 0.14.3 미만 버전

⚔️ 공격 벡터

인증된 사용자가 리다이렉트가 포함된 외부 URL을 제출하여 내부 네트워크로 SSRF 공격 수행

🛡️ 대응 방법

Gogs를 최신 버전인 0.14.3 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 정보가 0.14.3 미만인 경우 취약한 상태입니다.

Shell / Script
curl -s http://<gogs-server-address>/api/version | grep -E '0\.[0-1][0-4]\.[0-3]'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git