Skip to main content

Gitea CVE-2026-58418

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

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
qualitative

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Analysis Generated
Jul 03, 2026 - 22:14 vuln.today

DescriptionCVE.org

SSRF via HTTP Redirect in Repository Migration

AnalysisAI

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.

Technical ContextAI

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.

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.

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-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-27780 CRITICAL
9.8 Jul 03

Branch-protection bypass in Gitea's self-hosted Git server (all versions before 1.26.0) allows a user with push access t

CVE-2026-26292 CRITICAL
9.8 Jul 03

Migration transport protections in Gitea are bypassed for Git LFS operations, affecting all self-hosted instances before

CVE-2026-58422 CRITICAL
9.8 Jul 03

Authorization bypass in Gitea Open Source Git Server (versions up to and including 1.26.1) allows a user whose account w

CVE-2026-22874 CRITICAL
9.6 Jul 03

Server-side request forgery in Gitea versions up to and including 1.26.2 lets authenticated users abuse incomplete allow

CVE-2026-58426 CRITICAL
9.6 Jul 03

Cross-repository information disclosure and cross-task tampering in Gitea's self-hosted Git server (fixed in v1.26.2) ar

CVE-2026-25718 CRITICAL
9.1 Jul 03

Arbitrary file read and write in Gitea before 1.25.5 arises when the template repository generation feature resolves pat

CVE-2026-22547 CRITICAL
9.1 Jul 03

Improper input validation in Gitea Open Source Git Server before 1.25.5 lets authenticated users submit repository-creat

CVE-2026-26232 CRITICAL
9.1 Jul 03

Authentication bypass via OAuth2 authorization code replay in Gitea before 1.25.5, where the server fails to consistentl

CVE-2026-26247 CRITICAL
9.1 Jul 03

OAuth2 PKCE protection bypass in Gitea before 1.25.5 allows remote attackers to complete an authorization-code token exc

CVE-2026-58433 CRITICAL
9.1 Aug 13

Broken access control in Gitea (self-hosted Git service) versions up to and including 1.26.4 lets the team-repository li

Vendor StatusVendor

SUSE

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

Share

CVE-2026-58418 vulnerability details – vuln.today

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