Skip to main content

Gitea CVE-2026-27780

| EUVDEUVD-2026-41638 CRITICAL
Incorrect Authorization (CWE-863)
2026-07-03 Gitea GHSA-vhq7-fwwh-7hjf
9.8
CVSS 3.1 · Vendor: Gitea
Share

Severity by source

Vendor (Gitea) PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
6.5 MEDIUM

Requires an authenticated user with repo push access (PR:L), so not PR:N; impact is writing to protected branches (I:H) with no confidentiality or availability loss.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Generated
Jul 06, 2026 - 16:32 vuln.today
CVSS changed
Jul 06, 2026 - 16:22 NVD
9.8 (CRITICAL)
CVE Published
Jul 03, 2026 - 20:19 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

AnalysisAI

Branch-protection bypass in Gitea's self-hosted Git server (all versions before 1.26.0) allows a user with push access to circumvent pre-receive hook enforcement by supplying oversized hook input that trips a bufio.Scanner error the code fails to handle safely. Because Gitea does not fail closed on the scanner error, the protection check is silently skipped and the push is accepted. No public exploit identified at time of analysis; EPSS is low (0.17%, 7th percentile) and this is not in CISA KEV, but a vendor patch (v1.26.0) is available.

Technical ContextAI

Gitea is a lightweight, self-hosted Git service written in Go, comparable to GitLab/Gitea/GitHub Enterprise for team code hosting. The flaw lives in the server-side pre-receive hook path that enforces branch protection (who may push, force-push, or delete protected refs). Go's bufio.Scanner has a default maximum token size (64KB) and returns bufio.ErrTooLong when a line exceeds it; the vulnerable code treats a Scanner error as an empty/complete read rather than an error condition, so oversized input causes the enforcement logic to terminate early without rejecting the push. This is CWE-863 (Incorrect Authorization): the security decision is reached through a code path that does not fail closed, so a control that should deny by default instead permits.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.26.0 or later (https://github.com/go-gitea/gitea/releases/tag/v1.26.0), which corrects the pre-receive hook handling so bufio.Scanner errors fail closed (fix in https://github.com/go-gitea/gitea/pull/36963). Until you can upgrade, reduce exposure by restricting who holds push/write access to repositories with branch protection and audit collaborator lists, since exploitation requires an account able to push; where feasible, enforce protections through an external mechanism the Git server cannot bypass (e.g., server-side CI gates or a proxy that inspects pushes) rather than relying solely on Gitea's in-process check - with the trade-off of added pipeline complexity. Review push logs on protected branches for anomalous accepted pushes that should have been blocked.

More in Gitea

View all
CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2020-13246 HIGH POC
7.5 May 20

An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2022-0905 HIGH POC
7.1 Mar 10

Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4. Rated high severity (CVSS 7.1), this vulnerab

CVE-2022-1058 MEDIUM POC
6.1 Mar 24

Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5. Rated medium severity (CVSS 6.1), this vulne

CVE-2026-72867 CRITICAL
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

Share

CVE-2026-27780 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy