A significant security vulnerability has been discovered in the official Docker image for Gitea, a popular self-hosted Git service. This flaw allows attackers to bypass authentication and impersonate any user, including administrators. Tracked as CVE-2026-20896, the vulnerability affects instances using the default configuration that enables reverse proxy authentication headers like X-WEBAUTH-USER. Michael Clark, a leading security researcher at Sysdig, reported that this vulnerability has been actively exploited, with the first instances detected shortly after the public disclosure.

Approximately 6,200 Gitea instances are exposed on the internet, though the exact number vulnerable remains unknown. The issue arises because the Gitea Docker image is configured to trust identity headers from any IP address, rather than just trusted reverse proxies. This configuration flaw allows unauthenticated users to impersonate others by exploiting these headers.

The critical bug impacts Gitea Docker images up to version 1.26.2. Gitea has since released versions 1.26.3 and 1.26.4 to address this issue, recommending users upgrade to the latest version. Singapore’s cybersecurity agency has also issued warnings about the active exploitation of this flaw. For those unable to upgrade, it is advised to restrict the REVERSE_PROXY_TRUSTED_PROXIES setting to specific trusted IP addresses. Additionally, reviewing access logs for suspicious activity is recommended to identify potential compromises.