Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-27780 EUVD-2026-41638GHSA-vhq7-fwwh-7hjfGO-2026-6346

Gitea pre-receive hook can miss branch-protection checks after scanner errors

Published Jul 3, 2026 · Updated Jul 6, 2026 · 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.

Affected products

VendorProductAffectedFixed
Gitea Gitea Open Source Git Server < 1.26.0 1.26.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 SUSE-SU-2026:23863-1, SUSE-SU-2026:23855-1
SLES 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 SUSE-SU-2026:23863-1, SUSE-SU-2026:23855-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 openSUSE-SU-2026:21897-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go code.gitea.io/gitea < 1.26.0 1.26.0 GHSA-vhq7-fwwh-7hjf

Advisories 4

References