---
id: CVE-2026-27780
title: >-
  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.
summary: >-
  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.
severity: none
cwe:
  - CWE-863
published: '2026-07-03'
updated: '2026-07-03'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-27780'
references:
  - url: 'https://blog.gitea.com/release-of-1.26.0/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/36963'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.26.0'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
epss: 0.00638
epssPercentile: 0.48354
ingestedAt: '2026-07-04T15:56:16.802Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
