Description
When `[migrations] ALLOWED_DOMAINS` was configured, a hostname matching the allow list was accepted without checking its resolved address against the local-network restrictions. A user who can start repository migrations and control the DNS of an allowed hostname could make it resolve to loopback or private addresses and bypass `ALLOW_LOCALNETWORKS = false`, reaching internal services from the Gitea server. Instances without `ALLOWED_DOMAINS` configured are not affected by this specific bypass.
Published: 2026-10-06
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Server‑Side Request Forgery
Action: Apply Patch
AI Analysis

Impact

The vulnerability lies in Gitea's migration feature. When the ALLOWED_DOMAINS option is enabled, a domain name that matches the allow list is accepted without verifying the resolved IP address against the local network restriction. This allows an attacker who can initiate a migration and control DNS for an allowed hostname to point that hostname to a loopback or private address and force Gitea to issue a request to an internal service, thereby bypassing the ALLOW_LOCALNETWORKS protection. The flaw is essentially a server‑side request forgery.

Affected Systems

Gitea serversAINS setting configured are affected. Any instance running Gitea with ALLOWED_DOMAINS enabled is potentially vulnerable, irrespective of the exact Gitea version; the CVE statement does not specify a version scope.

Risk and Exploitability

Exploitation requires the attacker to have sufficient privileges to start a migration and to control DNS for a hostname listed in ALLOWED_DOMAINS. No additional network or administrative privileges are needed beyond these. The CVSS score is 7.7, indicating a high‑severity vulnerability. The EPSS score is <1%, indicating a very low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. When successfully exploited, an attacker can reach private services on the Gitea host, potentially leaking sensitive data or affecting other internal systems.

Generated by OpenCVE AI on October 7, 2026 at 17:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Remove or disable the ALLOWED_DOMAINS setting in the Gitea configuration to prevent the address‑check bypass.
  • Restrict migration initiation to trusted users or roles; deny write permissions for untrusted accounts that can start migrations.
  • Apply network segmentation or firewall rules that block the Gitea process from accessing internal IP ranges that are not explicitly allowed.
  • Install the latest Gitea release once the vendor has published a fix for this issue; patching remains the definitive remediation.

Generated by OpenCVE AI on October 7, 2026 at 17:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 02:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*

Wed, 07 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-346
CWE-918

Wed, 07 Oct 2026 14:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-918

Wed, 07 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 07 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Tue, 06 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-918

Tue, 06 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Description When `[migrations] ALLOWED_DOMAINS` was configured, a hostname matching the allow list was accepted without checking its resolved address against the local-network restrictions. A user who can start repository migrations and control the DNS of an allowed hostname could make it resolve to loopback or private addresses and bypass `ALLOW_LOCALNETWORKS = false`, reaching internal services from the Gitea server. Instances without `ALLOWED_DOMAINS` configured are not affected by this specific bypass.
Title Gitea migration SSRF through ALLOWED_DOMAINS address check bypass
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-07T15:54:52.293Z

Reserved: 2026-10-04T21:57:35.568Z

Link: CVE-2026-101027

cve-icon Vulnrichment

Updated: 2026-10-07T11:37:34.067Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T20:17:08.233

Modified: 2026-10-15T02:32:39.673

Link: CVE-2026-101027

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T17:30:17Z

Weaknesses
  • CWE-346

    Origin Validation Error

  • CWE-918

    Server-Side Request Forgery (SSRF)