CVE-2026-104636

Gitea SSRF through Git HTTP redirects in mirrors and fetches

Published Oct 6, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Gitea validated the initial remote URL for push mirrors, wiki remote checks, and fetches of migrated pull request heads, but the subsequent raw Git operations followed HTTP redirects without revalidating the destination. A repository administrator using a policy-allowed endpoint that redirects could make Gitea's Git client send requests to an address that the outbound host policy would otherwise block. The impact depends on the configured policy and the internal services reachable from the server.

Analysis

AI-generated

Technical impact

Gitea performs an initial validation of remote URLs for push mirrors, wiki remote checks, and fetches of migrated pull request heads, but after following HTTP redirects it does not revalidate the final destination. This allows an administrator to configure a redirecting endpoint that, once followed, causes Gitea's internal Git client to issue requests to arbitrary hosts that would normally be blocked by the server’s outbound policy. The result is a server‑side request forgery that can expose internal network resources or reach otherwise unreachable services.

Affected Systems

Products affected are those built on the Gitea code base. The CVE entry identifies Gitea:Gitea as the vendor/product. No specific version range is supplied within the public data, so any installation running a pre‑patched version of Gitea is potentially vulnerable. The fix is referenced in release v28.0.0, implying earlier releases carry the flaw.

Risk and Exploitability

The vulnerability carries a CWE‑918 designation and would be leveraged through a redirection chain from a controlled endpoint. The EPSS score of < 1% indicates a low probability of exploitation, and the issue is not listed in the CISA KEV catalog. However, if the environment allows outbound traffic to internal hosts, a vulnerable Gitea instance could use the redirect to access otherwise blocked services. The impact then depends on the server’s network reachability; if internal networks are reachable, attackers can query internal services; otherwise the damage is limited to the redirect target. Mitigation requires patching or blocking the redirect flow.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Gitea release (v28.0.0 or later) to address the SSRF flaw
  • Configure Gitea to disable or tightly restrict HTTP redirects in mirror and fetch settings
  • Enforce outbound host policy rules to block unexpected internal service access

Generated by OpenCVE AI on October 7, 2026 at 23:19 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': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, '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 the initial remote URL for push mirrors, wiki remote checks, and fetches of migrated pull request heads, but the subsequent raw Git operations followed HTTP redirects without revalidating the destination. A repository administrator using a policy-allowed endpoint that redirects could make Gitea's Git client send requests to an address that the outbound host policy would otherwise block. The impact depends on the configured policy and the internal services reachable from the server.
Title Gitea SSRF through Git HTTP redirects in mirrors and fetches
Weaknesses CWE-918
References
Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 7, 2026, 8:13 PM
Reserved
Oct 4, 2026, 9:59 PM
Status
Analyzed
Published
Oct 6, 2026, 8:17 PM
Modified
Oct 13, 2026, 5:18 PM