go-gitea/gitea · Security

Gitea pre-receive hook scanner errors allow branch-protection bypass

GHSA ID
GHSA-vhq7-fwwh-7hjf
CVE ID
CVE-2026-27780
Severity
critical
Published
Updated
CVSS
9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v3
9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CWEs

References