Skip to main content
CVE-2026-59765VulnerabilityPublished Updated

code.gitea.io/gitea · Gitea: SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata

Affects code.gitea.io/giteaSource GCVE Database

0
Compare
Authoritative record:CVE-2026-59765· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 1.27.0 soon.

Data as of 4 Dec 2026, 18:37 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CISA SSVC: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

Timeline

  1. CVE ID reserved

    by Gitea Limited

    , 36 days before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. CISA SSVC assessment

    proof of concept public

    , 26 hours after disclosure

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA SSVC, the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.

What to do

Upgrade code.gitea.io/gitea and gitea.dev to 1.27.0.

Affected software

ProductAffectedFixed in
Gocode.gitea.io/giteaAffected
  • <1.27.0
Fixed in
  • 1.27.0
Gogitea.devAffected
  • <1.27.0
Fixed in
  • 1.27.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Gitea version 1.27.0 that fixes this SSRF vulnerability by applying proper hostmatcher filtering to all HTTP requests in migration asset downloads and OAuth avatar updates. Users should upgrade to version 1.27.0 or later to remediate this issue. Until patched, restrict migration permissions to trusted administrators only and avoid importing repositories from untrusted sources. No other mitigations are documented by the vendor.

Description

Gitea versions prior to 1.27.0 contain a server-side request forgery (SSRF) vulnerability in migration asset downloads and OAuth avatar updates. This occurs because certain code paths use unfiltered http.Get() calls that bypass the hostmatcher protection, allowing attackers with migration permissions to access internal services, cloud metadata endpoints, and local files via file:// URLs. The vulnerability enables theft of sensitive data such as cloud instance metadata and local configuration files containing credentials. A fix is available in version 1.27.0.

References

Community reviews

Loading reviews…