CVE-2026-27780
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.64% (higher than 45% of CVEs)
Published
Last changed
Assigned by
Gitea
Also known as
GHSA-vhq7-fwwh-7hjfGO-2026-6346

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

Product or packageVersionsReported by
Gitea Gitea Open Source Git Serverbefore 1.26.0CVE List
code.gitea.io/gitea (Go)before 1.26.0GitHub Advisory Database, Go Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-863

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

Go Vulnerability Database

Gitea pre-receive hook scanner errors allow branch-protection bypass in code.gitea.io/gitea

NVD (es)

Las versiones de Gitea anteriores a la 1.26.0 no fallan en modo cerrado ante errores de bufio.Scanner al procesar la entrada del hook de pre-recepción, permitiendo que una entrada sobredimensionada eluda las comprobaciones de protección de ramas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-27780 changed 2026-07-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-vhq7-fwwh-7hjf changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6346 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-27780 changed 2026-10-25Public domain