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

CVE-2026-59763 · Severity: medium · CVSS 4.3 · Published 2026-08-13

Gitea is an open-source platform for hosting software development projects. A vulnerability in its Arch Linux package registry allows authenticated users to upload specially crafted packages that cause the server to consume excessive resources. This can lead to significant slowdowns, increased database storage costs, and potential service outages for the entire Gitea instance.

Technologies: Gitea, code.gitea.io/gitea (Go), gitea.dev (Go). Vendors: Gitea, Go.

Quick answers

Is CVE-2026-59763 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-59763 being exploited in the wild.
How severe is CVE-2026-59763?
Medium severity, with a CVSS score of 4.3, published 13 August 2026.
Which products and versions are affected?
Gitea < 1.27.0; code.gitea.io/gitea (Go) < 1.27.0, SEMVER:introduced=0,fixed=1.27.0; gitea.dev (Go) SEMVER:introduced=0,fixed=1.27.0.
Is there a fix for CVE-2026-59763?
Yes. code.gitea.io/gitea (Go): upgrade to 1.27.0 or later; gitea.dev (Go): upgrade to 1.27.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-59763 attacked?
It is attacked over the network, in a hosted service.
Am I affected by CVE-2026-59763?
Check whether you run Gitea, code.gitea.io/gitea (Go) or gitea.dev (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • code.gitea.io/gitea (Go): upgrade to 1.27.0 or later
    go get code.gitea.io/gitea@v1.27.0
  • gitea.dev (Go): upgrade to 1.27.0 or later
    go get gitea.dev@v1.27.0

Technical details

The vulnerability exists in Gitea's Arch package registry implementation where the server fails to limit the number of file entries or the cumulative size of file names recorded from an uploaded Arch package archive (.pkg.tar.gz). During the upload flow, `modules/packages/arch/metadata.go` appends every regular file entry to the package metadata, which is then serialized as JSON and stored in the database. An attacker with package publishing permissions can upload a small, highly compressed archive containing hundreds of thousands of empty files. This results in resource amplification during metadata parsing, database persistence, and subsequent repository index generation, leading to excessive CPU, memory, and storage consumption. The issue is fixed in version 1.27.0.

Affected products

  • Gitea Gitea < 1.27.0

Identifiers

  • CVE-2026-59763
  • GHSA-9mq6-mqjj-c2c5
  • GO-2026-6049

Timeline

  • 2026-07-13: disclosed
  • 2026-07-13: advisory
  • 2026-07-21: patched: Date of GHSA publication indicates patch availability in 1.27.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.