Description
Gitea does not limit the length of the gitignores field accepted by repository-creation forms and the API. Repository initialization splits the field into template names, repeatedly reads the referenced templates, and buffers their contents in memory. An attacker who can create repositories can submit an oversized value to amplify template reads and memory use, impairing availability.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gitea | Gitea | ≤ 1.27.2 | — |
Advisories 1
- WID-SEC-2026-3079 Gitea: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode BSI CERT-Bund (WID) · Oct 14, 2026
References
- GitHub Security Advisory GHSA-8r3w-5682-jrqf vendor-advisory
- Gitea 1.27.3 release announcement release-notes
- Fix: go-gitea/gitea pull request #39027 patch
- Fix: go-gitea/gitea pull request #39040 patch
- go-gitea/gitea v1.27.3 release release-notes