CVE-2026-63021

Gitea Swift package manifest memory exhaustion

Published Oct 14, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
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'}

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
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

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