Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: Cross-repository label-ID enumeration oracle via unscoped DeleteIssueLabel API (CVE-2026-58445)

0
Low
Published: 07/21/2026 (07/21/2026, 20:39:22 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

Description

Gitea contains a vulnerability in its DeleteIssueLabel API endpoint where label IDs are looked up globally without verifying repository scope. This allows an authenticated user with write:issue permission on their own repository to determine the existence of label IDs anywhere on the instance, including private repositories they cannot access. The vulnerability does not disclose label names or allow cross-repository writes, only existence enumeration. No patch is currently available, and the issue affects versions prior to 1.27.0.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:49:53 UTC

Technical Analysis

The DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id} API endpoint in Gitea performs a global, unscoped lookup of label IDs without verifying that the label belongs to the repository or organization in the URL. Because the HTTP response status differs based on whether the label ID exists anywhere on the instance (204 if exists, 422 if not), an authenticated user can use this endpoint as an oracle to enumerate label IDs across repositories and organizations they do not have access to. The deletion operation itself does not mutate data for foreign labels, preventing cross-repository writes or disclosure of label details. This issue affects all versions before 1.27.0 and no official patch is yet available.

Potential Impact

An authenticated user with write:issue permission on their own repository can confirm the existence of arbitrary label IDs anywhere on the Gitea instance, including private repositories and organizations they cannot access. This results in an information disclosure vulnerability limited to label ID existence enumeration. No label names, colors, or repository ownership information are revealed, and no unauthorized data modification occurs.

Mitigation Recommendations

No official patch is currently available. The recommended remediation is to scope the label lookup in the DeleteIssueLabel handler to the repository or organization of the URL, returning a 404 status for labels outside this scope. This change would prevent the endpoint from revealing label existence across tenant boundaries. Until a patch is released, users should be aware of this information disclosure risk and restrict access tokens with write:issue permissions accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-pgqf-926r-548m
Osv Schema Version
1.4.0
Aliases
["CVE-2026-58445"]
Ecosystems
["Go"]
Database Specific Severity
LOW
Cvss Version
3.1

Threat ID: 6a600ab79c2644c7f8fe24ee

Added to database: 07/22/2026, 00:11:35 UTC

Last enriched: 07/22/2026, 00:49:53 UTC

Last updated: 07/22/2026, 02:17:48 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses