Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister or use Gitea account
-
DeliveryCreate migration/mirror to attacker hostname
-
ExploitPass allow-list check, then DNS-rebind or redirect to internal IP
-
ExecutionServer fetches internal/metadata endpoint
-
ImpactExfiltrate response via migration output
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the ability to initiate a repository migration or configure a pull mirror - i.e., access to Gitea's migration/mirror feature, which in most deployments means a registered user account (the published CVSS marks PR:N, appropriate for instances with open registration; on restricted instances an account is a real prerequisite - authentication requirements should be confirmed against your instance config). The attacker must control DNS for the target hostname (for the rebinding vector) or an endpoint that issues a redirect to a restricted address (for the missing-re-validation vector), and there must be an internal/link-local service worth reaching from the Gitea host. Limiting factors: the outbound fetch only returns data the migration/mirror path exposes back to the attacker; hosts with strict egress firewalling to internal ranges, IMDSv2-only metadata, or migrations locked to admins substantially reduce practical exploitability. Affected only on versions ≤1.26.4. |
| Impact | Signals here are mixed and should be read carefully. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H) yields 9.1 and implies unauthenticated network exploitation, but the migration/mirror workflow in a typical Gitea deployment requires an authenticated account to initiate - verify against your instance's registration/self-service settings, because on an open-registration server PR:N is effectively true, while on a locked-down internal instance the practical privilege requirement is higher. SSVC reinforces a nuanced picture: Exploitation is 'none' (no observed activity, consistent with the very low 0.15% EPSS and no KEV listing), yet Automatable is 'yes' and Technical Impact is 'total', meaning that if it is exploited it can be done at scale with full impact on the reachable internal target. This is not a hype-driven high-CVSS-but-low-real-risk case: SSRF into cloud metadata endpoints or internal admin services is a well-trodden, high-value attack, so even a mid-sized operator running Gitea for internal teams should treat this as an urgent patch rather than a routine one. The low EPSS reflects absence of a public exploit today, not low intrinsic severity; do not defer solely on that basis. |
| Exploit ScenarioDerived | An attacker with (or able to self-register) a Gitea account creates a repository migration or mirror pointing at a hostname they control. The hostname passes Gitea's allow-list check when first resolved, then rebinds to an internal address (or 302-redirects to one) so the server fetches from cloud metadata or an internal admin service and the attacker reads the returned content. No public exploit code was identified at time of analysis, but the technique is well-known and, per SSVC, automatable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 14, 2026
Server-side request forgery in Gitea Open Source Git Server (all versions through 1.26.4) lets attackers abuse the repository migration and mirror features to reach internal network resources. Two distinct weaknesses are involved: a DNS-rebinding bypass where a hostname resolves to a permitted address during validation and to an internal address when the actual request is made, and a missing re-validation flaw where redirect or subsequent fetch targets are not re-checked against the allow/deny policy. No public exploit was identified at time of analysis, EPSS is low (0.15%), and it is not in CISA KEV, but the vendor rates technical impact as total and the issue is fixed in 1.27.0.
RemediationAI
Vendor-released patch: upgrade to Gitea 1.27.0 (https://github.com/go-gitea/gitea/releases/tag/v1.27.0), which addresses both the DNS-rebinding bypass and the missing redirect/re-validation checks per advisory GHSA-j72v-mjr6-3424. Until you can upgrade, reduce exposure with concrete compensating controls: disable open user registration so migration/mirror cannot be triggered by anonymous actors (trade-off: blocks self-service onboarding); restrict who can create migrations/mirrors to trusted admins; and enforce network-layer egress filtering from the Gitea host so it cannot reach link-local metadata (169.254.169.254), loopback, and RFC1918 ranges except those explicitly needed (trade-off: may break legitimate internal mirrors and requires careful allow-listing). On cloud hosts, enforce IMDSv2 / disable IMDSv1 to blunt metadata-theft via SSRF (trade-off: requires SDK/tooling that supports IMDSv2). These are stopgaps only; the DNS-rebinding class of bypass is not fully closable at the app layer without the 1.27.0 fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gitea is a self-hosted Git service written in Go, widely used as a lightweight alternative to GitLab/GitHub Enterprise. Its migration feature clones an external repository from a user-supplied URL, and its mirror feature periodically re-fetches from a remote, both of which cause the server to make outbound HTTP(S)/Git requests to attacker-influenceable destinations. The root cause maps to CWE-284 (Improper Access Control): the SSRF allow/deny controls that are meant to stop the server from contacting internal or link-local addresses can be defeated. The first vector is a classic TOCTOU DNS-rebinding race - the destination hostname passes validation because DNS returns an allowed IP at check time, then resolves to an internal IP (e.g., 169.254.169.254, 127.0.0.1, or RFC1918 space) at fetch time. The second vector is missing re-validation, where a redirect chain or a follow-on request is not re-subjected to the same network policy, letting an initially-benign URL pivot to a restricted target.
Know when Gitea gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Migration/mirror needs an account (PR:L) and DNS-rebinding is a race (AC:H); high confidentiality from reading internal responses, limited integrity, no availability impact.
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
Lifecycle Timeline
3DescriptionCVE.org
Two SSRF vulnerabilities in Gitea migration/mirror (DNS rebinding + missing re-validation)
Executive ViewAI
Gitea Open Source Git Server versions through 1.26.4 contain a critical server-side request forgery vulnerability in repository migration and mirror features, allowing attackers to bypass network access controls and reach internal systems. Organizations running affected versions face direct exposure of sensitive internal infrastructure including databases and services that should remain isolated from untrusted networks.
Vendor-released patch: Gitea 1.27.0
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
EUVD-2026-58174
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB