go-gitea/gitea · Security
Gitea pre-receive hook scanner errors allow branch-protection bypass
- GHSA ID
- GHSA-vhq7-fwwh-7hjf
- CVE ID
- CVE-2026-27780
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-863 · Incorrect Authorization
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-27780 ↗
- https://github.com/go-gitea/gitea/pull/36963 ↗
- https://blog.gitea.com/release-of-1.26.0 ↗
- https://github.com/go-gitea/gitea/releases/tag/v1.26.0 ↗
- https://github.com/go-gitea/gitea/commit/c453d09c36fad094405314dba2f370434b200711 ↗
- https://github.com/advisories/GHSA-vhq7-fwwh-7hjf ↗