<Vulnerability name="CVE-2026-34966">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-08-05T20:28:57</PublicDate>
    <Bugzilla id="2511770" url="https://bugzilla.redhat.com/show_bug.cgi?id=2511770" xml:lang="en:us">
code.gitea.io/gitea: Gitea: Information disclosure via Server-Side Request Forgery (SSRF) bypass
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.6</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-918</CWE>
    <Details xml:lang="en:us" source="Mitre">
Gitea prior to 1.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to bypass SSRF protections by exploiting HTTP fetch operations in migration and OAuth avatar code paths that use Go's default http.Get without a custom DialContext. Attackers can supply arbitrary URLs through release asset download URLs, pull-request patch URLs, or OAuth avatar endpoints to reach internal services, cloud instance-metadata endpoints, or read local files such as the application configuration containing database credentials and signing secrets, with exfiltrated content persisted as migration release assets for later retrieval.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Gitea. This server-side request forgery (SSRF) vulnerability allows authenticated attackers to bypass existing protections. By manipulating HTTP fetch operations during migrations or OAuth avatar processing, an attacker can force the Gitea server to make requests to arbitrary internal or external URLs. This could lead to the disclosure of sensitive information, such as database credentials or internal network details, which can then be retrieved by the attacker.
    </Details>
    <Statement xml:lang="en:us">
This is an important server-side request forgery (SSRF) bypass vulnerability in Gitea that allows authenticated attackers to access internal services or local files. However, Red Hat products are not affected by this vulnerability as they do not run Gitea servers. Red Hat OpenShift Pipelines only imports the structs and json modules from code.gitea.io/gitea for webhook / typing purposes.
    </Statement>
    <PackageState cpe="cpe:/a:redhat:openshift_pipelines:1">
        <ProductName>OpenShift Pipelines</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-pipelines-client</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_pipelines:1">
        <ProductName>OpenShift Pipelines</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-pipelines/pipelines-cli-tkn-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_pipelines:1">
        <ProductName>OpenShift Pipelines</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-pipelines/pipelines-opc-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_pipelines:1">
        <ProductName>OpenShift Pipelines</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_pipelines:1">
        <ProductName>OpenShift Pipelines</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_pipelines:1">
        <ProductName>OpenShift Pipelines</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-34966
https://nvd.nist.gov/vuln/detail/CVE-2026-34966
https://github.com/go-gitea/gitea
https://github.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288
https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc
https://www.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass
    </References>
</Vulnerability>