# CVE-2026-27780: Gitea pre-receive hook can miss branch-protection checks after scanner errors

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.26.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-03 · Modified: 2026-07-06
- Aliases: GHSA-vhq7-fwwh-7hjf, GO-2026-6346
- Record: https://cvemate.com/vulnerability/CVE-2026-27780 · JSON: https://cvemate.com/vulnerability/CVE-2026-27780/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.472%, percentile 42.435%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- gitea gitea open source git server: \< 1.26.0
- code.gitea.io gitea (Go): \< 1.26.0

## References

- <https://github.com/go-gitea/gitea/pull/36963>
- <https://github.com/go-gitea/gitea/releases/tag/v1.26.0>
- <https://blog.gitea.com/release-of-1.26.0/>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27780>
- <https://github.com/go-gitea/gitea/commit/c453d09c36fad094405314dba2f370434b200711>
- <https://blog.gitea.com/release-of-1.26.0>
- <https://github.com/go-gitea/gitea>
- <https://github.com/advisories/GHSA-vhq7-fwwh-7hjf>

---

Data as of 2026-12-05T14:01:42.576Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
