🔍 CVE-2021-22863

8.1
CVSS Score
HIGH
2021-03-03
2026-06-17 03:37
✅ 완료

🇰🇷 한글 설명

GitHub Enterprise Server의 GraphQL API에서 부적절한 접근 제어 취약점이 발견되었습니다. 인증된 사용자가 권한 없이 풀 리퀘스트의 유지 관리자 협업 권한을 수정하여, 자신이 유지 관리자인 저장소의 헤드 브랜치에 접근할 수 있는 위험이 있습니다.

💡 쉬운 설명

로그인한 사용자가 허가되지 않은 권한을 마음대로 변경할 수 있는 보안 결함입니다. 이를 통해 공격자는 원래 접근할 수 없던 코드 수정 권한을 얻어낼 수 있습니다.

🇺🇸 원문 (English)

An improper access control vulnerability was identified in the GitHub Enterprise Server GraphQL API that allowed authenticated users of the instance to modify the maintainer collaboration permission of a pull request without proper authorization. By exploiting this vulnerability, an attacker would be able to gain access to head branches of pull requests opened on repositories of which they are a maintainer. Forking is disabled by default for organization owned private repositories and would prevent this vulnerability. Additionally, branch protections such as required pull request reviews or status checks would prevent unauthorized commits from being merged without further review or validation. This vulnerability affected all versions of GitHub Enterprise Server since 2.12.22 and was fixed in versions 2.20.24, 2.21.15, 2.22.7 and 3.0.1. This vulnerability was reported via the GitHub Bug Bounty program.

📍 영향받는 시스템

GitHub Enterprise Server 2.12.22 이후 모든 버전 (2.20.24, 2.21.15, 2.22.7, 3.0.1 미만 버전)

⚔️ 공격 벡터

인증된 사용자가 GraphQL API를 악용하여 풀 리퀘스트의 협업 권한을 조작함

🛡️ 대응 방법

GitHub Enterprise Server를 수정된 버전(2.20.24, 2.21.15, 2.22.7 또는 3.0.1 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 정보가 보안 패치가 적용된 수정 버전 이상인지 확인하십시오.

Shell / Script
curl -s https://api.github.com/version | grep -E '2.12|2.20|2.21|2.22|3.0'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring for GraphQL