GitHub Advisoryadvisory · Go
GHSA-vhq7-fwwh-7hjf Gitea pre-receive hook scanner errors allow branch-protection bypass
CRITICAL
Official page ↗
- Aliases
- CVE-2026-27780
- Ecosystem
- Go
- Packages
- code.gitea.io/gitea
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-863
- Reviewed
- 2026-09-01
Affected packages
• Go code.gitea.io/gitea: < 1.26.0 → fixed in 1.26.0
Description
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.
Related
Alias · CVE (1)
- CVE-2026-27780 Gitea versions before 1.26.0 do not fail closed on bufio.Scanner errors while processing pre-receive hook input, allowing oversized input… vulnerability
Weakness · CWE (1)
- CWE-863 Incorrect Authorization weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-27780 advisory
- https://github.com/go-gitea/gitea/pull/36963 web
- https://github.com/go-gitea/gitea/commit/c453d09c36fad094405314dba2f370434b200711 web
- https://blog.gitea.com/release-of-1.26.0 web
- https://github.com/go-gitea/gitea package
- https://github.com/go-gitea/gitea/releases/tag/v1.26.0 web