Gitea: Unbounded Arch package file metadata can cause resource amplification in Gitea package uploads (CVE-2026-59763)
Gitea's Arch package registry implementation allows authenticated users with package publishing permissions to upload Arch package archives containing an unbounded number of file entries. This leads to resource amplification where small compressed archives produce disproportionately large server-side metadata, impacting CPU, memory, database storage, and repository index generation. The issue affects versions prior to 1.27.0. The vulnerability does not impact confidentiality or integrity but may degrade availability due to amplified resource consumption.
AI Analysis
Technical Summary
Gitea's Arch package upload endpoint parses uploaded Arch package archives and records non-dot regular file entries into package metadata without explicit limits on the number or cumulative size of these entries. This metadata is serialized, stored, and used during repository index generation. An authenticated user with package publishing permission can exploit this by uploading an archive with a large number of empty file entries, causing significant resource amplification on the server side. Testing showed that a 470 KB archive with 100,000 empty files generated over 4.5 MB of metadata, and a 2.3 MB archive with 500,000 empty files generated over 22.5 MB of metadata. This impacts CPU, memory, database storage, and index generation time, potentially affecting availability.
Potential Impact
The vulnerability allows an authenticated user with package publishing permissions to cause resource amplification by uploading Arch packages with excessive file entries. This can lead to increased CPU and memory usage during metadata parsing and repository index generation, larger database storage requirements for serialized metadata, and slower repository index processing. The impact is limited to availability degradation; confidentiality and integrity are not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict package publishing permissions to trusted users only to reduce the risk of exploitation. Monitor resource usage related to package uploads and consider implementing custom limits or validations on the number of file entries in Arch packages if possible.
Gitea: Unbounded Arch package file metadata can cause resource amplification in Gitea package uploads (CVE-2026-59763)
Description
Gitea's Arch package registry implementation allows authenticated users with package publishing permissions to upload Arch package archives containing an unbounded number of file entries. This leads to resource amplification where small compressed archives produce disproportionately large server-side metadata, impacting CPU, memory, database storage, and repository index generation. The issue affects versions prior to 1.27.0. The vulnerability does not impact confidentiality or integrity but may degrade availability due to amplified resource consumption.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Gitea's Arch package upload endpoint parses uploaded Arch package archives and records non-dot regular file entries into package metadata without explicit limits on the number or cumulative size of these entries. This metadata is serialized, stored, and used during repository index generation. An authenticated user with package publishing permission can exploit this by uploading an archive with a large number of empty file entries, causing significant resource amplification on the server side. Testing showed that a 470 KB archive with 100,000 empty files generated over 4.5 MB of metadata, and a 2.3 MB archive with 500,000 empty files generated over 22.5 MB of metadata. This impacts CPU, memory, database storage, and index generation time, potentially affecting availability.
Potential Impact
The vulnerability allows an authenticated user with package publishing permissions to cause resource amplification by uploading Arch packages with excessive file entries. This can lead to increased CPU and memory usage during metadata parsing and repository index generation, larger database storage requirements for serialized metadata, and slower repository index processing. The impact is limited to availability degradation; confidentiality and integrity are not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict package publishing permissions to trusted users only to reduce the risk of exploitation. Monitor resource usage related to package uploads and consider implementing custom limits or validations on the number of file entries in Arch packages if possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9mq6-mqjj-c2c5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59763"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a600abb9c2644c7f8fe2ba4
Added to database: 07/22/2026, 00:11:39 UTC
Last enriched: 07/22/2026, 00:52:33 UTC
Last updated: 07/31/2026, 12:28:12 UTC
Views: 20
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.