CVE-2026-27657

Gitea email settings allow changing another user's primary email address

Published Jul 3, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Gitea versions before 1.25.5 allow a user to change another user's primary email address.

Analysis

AI-generated

Technical impact

A flaw in Gitea prior to version 1.25.5 permits an authenticated user to alter another user’s primary email address, bypassing the expected restriction on account data changes. The weakness, identified as CWE‑639, enables unauthorized modification of a user’s primary email, which could allow an attacker to assume control of the user’s account or redirect messages intended for that user. The primary impact is the risk of account takeover or ensuring communication is sent to a compromised address.

Affected Systems

The Gitea open‑source Git server is affected. All releases before 1.25.5 are vulnerable, as no other vendors or products are listed as impacted.

Risk and Exploitability

The CVSS score of 7.5 signals high severity while the EPSS score of less than 1 % indicates a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an authenticated session and is executed through the normal web interface by using the email change function. Based on the description, the attack vector is inferred as an authenticated, internal user action that can modify another user’s primary email address.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea 1.25.5 or later to apply the vendor patch.
  • Restrict the permission that allows changing primary email addresses so that only administrators or the account owner can perform this action.
  • Monitor audit logs for profile changes, set alerts for unauthorized email modifications, and consider disabling the email change feature if not required.

Generated by OpenCVE AI on August 3, 2026 at 05:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4c8f-3m6h-m56r Gitea primary email ownership bypass allows cross-user email changes
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Gitea versions before 1.25.5 allow a user to change another user's primary email address.
Title Gitea email settings allow changing another user's primary email address
Weaknesses CWE-639
References
Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 7, 2026, 4:59 PM
Reserved
Feb 22, 2026, 3:13 PM
Status
Deferred
Published
Jul 3, 2026, 9:16 PM
Modified
Oct 25, 2026, 3:10 PM