CVE-2026-89430

Gitea push mirror SSRF and forced writes to internal Git hosts

Published Oct 6, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Gitea validated a push mirror's remote address against the `[migrations]` allow and block lists only when the mirror was created. Each synchronization passed the stored address directly to `git push`, so a name that later resolved to a blocked or internal address was still reached. A user with administrator access to a repository, which includes repositories they create themselves, could aim push mirror synchronization at internal Git services and force-push the repository's contents to them.

Analysis

AI-generated

Technical impact

The vulnerability arises because Gitea validates a push mirror's remote address only when the mirror is created. During each synchronization, the stored address is passed directly to "git push", so a name that later resolves to a blocked or internal address is still reached. An administrator who can configure mirrors can target internal Git services and force‑push their repository contents to them. This effectively allows the attacker to write arbitrary data and can lead to remote code execution on the internal service. The flaw demonstrates input validation and SSRF weaknesses, corresponding to CWE‑367 and CWE‑918.

Affected Systems

All Gitea releases prior to 28.0.0 are affected. The issue was fixed in the 28.0.0 release, as indicated by the referenced blog post and release notes. Administrators using earlier Gitea versions should verify their mirror configurations accordingly.

Risk and Exploitability

The EPSS score of 0.00118 indicates a very low but nonzero probability of exploitation and the vulnerability is not listed in the CISA KEV catalog, suggesting no publicly known exploitation yet. However, the flaw requires only a user with administrative rights on a repository, a role typically granted to trusted developers. Once that permission is held, the attack path is straightforward: create or modify a mirror to point at an internal Git server, and trigger a synchronization. The ability to force‑push to internal hosts presents a high potential for data tampering and the execution of malicious code. The CVSS score of 8.1 indicates a high level of risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 28.0.0 or later to apply the patch that properly validates push mirror URLs during synchronization.
  • Restrict or remove administrative repository permissions from users who do not need to configure mirrors, limiting the ability to create or modify push mirrors.
  • Audit existing push mirror configurations to ensure that no internal Git hosts are targeted, and remove any that are unintended.
  • Review the configuration of "allow" and "block" lists in the [migrations] section and enforce that only externally reachable addresses are permitted as mirror targets during sync operations.

Generated by OpenCVE AI on October 7, 2026 at 23:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description Gitea validated a push mirror's remote address against the `[migrations]` allow and block lists only when the mirror was created. Each synchronization passed the stored address directly to `git push`, so a name that later resolved to a blocked or internal address was still reached. A user with administrator access to a repository, which includes repositories they create themselves, could aim push mirror synchronization at internal Git services and force-push the repository's contents to them.
Title Gitea push mirror SSRF and forced writes to internal Git hosts
Weaknesses CWE-367
CWE-918
References
Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 7, 2026, 8:16 PM
Reserved
Oct 4, 2026, 9:57 PM
Status
Analyzed
Published
Oct 6, 2026, 8:17 PM
Modified
Oct 13, 2026, 4:46 PM