Vulnerability · Published Jul 3, 2026 · Assigned by Gitea

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

Critical 9.8

In plain English

A critical-severity incorrect authorization in Gitea Open Source Git Server from Gitea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.6%top 49.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gocode.gitea.io/gitea1.26.0GHSA-vhq7-fwwh-7hjf
Gocode.gitea.io/gitea1.26.0GO-2026-6346

Affected products (as reported)

VendorProductVersions
Gitea Gitea Open Source Git Server 0 – before 1.26.0

Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References