CVE-2026-27780: Gitea pre-receive hook can miss branch-protection checks after scanner errors
Published Jul 3, 2026
·Updated
Gitea versions before 1.26.0 do not fail closed on bufio.Scanner errors while processing pre-receive hook input, allowing oversized input to bypass branch-protection checks.
Affected Software
1 affected component
Gitea Gitea<1.26.0
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Giteato a version that resolves this vulnerability.Fixed in 1.26.0
Event History
Jul 3, 2026
CVE Published
via MITRE·08:19 PM
Data Sourced
via MITRE·08:19 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
What is the severity of CVE-2026-27780?
CVE-2026-27780 has a risk score of 56, indicating a moderate severity level.
2
How do I fix CVE-2026-27780?
To fix CVE-2026-27780, upgrade Gitea to version 1.26.0 or later.
3
What versions of Gitea are affected by CVE-2026-27780?
Gitea versions prior to 1.26.0 are affected by CVE-2026-27780.
4
What type of vulnerability is CVE-2026-27780?
CVE-2026-27780 is a vulnerability related to branch-protection checks in Gitea.
5
What could happen if CVE-2026-27780 is exploited?
If exploited, CVE-2026-27780 could allow oversized input to bypass critical branch-protection checks.