Skip to main content

Gitea CVE-2026-27657

| EUVDEUVD-2026-41632 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-07-03 Gitea GHSA-4c8f-3m6h-m56r
7.5
CVSS 3.1 · Vendor: Gitea
Share

Severity by source

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

Network-reachable web endpoint with low complexity, but the vulnerable code path and patch tests require a logged-in account so PR:L not PR:N; impact is integrity-only (another user's email) with no confidentiality or availability effect.

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:N/I:H/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 22, 2026 - 18:32 vuln.today
Analysis Generated
Jul 22, 2026 - 18:32 vuln.today
CVE Published
Jul 03, 2026 - 20:19 cve.org
HIGH 7.5
CVE Published
Jul 03, 2026 - 20:19 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Gitea versions before 1.25.5 allow a user to change another user's primary email address.

AnalysisAI

Broken object-level authorization (IDOR) in Gitea before 1.25.5 lets an authenticated user manipulate the primary email address of an arbitrary other account by supplying an email row ID they do not own. The account-settings 'make primary' handler looked up the target email by ID alone without verifying ownership, so a logged-in attacker can alter another user's primary email - an integrity impact with account-hijack and notification-redirection potential. There is no public exploit or active exploitation, EPSS is low (0.17%), and Gitea has shipped a fix in 1.25.5.

Technical ContextAI

Gitea is a self-hosted, lightweight open-source Git service (cpe:2.3:a:gitea:gitea_open_source_git_server) written in Go. The root cause is CWE-639, Authorization Bypass Through User-Controlled Key: the web account handler EmailPost in routers/web/user/setting/account.go passed the attacker-controlled form field 'id' straight into user_model.MakeActiveEmailPrimary, and makeEmailPrimaryInternal in models/user/email_address.go queried the email row using only ID(emailID) with an is_activated filter - never scoping to the requesting user's UID. Because email row IDs are sequential integers, any authenticated user could reference another user's email record. The PR 36586 fix adds an ownerID (ctx.Doer.ID) parameter and constrains the query with builder.Eq{"uid": ownerID}, returning an 'email address could not be found' error when the row is not owned by the caller.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.25.5 or later, which adds owner-scoping (uid) to the primary-email query (fix commits in https://github.com/go-gitea/gitea/pull/36586 and https://github.com/go-gitea/gitea/pull/36607; release https://github.com/go-gitea/gitea/releases/tag/v1.25.5). If immediate upgrade is not possible, reduce exposure by disabling open self-registration (set service.DISABLE_REGISTRATION or require admin approval) to limit who can obtain an account and reach the vulnerable /user/settings/account/email endpoint, and by restricting network access to the Gitea instance to trusted users - note these controls only shrink the attacker pool and do not close the IDOR, so patching remains necessary. Monitor account-settings activity and audit unexpected primary-email changes as an interim detection measure.

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-27657 vulnerability details – vuln.today

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