Description
When migrating a repository from another Gitea instance, Gitea used the page size reported in the source server's API settings to end its paginated downloads. A source that reported `max_response_items` as `0` made these loops run indefinitely and grow server memory until it was exhausted. Any user who can migrate repositories could point a migration at a server they control and cause a denial of service.
Published: 2026-10-06
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises when Gitea performs repository migrations and relies on the source server's reported max_response_items to bound paginated downloads. If the source reports a value of zero, the pagination loop continues forever, consuming memory until the server runs out. This results in a denial of service that can affect all users of the instance. The weakness corresponds to resource exhaustion and infinite loop, and attackers that can initiate migrations can target a server they control to trigger the exploit.

Affected Systems

Vendors: Gitea; Product: Gitea. All versions prior to the 28.1.0 release are vulnerable, as the fix was introduced in that version.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity DoS flaw that can be triggered by any user with migration privileges. The EPSS score of less than 1% suggests a low but nonzero likelihood that attackers will attempt to exploit this vulnerability. Because the issue is not listed in the CISA KEV catalog, it is currently considered unpublicly exploited, but the lack of a safeguard on max_response_items means exploitation can occur if a malicious source server reports zero. The attack can be performed by initiating a migration against a controlled server, causing memory exhaustion and downtime for the target instance.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 28.1.0 or later.
  • Validate source API responses and reject any migration where max_response_items equals zero or is otherwise invalid.
  • Restrict migration functionality to trusted users and repositories, or disable it if not needed.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 13 Oct 2026 14:45:00 +0000

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

Thu, 08 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Metrics cvssV3_1

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


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

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

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

Type Values Removed Values Added
Description When migrating a repository from another Gitea instance, Gitea used the page size reported in the source server's API settings to end its paginated downloads. A source that reported `max_response_items` as `0` made these loops run indefinitely and grow server memory until it was exhausted. Any user who can migrate repositories could point a migration at a server they control and cause a denial of service.
Title Gitea migration memory exhaustion from zero page size
Weaknesses CWE-400
CWE-835
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-07T15:53:48.550Z

Reserved: 2026-10-04T22:02:04.892Z

Link: CVE-2026-104633

cve-icon Vulnrichment

Updated: 2026-10-07T15:51:00.622Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T22:17:01.200

Modified: 2026-10-13T14:38:56.493

Link: CVE-2026-104633

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T21:35:26Z

Links: CVE-2026-104633 - Bugzilla

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')