Skip to main content

Gitea EUVDEUVD-2026-41602

| CVE-2026-58418 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-03 Gitea GHSA-rqhx-647v-wx32
6.5
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Gitea with low-privilege account
  2. Delivery
    Navigate to repository migration feature
  3. Exploit
    Submit crafted migration URL pointing to attacker-controlled server
  4. Execution
    Attacker server issues HTTP redirect to internal target (e.g., metadata endpoint)
  5. Persist
    Gitea server follows redirect without validation
  6. Impact
    Internal 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Gitea Open Source Git Server 0 ≤1.25.4

Affected Packages

go code.gitea.io/gitea fix: 1.26.4
euvd gitea_open_source_git_server no fix

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

Vendor (Gitea) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

SSRF via HTTP Redirect in Repository Migration

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
popular self-hosted Git platform, common in smaller orgs and open source projects
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

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

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

CVE-2020-13246 HIGH POC
7.5 May 20

An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy