PT-2026-63276 · Gitea+1 · Gitea+1

·

CVE-2026-42931

·

Published

2026-07-21

·

Updated

2026-08-26

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Gitea versions prior to 1.27.0
Description An authenticated user can cause a denial of service by sending a large HTTP request to the NPM package tag API endpoint. The AddPackageTag() function reads the entire request body into memory using io.ReadAll() without validating the size. This leads to an Out-of-Memory (OOM) condition that crashes the entire server process. Because the server-side size limits are not enforced for this specific endpoint, a single request containing data roughly 80% of the available system memory is sufficient to trigger the crash. Concurrent requests can result in a persistent denial of service that survives automatic restarts.
API Endpoint: /api/packages/{owner}/npm/-/package/{id}/dist-tags/{tag}
Recommendations Update Gitea to version 1.27.0 or later. As a temporary mitigation, restrict access to the /api/packages/{owner}/npm/-/package/{id}/dist-tags/{tag} endpoint to trusted users only.

Exploit

Fix

DoS

Allocation of Resources Without Limits

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-42931
GHSA-WWQQ-X6W4-FRM2
GO-2026-6082
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Gitea
Red Os