Description
Gitea Docker image versions up to and including 1.26.2 use REVERSE_PROXY_TRUSTED_PROXIES=* by default, allowing any source IP to impersonate a user when reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled.
Published: 2026-07-03
Score: 9.8 Critical
EPSS: 31.8% Moderate
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea Docker images use REVERSE_PROXY_TRUSTED_PROXIES=* by default, meaning that any network source can present authentication headers such as X‑WEBAUTH‑USER and the application will accept them unfiltered. This flaw allows an attacker to fabricate a header that claims to be any registered user, including administrators, and thereby perform actions with elevated privileges. As a result, the attacker can commit code, modify repositories, and potentially impact overall system integrity and confidentiality. The weakness is an access‑control failure, classified as CWE‑284.

Affected Systems

The vulnerability affects the Gitea Open Source Git Server Docker images up to and including version 1.26.2. Versions 1.26.3 and later contain the correction that removes the default wildcard trust setting.

Risk and Exploitability

The CVSS score of 9.8 indicates a critical severity. The EPSS score of < 1% suggests a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves a malicious client that sends‑USER header to a Gitea instance behind an arbitrary reverse proxy whose REVERSE_PROXY_TRUSTED_PROXIES is set to *.

Generated by OpenCVE AI on July 24, 2026 at 10:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Gitea Docker image to version 1.26.3 or later, which removes the default wildcard trust setting.
  • If an upgrade cannot be performed immediately, configure REVERSE_PROXY_TRUSTED_PROXIES to contain only the IP addresses of the trusted reverse proxies in your environment, replacing the asterisk.
  • If the deployment does not rely on authenticated reverse proxies, disable or remove reverse‑proxy authentication headers such as X‑WEBAUTH‑USER to eliminate the possibility of header spoofing.

Generated by OpenCVE AI on July 24, 2026 at 10:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f75j-4cw6-rmx4 Gitea Docker image: `REVERSE_PROXY_TRUSTED_PROXIES = *` default lets any source IP impersonate any user via `X-WEBAUTH-USER`
History

Tue, 07 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Fri, 03 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Description Gitea Docker image versions up to and including 1.26.2 use REVERSE_PROXY_TRUSTED_PROXIES=* by default, allowing any source IP to impersonate a user when reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled.
Title Gitea Docker image trusts spoofable reverse-proxy headers by default
Weaknesses CWE-284
References
Metrics cvssV3_1

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


Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-07T17:00:46.549Z

Reserved: 2026-03-03T03:25:59.988Z

Link: CVE-2026-20896

cve-icon Vulnrichment

Updated: 2026-07-06T19:03:20.935Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-24T10:45:03Z

Weaknesses