CVE-2026-73130

Gitea repository initialization resource exhaustion

Published Oct 14, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
Gitea does not limit the length of the gitignores field accepted by repository-creation forms and the API. Repository initialization splits the field into template names, repeatedly reads the referenced templates, and buffers their contents in memory. An attacker who can create repositories can submit an oversized value to amplify template reads and memory use, impairing availability.

Analysis

AI-generated

Technical impact

Gitea does not enforce a maximum length on the gitignores field supplied during repository creation via the web form or API. The server processes this field by splitting it into template names, repeatedly resolving each template, and loading the corresponding contents into memory. An attacker who can create repositories can submit an excessively long gitignore value, causing the server to perform many template lookups and allocate large buffers. This activity can overwhelm available memory, leading to degraded performance or a crash that denies service to all users.

Affected Systems

The flaw affects the Gitea project. Any instance running a version prior to the 1.27.3 release is vulnerable, as that version contains the patch that restricts the size of the gitignores input. System administrators should review their deployed Gitea version and plan an upgrade accordingly.

Risk and Exploitability

The CVSS score of 4.3 indicates moderate severity. Because the EPSS score is 0.00366 (<1%) and the vulnerability is not listed in the CISA KEV catalog, the current exploitation probability is presumably low, but an attacker who can create a repository can trigger the DoS condition purely through legitimate API usage, so the attack vector is remote. The lack of controls on input size makes the vulnerability relatively easy to exercise without special privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.3 or later, which includes a length check on the gitignores field.
  • For environments where an immediate upgrade is not possible, configure a reverse‑proxy or firewall to limit the size of POST requests to the repository‑creation endpoint, rejecting requests that exceed a safe threshold.
  • Enable monitoring of memory consumption and API latency to detect abnormal spikes that might indicate an attempted or ongoing DoS attack.

Generated by OpenCVE AI on October 15, 2026 at 20:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
Description Gitea does not limit the length of the gitignores field accepted by repository-creation forms and the API. Repository initialization splits the field into template names, repeatedly reads the referenced templates, and buffers their contents in memory. An attacker who can create repositories can submit an oversized value to amplify template reads and memory use, impairing availability.
Title Gitea repository initialization resource exhaustion
Weaknesses CWE-400
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 14, 2026, 3:03 PM
Reserved
Aug 13, 2026, 4:50 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 14, 2026, 4:17 PM