Bug 2547062 (CVE-2026-104636)

Summary: CVE-2026-104636 code.gitea.io/gitea: Gitea: Outbound host policy bypass via unvalidated HTTP redirects
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerability-draftAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gbenhaim, niyer, twaugh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Gitea. During remote operations such as push mirrors, wiki checks, and pull request fetches, the application validates initial remote addresses against outbound host policies but follows HTTP redirects without revalidation. A repository administrator can exploit this flaw by specifying an allowed address that redirects to a restricted destination, resulting in Server-Side Request Forgery (SSRF). This allows an attacker to bypass outbound network restrictions and force the server to issue unauthorized requests to internal network services.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-10-06 19:43:24 UTC
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.