PT-2026-63314 · Gitea+1 · Gitea+1
CVSS v4.0
5.3
Medium
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Gitea (affected versions not specified)
Description
An authenticated user with package publishing permissions can cause resource amplification by uploading a specially crafted Arch package archive. The system records non-dot regular file entries from the archive into package metadata without explicit limits on the number of entries or the cumulative size of file names. This allows a small compressed archive to result in disproportionately large server-side metadata processing and storage.
Technical details include:
- API Endpoint:
/api/packages/arch(upload flow) - Vulnerable Functions:
arch module.ParsePackage()andprocessTransaction()(implied by metadata handling) - Vulnerable Variables:
p.FileMetadata.Files
This issue impacts CPU usage during parsing and index generation, memory usage during metadata handling, and database storage due to large serialized metadata. It is particularly relevant for instances allowing untrusted users to publish packages.
Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
As a temporary mitigation, consider implementing the following controls during Arch package metadata parsing:
- Limit the maximum number of regular file entries recorded in
FileMetadata.Files. - Limit the cumulative byte length of recorded file names.
- Return a 4xx validation error when an uploaded package exceeds these limits.
Exploit
DoS
Allocation of Resources Without Limits
Improper Access Control
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gitea
Red Os