🔍 CVE-2026-52797

8.5
CVSS Score
HIGH
2026-06-24
2026-06-25 14:19
✅ 완료

🇰🇷 한글 설명

Gogs 오픈소스 Git 서비스의 0.14.0 미만 버전에서 발생하는 취약점입니다. 권한이 있는 사용자가 git diff 명령에 전달되는 값을 조작하여 필터링을 우회하고, 임의의 경로에 비교 결과를 작성할 수 있습니다.

💡 쉬운 설명

로그인한 사용자가 시스템의 명령어를 교묘하게 조작하여 서버의 원하는 위치에 파일을 마음대로 만들 수 있는 보안 결함입니다. 이를 통해 서버의 중요한 설정 파일을 덮어쓰거나 시스템을 망가뜨릴 수 있습니다.

🇺🇸 원문 (English)

Gogs is an open source self-hosted Git service. Prior to 0.14.0, as an authorized user, an intruder can dictate the value which is passed to the git diff command which, together with bypassing the filtering of the passed value, allows the user to bypass the target directory and write the result of the comparison to any arbitrary path. This vulnerability is fixed in 0.14.0.

📍 영향받는 시스템

Gogs versions prior to 0.14.0

⚔️ 공격 벡터

권한을 가진 사용자가 git diff 명령에 특수하게 조작된 인자값을 전달하여 경로 우회 및 파일 쓰기 수행

🛡️ 대응 방법

Gogs 버전을 0.14.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 정보가 0.14.0 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
curl -s http://<target_ip>:<port>/app/gogs/version | grep -E '0\.[0-9]+(\.[0-9]+)?'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git