Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisorybuild-pipeline-compromise

Critical Gitea Authorization Bypass Lets Public-Only Tokens Write to Private Repos

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 20, 2026

Critical Gitea Authorization Bypass Lets Public-Only Tokens Write to Private Repos

A critical Gitea authorization bypass tracked as CVE-2026-58443 allows a public-only access token with write:repository scope to push commits into a private repository under specific pull request conditions. The flaw affects Gitea releases up to and including v1.26.4 and was fixed in v1.27.0. Researchers said the issue lies in the pull request update endpoint, where Gitea checks the token’s public-only restriction against the public base repository but fails to enforce that restriction again when operating on the private head repository.

The bug can be abused to perform unauthorized server-side merges or rebases into a private pull request head branch, and those writes may also trigger Gitea Actions workflows on the private repository if Actions is enabled. Public reporting included a technical analysis and a working proof-of-concept, though no confirmed in-the-wild exploitation was cited. Administrators were urged to upgrade to v1.27.0, audit and rotate or revoke public-only tokens with write permissions, review public-to-private pull request relationships, and inspect recent private repository pushes and Actions logs for suspicious activity.

Why it matters

Impact assessment

CVE-2026-58443 is a critical authorization bypass in Gitea that affects organizations running Gitea up to v1.26.4, especially teams using public-only tokens for automation, CI/CD, or developer workflows. The flaw enables unauthorized writes into private repository pull request head branches under specific conditions, creating risk of code tampering, workflow execution, and operational disruption in private development environments.

The impact is high because the vulnerability breaks the intended isolation boundary of public-only tokens and can lead to integrity and availability issues in private repositories. Public reporting includes technical analysis and a working proof of concept, but the provided references do not cite confirmed in-the-wild exploitation.

Supporting details

  • Affected product: Gitea
  • Affected versions: all releases up to and including v1.26.4
  • Fixed version: v1.27.0
  • Affected users: organizations hosting private repositories in Gitea and using public-only repository access tokens with write permissions
  • Primary impact: unauthorized modification of private repository branches
  • Secondary impact: unauthorized pushes may trigger Gitea Actions workflows in private repositories if Actions is enabled
  • Security consequences:
    • Integrity: high risk of unauthorized code changes
    • Availability: high risk due to server-side merges/rebases and workflow execution
    • Confidentiality: no direct anonymous access to private repositories described
  • Scope of exposure: conditional rather than universal; requires a public base repository, an existing pull request relationship, a valid public-only token with write:repository scope, and normal write access by the token owner to the private head branch
  • Exploitation status: no confirmed in-the-wild exploitation cited in the references
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Jul 20, 2026 – Jul 21, 2026
  1. Jul 21, 20264mo ago

    Public disclosure highlights Gitea private-repo write bypass

    Public reporting disclosed CVE-2026-58443 as a critical authorization bypass in Gitea, explaining that public-only tokens with write:repository scope could indirectly write to private pull request head branches and trigger private workflows when Actions is enabled. The disclosure also reiterated upgrade and token-audit recommendations for administrators.

    Critical Gitea Vulnerability Enables Private Repository Writes and Actions Workflow Triggers
  2. Jul 20, 20264mo ago

    Gitea fixes CVE-2026-58443 in version 1.27.0

    Gitea addressed CVE-2026-58443 in v1.27.0. The vulnerability affected all releases up to and including v1.26.4 and allowed a public-only token to write to a private repository under specific pull request conditions.

    Gitea CVE-2026-58443 (CVSS 9.6): PoC Exploit Published
  3. Jul 20, 20264mo ago

    Technical analysis and PoC for CVE-2026-58443 are published

    Researchers published technical details and working proof-of-concept code for CVE-2026-58443, showing how the pull request update endpoint could be abused to push commits into a private repository and potentially trigger Gitea Actions workflows. The available reporting noted no confirmed in-the-wild exploitation in the cited content.

    Gitea CVE-2026-58443 (CVSS 9.6): PoC Exploit Published
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Gitea

Organizations

1 linked
Gitea
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.