Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: Unbounded Arch package file metadata can cause resource amplification in Gitea package uploads (CVE-2026-59763)

0
Medium
Published: 07/21/2026 (07/21/2026, 20:20:49 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:52:33 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses