Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Gitea with low-privilege account
-
DeliveryNavigate to repository migration feature
-
ExploitSubmit crafted migration URL pointing to attacker-controlled server
-
ExecutionAttacker server issues HTTP redirect to internal target (e.g., metadata endpoint)
-
PersistGitea server follows redirect without validation
-
ImpactInternal service response returned to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid Gitea user account with permission to use the repository migration feature (CVSS PR:L - low-privilege authenticated access). The attack is only possible when the repository import/migration functionality is enabled and accessible to the attacker's account; Gitea administrators can restrict or disable this feature. Limiting factors include: authentication is mandatory (no unauthenticated exploitation path exists per the CVSS PR:L metric), the Gitea server must be able to reach the internal target from its network position (cloud metadata or internal services must be network-reachable from the Gitea host), and the attacker must control an intermediary server capable of issuing the redirect. Deployments where migration is restricted to administrators only, or where egress filtering prevents the Gitea process from reaching internal network ranges, are not exploitable. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N indicates network-reachable exploitation with low complexity, but critically requires a valid authenticated user account (PR:L), which meaningfully narrows the realistic attacker population compared to unauthenticated SSRF. The high confidentiality impact (C:H) reflects the potential to read internal service responses that are never intended to be externally accessible. No EPSS score was provided in the input data - exploitation probability is therefore unknown. No KEV listing exists, and no public POC has been confirmed, meaning this is assessed as a theoretical risk based on vulnerability class rather than observed exploitation. Real-world priority depends heavily on deployment context: Gitea instances exposed to untrusted authenticated users (e.g., public or multi-tenant deployments) face meaningfully higher risk than private, single-organization instances where all users are already trusted. The S:U (unchanged scope) designation in the CVSS vector is consistent with the impact being contained to data the Gitea server process can reach, without privilege escalation to other systems. No conflicting signals are present, though absence of EPSS data limits confidence in exploitation likelihood. |
| Exploit ScenarioDerived | An attacker with a low-privilege Gitea account navigates to the repository migration interface and submits a migration URL pointing to an attacker-controlled server. That server responds with an HTTP 301 redirect targeting an internal address, such as the AWS EC2 instance metadata service at http://169.254.169.254/latest/meta-data/ or an internal Kubernetes API endpoint. Gitea's migration engine follows the redirect server-side and the response content - potentially including credentials, tokens, or sensitive configuration - is returned to the attacker. No public POC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 03, 2026
Server-Side Request Forgery (SSRF) via HTTP redirect in Gitea's repository migration feature affects all versions through 1.25.4, allowing an authenticated attacker to coerce the Gitea server into issuing HTTP requests to arbitrary internal network destinations by supplying a crafted migration URL that redirects to an internal address. The CVSS score of 6.5 (C:H) reflects that successful exploitation can expose sensitive internal service responses - including cloud metadata endpoints, internal APIs, or other intranet services - to the attacker. No public exploit or CISA KEV listing has been identified at time of analysis; a vendor patch is available in v1.26.3 and v1.26.4.
RemediationAI
Upgrade to Gitea v1.26.3 or v1.26.4, both of which contain the fix per the vendor release announcements at https://github.com/go-gitea/gitea/releases/tag/v1.26.4 and https://blog.gitea.com/release-of-1.26.3-and-1.26.4/. The upstream code fix is tracked at https://github.com/go-gitea/gitea/pull/38108 - note that this reference points to a pull request rather than a tagged release, so the patched version is confirmed via the release references rather than the PR alone. As a compensating control where immediate upgrade is not possible, administrators should restrict repository migration permissions to trusted users only or disable the migration feature entirely via Gitea's admin panel (Administration > Settings > Repository > Disable Repository Migrations); disabling migration eliminates the vulnerable code path entirely at the cost of preventing legitimate repository imports. Additionally, network-level controls blocking the Gitea server process from initiating outbound connections to RFC1918 ranges and cloud metadata IPs (e.g., 169.254.169.254) will substantially reduce the blast radius if exploitation occurs, though this requires infrastructure-level firewall or egress filtering configuration.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-918 (Server-Side Request Forgery) arises here because Gitea's repository migration subsystem performs server-side HTTP fetches of user-supplied URLs and follows HTTP redirects without validating that the redirect target remains within an approved network scope. This is a classic SSRF-via-open-redirect bypass: the initial URL may appear legitimate, but the server transparently follows a 301/302 redirect to an internal address (e.g., RFC1918 ranges, loopback, or cloud IMDS endpoints such as 169.254.169.254). The affected product is confirmed by CPE cpe:2.3:a:gitea:gitea_open_source_git_server:*:*:*:*:*:*:*:*, covering Gitea Open Source Git Server across all versions up to and including 1.25.4 per EUVD-2026-41602. The vulnerability is scoped to the migration/import feature, which is a standard capability of the platform.
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:L/UI:N/S:U/C:H/I:N/A:N
Migration feature is network-accessible and requires a low-privilege authenticated account (PR:L); SSRF yields internal data read only (C:H, I:N, A:N) with no scope change.
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
DescriptionCVE.org
SSRF via HTTP Redirect in Repository Migration
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.
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
Same weakness CWE-918 – Server-Side Request Forgery (SSRF)
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
EUVD-2026-41602
GHSA-rqhx-647v-wx32
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB