Gitea: Private Repository Existence Disclosure via go-get Meta Endpoint (CVE-2026-58507)
Gitea versions prior to 1.27.0 have a vulnerability where the special handling of the '?go-get=1' query parameter bypasses authentication and authorization checks. This allows unauthenticated attackers to confirm the existence of private repositories, enumerate repository names, and harvest clone URLs and default branch names. The vulnerability arises because Gitea returns HTTP 200 responses with go-import and go-source meta tags regardless of repository privacy or user permissions.
AI Analysis
Technical Summary
Gitea's handling of HTTP requests containing the '?go-get=1' query parameter, used by the Go toolchain to discover VCS metadata, bypasses normal authentication and authorization. The function EarlyResponseForGoGetMeta is called unconditionally and returns HTTP 200 with repository metadata even for private repositories and unauthenticated users. This behavior enables attackers to confirm private repository existence, enumerate repository names without triggering authentication failures, and obtain clone URLs and default branch names. The affected code is in routers/web/repo/githttp.go and services/context/repo.go. The vulnerability affects all Gitea versions prior to 1.27.0.
Potential Impact
An unauthenticated attacker can confirm the existence of private repositories by name, enumerate private repository names through brute force, and harvest clone URLs and default branch names. This information disclosure can aid further targeted attacks or reconnaissance but does not directly expose repository contents or allow unauthorized access to repository data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, consider restricting access to the Gitea instance at the network level or disabling the '?go-get=1' handling if feasible. Monitor vendor communications for an official fix or temporary mitigation.
Gitea: Private Repository Existence Disclosure via go-get Meta Endpoint (CVE-2026-58507)
Description
Gitea versions prior to 1.27.0 have a vulnerability where the special handling of the '?go-get=1' query parameter bypasses authentication and authorization checks. This allows unauthenticated attackers to confirm the existence of private repositories, enumerate repository names, and harvest clone URLs and default branch names. The vulnerability arises because Gitea returns HTTP 200 responses with go-import and go-source meta tags regardless of repository privacy or user permissions.
CVSS v3.1
Score 5.3medium
Affected software
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
Technical Analysis
Gitea's handling of HTTP requests containing the '?go-get=1' query parameter, used by the Go toolchain to discover VCS metadata, bypasses normal authentication and authorization. The function EarlyResponseForGoGetMeta is called unconditionally and returns HTTP 200 with repository metadata even for private repositories and unauthenticated users. This behavior enables attackers to confirm private repository existence, enumerate repository names without triggering authentication failures, and obtain clone URLs and default branch names. The affected code is in routers/web/repo/githttp.go and services/context/repo.go. The vulnerability affects all Gitea versions prior to 1.27.0.
Potential Impact
An unauthenticated attacker can confirm the existence of private repositories by name, enumerate private repository names through brute force, and harvest clone URLs and default branch names. This information disclosure can aid further targeted attacks or reconnaissance but does not directly expose repository contents or allow unauthorized access to repository data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, consider restricting access to the Gitea instance at the network level or disabling the '?go-get=1' handling if feasible. Monitor vendor communications for an official fix or temporary mitigation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p4mj-98mv-xq26
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58507"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600abb9c2644c7f8fe2b86
Added to database: 07/22/2026, 00:11:39 UTC
Last enriched: 07/22/2026, 00:52:02 UTC
Last updated: 07/31/2026, 12:28:12 UTC
Views: 16
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.