Gitea: Repository Visibility Manipulation via Git Push Options (CVE-2026-58437)
Gitea contains a vulnerability allowing repository visibility and template status to be changed via undocumented git push options by users with owner or admin collaborator access. These changes bypass audit logs, webhook events, notifications, permission recalculations, and timestamp updates, enabling stealthy modifications. This can be exploited to temporarily expose private repositories or silently alter template repositories without detection.
AI Analysis
Technical Summary
The vulnerability in Gitea's post-receive git hook handler allows users with owner or admin collaborator access to toggle repository visibility (private/public) and template status using undocumented git push options 'repo.private' and 'repo.template'. These options were intended only for the push-to-create feature but are processed without restriction on existing repositories. The visibility change bypasses audit trails, webhook events, organization notifications, team permission recalculations, email alerts, and does not update the repository's 'updated_at' timestamp due to the use of UpdateRepositoryColsNoAutoTime. This enables stealthy changes to repository visibility and template designation, which can be abused by insiders or collaborators to expose private code or poison template repositories without leaving normal traces.
Potential Impact
An attacker with owner or admin collaborator access can covertly change a private repository to public and back without generating audit logs, notifications, or updating timestamps, allowing unauthorized data exposure without detection. Similarly, template repositories can be silently modified to introduce malicious changes that propagate downstream, complicating detection and response. This undermines repository confidentiality, integrity, and trust in template-based supply chains.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict owner and admin collaborator access to trusted users only. Monitor repository visibility and template status changes manually or via external tooling since internal audit and notification mechanisms are bypassed by this vulnerability.
Gitea: Repository Visibility Manipulation via Git Push Options (CVE-2026-58437)
Description
Gitea contains a vulnerability allowing repository visibility and template status to be changed via undocumented git push options by users with owner or admin collaborator access. These changes bypass audit logs, webhook events, notifications, permission recalculations, and timestamp updates, enabling stealthy modifications. This can be exploited to temporarily expose private repositories or silently alter template repositories without detection.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Gitea's post-receive git hook handler allows users with owner or admin collaborator access to toggle repository visibility (private/public) and template status using undocumented git push options 'repo.private' and 'repo.template'. These options were intended only for the push-to-create feature but are processed without restriction on existing repositories. The visibility change bypasses audit trails, webhook events, organization notifications, team permission recalculations, email alerts, and does not update the repository's 'updated_at' timestamp due to the use of UpdateRepositoryColsNoAutoTime. This enables stealthy changes to repository visibility and template designation, which can be abused by insiders or collaborators to expose private code or poison template repositories without leaving normal traces.
Potential Impact
An attacker with owner or admin collaborator access can covertly change a private repository to public and back without generating audit logs, notifications, or updating timestamps, allowing unauthorized data exposure without detection. Similarly, template repositories can be silently modified to introduce malicious changes that propagate downstream, complicating detection and response. This undermines repository confidentiality, integrity, and trust in template-based supply chains.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict owner and admin collaborator access to trusted users only. Monitor repository visibility and template status changes manually or via external tooling since internal audit and notification mechanisms are bypassed by this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8p9h-49rc-qgxj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58437"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a600ab19c2644c7f8fe1c6e
Added to database: 07/22/2026, 00:11:29 UTC
Last enriched: 07/22/2026, 00:45:45 UTC
Last updated: 07/31/2026, 12:28:12 UTC
Views: 4
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.