CVE-2026-27780
CRITICAL 9.8CVSS 3.1Gitea pre-receive hook scanner errors allow branch-protection bypass
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.
- Published
- 3 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- 88ee5874-cf24-4952-aea0-31affedb7ff2
- NVD status
- Deferred
- Weakness
- CWE-863
- Also known as
- GHSA-vhq7-fwwh-7hjfGO-2026-6346
- Sources
- NVDJSONOSV GHSA-vhq7-fwwh-7hjfJSONOSV GO-2026-6346JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | code.gitea.io/gitea | < 1.26.0 | 1.26.0 |
References
- https://blog.gitea.com/release-of-1.26.0/ · WEB
- https://github.com/go-gitea/gitea/pull/36963 · WEB
- https://github.com/go-gitea/gitea/releases/tag/v1.26.0 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27780 · ADVISORY
- https://github.com/go-gitea/gitea/commit/c453d09c36fad094405314dba2f370434b200711 · WEB
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/advisories/GHSA-vhq7-fwwh-7hjf · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 3 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Jul 2026)