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.
Published: 2026-10-14
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Sat, 24 Oct 2026 02:45:00 +0000

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

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

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'}


Wed, 14 Oct 2026 14:45:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T15:03:17.128Z

Reserved: 2026-08-13T16:50:59.158Z

Link: CVE-2026-73130

cve-icon Vulnrichment

Updated: 2026-10-14T14:46:22.504Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:23.190

Modified: 2026-10-14T16:17:52.790

Link: CVE-2026-73130

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-24T02:30:17Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption