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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 45% of CVEs (2026-11-30)
- Published: 2026-07-03T20:19:37.968Z
- Modified: 2026-10-25T15:10:00.147Z
- Also known as: GHSA-vhq7-fwwh-7hjf, GO-2026-6346
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- Gitea Gitea Open Source Git Server: before 1.26.0
- code.gitea.io/gitea (Go): before 1.26.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/go-gitea/gitea/pull/36963> (patch, web)
- <https://github.com/go-gitea/gitea/releases/tag/v1.26.0> (release-notes, web)
- <https://blog.gitea.com/release-of-1.26.0/> (release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27780> (advisory)
- <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/advisories/GHSA-vhq7-fwwh-7hjf> (advisory)

## Sources

- CVE List: [CVE-2026-27780](https://www.cve.org/CVERecord?id=CVE-2026-27780), CVE Terms of Use, modified 2026-07-06
- GitHub Advisory Database: [GHSA-vhq7-fwwh-7hjf](https://github.com/advisories/GHSA-vhq7-fwwh-7hjf), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6346](https://pkg.go.dev/vuln/GO-2026-6346), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27780](https://nvd.nist.gov/vuln/detail/CVE-2026-27780), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-27780 · Whole record: https://cve.day/CVE-2026-27780.json · Rebuilt by cve.day 2026-11-25T22:59:27.115Z
