Description
Gitea's Swift package parser limits each manifest to 128 KiB but does not limit the number of manifests or their aggregate size before reading them into memory. An authenticated user with package-publish permission can upload a highly compressed archive containing many manifests, causing allocations far larger than the uploaded archive. This can exhaust memory, terminate the process, or cause request failures.
Published: 2026-10-14
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory Exhaustion
Action: Patch Now
AI Analysis

Impact

Gitea’s Swift package parser enforces a per‑manifest size limit of 128 KiB but disregards the total number or combined size of manifests inside an archive. An authenticated user with package‑publish rights can upload a highly compressed archive that contains many manifests. When Gitea expands and reads these manifests into memory, the actual allocation required can far exceed the archive size, potentially exhausting the server’s memory, causing the process to terminate or generating request failures.

Affected Systems

This flaw affects the Gitea application. All installations running a Gitea version older than the patched release (available in Gitea 1.27.3 and later) are vulnerable. The patch implements limits on the total manifest size and the number of manifests processed in one upload.

Risk and Exploitability

The CVSS score of 6.5 categorizes the vulnerability as moderate. Its EPSS score is below 1 %, indicating a low probability of observed exploitation. The flaw is not listed in the CISA KEV catalog. Exploitation requires a valid Gitea account with package‑publish permission, so the threat is confined to compromised or malicious insider accounts. Once authenticated, the attacker can trigger memory exhaustion and compromise the availability of the Gitea instance.

Generated by OpenCVE AI on October 15, 2026 at 19:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Gitea v1.27.3 patch (or any later version that includes the fix).
  • Restrict the package‑publish permission to trusted users only and review role assignments regularly.
  • If an immediate patch is not feasible, consider disabling Swift package publishing or imposing stricter upload size limits in the Gitea configuration to mitigate potential exploitation.

Generated by OpenCVE AI on October 15, 2026 at 19:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 17 Oct 2026 18:00:00 +0000

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

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

Type Values Removed Values Added
Weaknesses CWE-400
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'}

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's Swift package parser limits each manifest to 128 KiB but does not limit the number of manifests or their aggregate size before reading them into memory. An authenticated user with package-publish permission can upload a highly compressed archive containing many manifests, causing allocations far larger than the uploaded archive. This can exhaust memory, terminate the process, or cause request failures.
Title Gitea Swift package manifest memory exhaustion
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T15:20:14.313Z

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

Link: CVE-2026-63021

cve-icon Vulnrichment

Updated: 2026-10-14T15:20:09.802Z

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-63021

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T17:45:11Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption