CVE-2026-62925

Gitea Alpine package parsing memory exhaustion

Published Oct 14, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Gitea parses Alpine package uploads before enforcing package-size quotas and does not bound the decompressed .PKGINFO data or its dependency and provides entry counts. An authenticated user with package-publish permission can upload a small, highly compressed archive that causes disproportionately large memory allocations during parsing and metadata generation. On memory-constrained deployments, this can terminate the process or otherwise disrupt availability.

Analysis

AI-generated

Technical impact

Gitea parses Alpine package uploads before enforcing package‑size quotas, decompressing the .PKGINFO data and enumerating dependency entries without bounding the result. An authenticated user with package‑publish rights can upload a tiny but highly compressed archive that expands into a vastly larger amount of data during parsing and metadata generation, causing an uncontrolled allocation that can exhaust memory and terminate or otherwise disrupt the Gitea process. This weakness matches CWE‑400 and can lead to a denial of service of the entire instance or associated services.

Affected Systems

All Gitea installations running versions older than v1.27.3 that accept Alpine packages are affected. The vulnerable code path exists in all releases prior to the fix released in 1.27.3, regardless of the operating system.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. Exploitation requires authentication with package‑publish permissions, therefore it primarily represents an internal or credential‑compromise scenario. The EPSS score is below 1 %, implying a very low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Nevertheless, an attacker who successfully uploads an exploitative package can cause uncontrolled memory allocation, leading to a crash or unresponsiveness of the Gitea process and resulting in service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea v1.27.3 or later, where the parser limits memory usage during package upload.
  • Restrict the package‑publish permission to trusted users only and remove it from accounts that do not need to upload packages.
  • Apply system‑level resource limits (e.g., ulimit, cgroup) on the Gitea process to guard against excessive memory consumption if an exploit occurs.

Generated by OpenCVE AI on October 15, 2026 at 19:41 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 parses Alpine package uploads before enforcing package-size quotas and does not bound the decompressed .PKGINFO data or its dependency and provides entry counts. An authenticated user with package-publish permission can upload a small, highly compressed archive that causes disproportionately large memory allocations during parsing and metadata generation. On memory-constrained deployments, this can terminate the process or otherwise disrupt availability.
Title Gitea Alpine package parsing 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