Skip to main content

Gitea CVE-2026-58508

| EUVDEUVD-2026-58174 CRITICAL
Improper Access Control (CWE-284)
2026-08-13 Gitea
9.1
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Register or use Gitea account
  2. Delivery
    Create migration/mirror to attacker hostname
  3. Exploit
    Pass allow-list check, then DNS-rebind or redirect to internal IP
  4. Execution
    Server fetches internal/metadata endpoint
  5. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

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

Gitea Open Source Git Server 0 ≤1.26.4

Affected Packages

euvd gitea_open_source_git_server no fix

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

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

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.

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

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

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

Lifecycle Timeline

3
CVSS changed
Aug 14, 2026 - 19:22 NVD
9.1 (CRITICAL)
CVE Published
Aug 13, 2026 - 16:44 cve.org
CRITICAL 9.1
CVE Published
Aug 13, 2026 - 16:44 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Two SSRF vulnerabilities in Gitea migration/mirror (DNS rebinding + missing re-validation)

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Vendor-released patch: Gitea 1.27.0

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
widely self-hosted Git server, common enterprise and internal-dev deployments
Data Quality
6 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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

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