🔍 CVE-2026-52813

10.0
CVSS Score
CRITICAL
2026-06-24
2026-06-26 05:16
✅ 완료

🇰🇷 한글 설명

Gogs 오픈소스 Git 서비스의 0.14.3 미만 버전에서 조직 이름에 경로 탐색 시퀀스(../)를 포함할 수 있는 취약점이 발견되었습니다. 공격자는 이를 통해 파일 시스템의 임의 위치에 데이터를 저장하거나 가져올 수 있으며, Git 훅 설정을 덮어써 원격 코드 실행(RCE)을 수행할 수 있습니다.

💡 쉬운 설명

조직 이름을 만들 때 특수 문자를 사용하여 서버의 허용되지 않은 폴더에 파일을 저장할 수 있는 보안 결함입니다. 이를 악용하면 해커가 서버를 원격으로 조종할 수 있어 매우 위험합니다.

🇺🇸 원문 (English)

Gogs is an open source self-hosted Git service. Prior to 0.14.3, organization names containing path traversal sequences (../) are accepted by Gogs, and repositories under them are written to paths following these path traversals. This allows storing/retrieving data for repositories at arbitrary locations on the filesystem. By creating nested structure of Git repositories, one can overwrite the other's hooks configuration to result in Remote Code Execution (RCE). This vulnerability is fixed in 0.14.3.

📍 영향받는 시스템

Gogs versions prior to 0.14.3

⚔️ 공격 벡터

조직 생성 시 경로 탐색(Path Traversal) 문자를 포함한 이름을 입력하여 파일 시스템 접근 및 Git 훅 조작

🛡️ 대응 방법

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

🔧 검증 코드

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

Shell / Script
curl -s http://<target-gogs-url>/app/gogs_version | grep -E '0\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git