CVE-2026-25714:
취약성 분석 및 완화
개요
CVE-2026-25714 is a missing authorization vulnerability in Gitea that allows a public-only scoped API token to access private organization data, representing an incomplete fix for CVE-2025-68941. It affects Gitea versions up to and including 1.26.1, with the patch available in version 1.26.2. The advisory was published on June 5, 2026, and reviewed in the GitHub Advisory Database on June 16, 2026. It carries a CVSS v3.1 base score of 4.3 (Moderate) (Github Advisory, Gitea Advisory).
기술적 세부 사항
The vulnerability is classified as CWE-862 (Missing Authorization) and stems from two related flaws in routers/api/v1/api.go. First, the /user/orgs endpoint (line 1599) is missing the checkTokenPublicOnly() middleware call that is correctly applied to the adjacent /users/{username}/orgs route, allowing public-only tokens to bypass scope enforcement on that endpoint. Second, the checkTokenPublicOnly() function uses a Go switch statement (lines 253–295) that evaluates only the first matching case; for routes with both [User, Organization] scope categories, the Organization case matches first, passes its nil-context checks, and the User visibility check is never reached, silently bypassing the restriction. Both issues were introduced by PR #32204, which was the original fix for CVE-2025-68941 (Github Advisory, Gitea Advisory).
영향
An authenticated user holding a public-only scoped API token can enumerate private and limited-visibility organizations they belong to via the /user/orgs endpoint, violating the declared scope constraints of the token. The impact is limited to confidentiality — no data modification or service disruption is possible — but the exposure of private organization membership could facilitate reconnaissance or targeted attacks against those organizations. Integrity and availability are not affected (Github Advisory).
착취 단계
- Obtain a public-only scoped token: Log into a Gitea instance running version ≤ 1.26.1, navigate to Settings > Applications, create a new API token, and check the "public only" scope option.
- Call the vulnerable endpoint: Issue a request to the
/user/orgsAPI endpoint using the public-only token:curl -H "Authorization: token <PUBLIC_ONLY_TOKEN>" https://gitea.example.com/api/v1/user/orgs - Observe unauthorized data: The response will include private and limited-visibility organizations the token owner belongs to, which should have been filtered out by the public-only scope enforcement.
- Leverage enumerated data: Use the list of private organizations for reconnaissance — identifying internal project names, team structures, or other sensitive organizational metadata (Github Advisory, Gitea Advisory).
타협의 징후
- Network: Repeated or automated API requests to
/api/v1/user/orgsfrom a single token or IP address, particularly outside normal usage patterns. - Logs: Gitea access logs showing requests to
/api/v1/user/orgsauthenticated with tokens that have public-only scope returning HTTP 200 responses with private organization data. - Application: Audit log entries for API token usage where a public-only scoped token is querying organization membership endpoints at unusual frequency or times.
완화 및 해결 방법
Upgrade Gitea to version 1.26.2, which adds checkTokenPublicOnly() to the /user/orgs route and replaces the flawed switch statement with a loop that evaluates all scope categories. As a temporary workaround until patching is feasible, restrict the issuance of public-only scoped tokens and audit existing public-only tokens for unauthorized access to private organization data. Revoking public-only tokens that are not strictly necessary reduces the attack surface (Github Advisory, Gitea Advisory).
커뮤니티 반응
The advisory was published by Gitea maintainer lunny and credited to reporter Medoedus. No significant broader media coverage or notable researcher commentary beyond the official advisory has been identified at this time (Gitea Advisory).
추가 자료
근원: 이 보고서는 AI를 사용하여 생성되었습니다.
무료 취약성 평가
클라우드 보안 태세를 벤치마킹합니다
9개의 보안 도메인에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 식별합니다.
추가 Wiz 리소스
맞춤형 데모 받기
맞춤형 데모 신청하기
"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."