CVE-2026-25119 PUBLISHED

Gogs: Authentication Bypass via Unvalidated Reverse Proxy Headers

Assigner: GitHub_M
Reserved: 29.01.2026 Published: 24.06.2026 Updated: 24.06.2026

Gogs is an open source self-hosted Git service. Prior to 0.14.3, when ENABLE_REVERSE_PROXY_AUTHENTICATION is enabled, Gogs accepts the configured authentication header (default: X-WEBAUTH-USER) directly from client requests without validating that the request originated from a trusted reverse proxy. Any remote attacker who can reach the Gogs service can forge this header to impersonate any user or trigger automatic account creation, completely bypassing authentication. This vulnerability is fixed in 0.14.3.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
CVSS Score: 7.7

Product Status

Vendor gogs
Product gogs
Versions
  • Version < 0.14.3 is affected

References

Problem Types

  • CWE-290: Authentication Bypass by Spoofing CWE