Products Lemma APIProof issuance & verification platformTrust402Delegate to agents, and transactSealSign-in for the agent era — no keys handed over
Use cases Manufacturing & Critical InfraInspection Record AssuranceFinance & FinTechCounterparty Record VerificationPublic SectorCertificate-less ProceduresHealthcareQualified Worker AssuranceProcurement & Supply ChainSupplier Credential MonitoringMedia & ContentContent AuthenticityService & RetailCross-group IdentityAI Adoption (cross-industry)AI Run GovernanceDevelopers & Agent OpsAgent Authority Control ▸ Browse the use-case index
Pricing
Resources Critical BriefThe frontier of AI × trustBlogThinking and implementation notesDocumentationAPI & specsVerification CenterReal verification & issuance countsAbout usFRAME00, Inc.ContactSales & press inquiriesGlossaryDefinitionsFAQFrequently asked questions
Dashboard ↗ JA
Home / Critical Brief / No. 096
No. 096 Critical Brief · Agent Authority Proof

Gitea: a default in the official Docker image let anyone impersonate an admin with a single HTTP header (CVE-2026-20896)

9.8CVSS
Severity (Critical), as rated by Gitea as the CNA. No credentials needed
~6,200instances
Gitea instances exposed to the internet (external observation)
13days
From disclosure to the first probing detected in the field (per Sysdig)
CountryGlobal
Incident date2026-06-20
Published2026-07-07
AuthorsLemma Critical Team
Contents
  1. 01Summary
  2. 02What got through
  3. 03Pre-execution check
  4. 04What Lemma does
  5. 05Facts and timeline
  6. 06Sources

Summary

The official Docker image of Gitea, a self-hosted Git service, defaulted to treating every source as a trusted reverse proxy. So in a deployment with reverse-proxy authentication enabled, a request from anywhere was recognized as an administrator just by carrying the header X-WEBAUTH-USER: admin. No credentials and no other preconditions were needed. Gitea fixed it in 1.26.3 and made reverse-proxy authentication explicit opt-in. When who sent a request is decided only by a value inside the request, anyone who can write that value can act as that person.

Exhibit 1Detection vs pre-execution check

A pre-execution check means checking, before an admin operation runs, the path the request came by and whether the principal is allowed to perform it, and keeping a record. Detection means noticing a weakness or anomaly after it surfaces. The dates below are when the fixed releases came out and probing was observed, not necessarily when the weakness became exploitable.

Pre-execution check · not known from the disclosuresBefore an admin operation, check the path the request came by and the principal's authority
What was confirmedWith one header, an unauthenticated party
was recognized as an admin
Detection · workedCVE disclosure, fixed releases, Sysdig's observation of probing
Before
Every source trusted by default
06-20
Fixed in 1.26.3, CVE published
06-21
1.26.4 out, direct update urged
13 days later
First probing seen in the field

What got through

What got through
A request to a protected endpoint carrying X-WEBAUTH-USER: admin, and the resulting recognition as an administrator with privileged operations permitted. Because of the default REVERSE_PROXY_TRUSTED_PROXIES = *, the header was accepted as a claim of an authenticated identity whether or not the sender was a reverse proxy (Gitea, NVD).
What reached the receiving side
In general, an identity passed in a header arrives as a string inside the request. From the string alone, it cannot be told whether the reverse proxy that authenticated the user wrote it or the sender added it. The clue that tells them apart is which source the request came from, and the default here did not use that clue.
What could follow once admin was reached
Reading all private repositories, adding an SSH key for persistent access, changing webhooks to send later pushes outside, taking CI/CD secrets, and reaching the server’s interior via SSRF through webhooks. These are possible impacts, not confirmed harm.
Not disclosed
Whether any instance had admin rights taken in the field. Sysdig detected the first probing 13 days after disclosure, but reported it was at the initial-reconnaissance stage with no progression to an attack (The Hacker News). How many of the roughly 6,200 exposed instances had reverse-proxy authentication enabled.

Pre-execution check

Whatever the route, the condition for telling them apart is that the side running an operation with admin authority checks, before running it and apart from the name written in the request, that the principal behind the request is an administrator.

The core of this case
When who sent a request is decided only by a value inside the request, anyone who can write that value can act as that person.
Who approves
The person who decides who gets admin authority, such as whoever is responsible for running Gitea. Who may perform admin operations such as adding SSH keys, changing webhooks or changing settings, and within what scope, is decided outside the service.
Where it is checked
In two places. Just before accepting an identity header, check that the request came from the trusted reverse proxy. Just before running an admin operation, check that the principal is allowed to perform it. A request that merely says “admin” in a header is stopped without running.
What is recorded
Which approval, whose request and which admin operation was run, kept apart from the fact that the request carried a header.

The fixed releases and the observation of probing deal with the weakness found and what followed; they are not a way to check the principal behind a request before an admin operation. Other cases where a value inside the request decided authentication are Starlette’s BadHost (manipulating the Host header bypassed an MCP server’s authentication) and Kestra’s auth-filter bypass (changing the end of the path removed authentication).

What Lemma does

Lemma builds the pre-execution check into the side that runs operations with admin authority. It does not look for weaknesses or intrusions; it checks, before running and apart from the name written in a header, that the principal behind the request is allowed to perform that operation.

Industries and operations to watch

IndustryDevelopers & agent operations
Organizations running a self-hosted development platform such as Gitea behind a reverse proxy. Source code, CI/CD and developer identities are gathered in one place.
OperationAccounts & permissions
Adding SSH keys, changing webhooks, changing admin settings. A header that says “admin” does not by itself show that the sender is allowed to perform the operation.

Current controls vs Lemma

What the weakness here was confirmed to allow is column 1; column 2 is the operations that could follow once a request is recognized as an admin.

Control Accepting a request with an admin-claiming header (including reading private repositories) Admin operations (adding SSH keys, changing webhooks)
Applying the fixed release (1.26.3 / 1.26.4; reverse-proxy auth made explicit opt-in) Partial Not relevant
Minimizing trusted sources; the reverse proxy overwriting or stripping the header Partial Not relevant
Anomaly detection (after acceptance) Not effective Not effective
Lemma (pre-execution check) Not effective Effective

The fixed release removes the default trust of every source, but if reverse-proxy authentication is enabled with a broad set of trusted sources, the same kind of request still gets through. Minimizing trusted sources and overwriting or stripping the header narrow who can write it, but they depend on the configuration staying as set. Anomaly detection comes after the request is accepted, so admin access at the moment of acceptance is not stopped. Lemma does not stop the acceptance itself; it checks admin operations such as adding SSH keys or changing webhooks, before they run, against whether the principal is allowed. A record of what ran is also kept, so which operation was performed under which approval can be confirmed without relying only on the fact that the request carried a header.

Note: Lemma’s check works only when it is built in just before admin operations run and the approvals are managed outside Gitea. What a request recognized as an admin can read (such as private repositories) is outside this check. The table compares what each control checks; it does not show whether this incident would have been stopped. Lemma does not detect or prevent intrusions.

CheckChecklist

Three things to confirm for a development platform running behind a reverse proxy

  • Is Gitea’s official Docker image on 1.26.4 or later?
  • If you use reverse-proxy authentication, are trusted sources limited to the actual reverse proxy?
  • Can you see, outside the service, a record of when and under whose authority SSH keys were added or webhooks changed?

Facts and timeline

Subject
Gitea, a self-hosted open-source Git service, widely used as a development platform that gathers source code, CI/CD and developer identities.
Identifier
CVE-2026-20896, published as one of the security fixes in Gitea 1.26.3.
Severity
CVSS 9.8 (Critical, AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H). This is the rating by Gitea as the CNA; NVD’s own reassessment had not been provided as of writing.
Report and fix
Reported by Joshua Martinelle of Tenable and @rz1027; fixed by @bircni.
Core of the technique
The official Docker image defaulted to REVERSE_PROXY_TRUSTED_PROXIES = *, treating every source IP as a trusted reverse proxy. With reverse-proxy authentication enabled, attaching X-WEBAUTH-USER: admin to a request for a protected endpoint was enough to be recognized as an administrator.
Possible impact
Reading all private repositories, persistent access by adding an SSH key, changing webhooks to send later pushes outside, taking CI/CD secrets, and reaching the server’s interior via SSRF through webhooks.
Affected versions
Gitea Docker images at 1.26.2 and earlier. Fixed in 1.26.3; updating to 1.26.4, which fixes a code-page regression in 1.26.3, is recommended.
Scale
Roughly 6,200 Gitea instances exposed to the internet (external observation).

Glossary
Reverse proxy — A server that sits between users and a service and relays their requests. In some setups it authenticates the user and passes the result to the service in a header.
Reverse-proxy (header) authentication — A scheme in which the reverse proxy passes the authenticated user's name to the service in a header such as `X-WEBAUTH-USER`, and the service accepts it as an authenticated identity.
REVERSE_PROXY_TRUSTED_PROXIES — The Gitea setting for which sources count as trusted reverse proxies. `*` trusts every source.

Timeline

(Before)
Gitea’s official Docker image defaulted to REVERSE_PROXY_TRUSTED_PROXIES = *.
2026-06-20
Gitea 1.26.3 is published with several security fixes including CVE-2026-20896. Reverse-proxy authentication is made explicit opt-in and the default * is removed.
2026-06-21
1.26.4 is published, fixing a code-page regression in 1.26.3. Gitea strongly recommends updating directly to 1.26.4.
Early 2026-07
Sysdig reports detecting the first exploitation attempt in the field 13 days after disclosure. The activity was at the initial-reconnaissance stage and had not progressed to exploitation.

Technical facts rest on Gitea’s official release announcements (1.26.3 / 1.26.4) and the NVD entry. Some secondary reporting describes “in-the-wild exploitation at the time of disclosure,” but the closer-to-primary Sysdig observation is “initial reconnaissance 13 days after disclosure,” and this Brief writes at that precision. Refer to the latest primary sources. What has not been disclosed does not mean there were no controls.

After disclosure

  • Gitea (go-gitea): Fixed CVE-2026-20896 in 1.26.3 and changed reverse-proxy authentication to explicit opt-in, deliberately enabled by an admin, removing the default *. It strongly recommends updating directly to 1.26.4. The same release also provided several security fixes, including an SSRF (CVE-2026-22874).
  • NVD: Registered CVE-2026-20896.
  • Sysdig: Detected the first probing in the field 13 days after disclosure, and reported it was at the initial-reconnaissance stage with no progression to an attack.
  • Advice to operators: For deployments that use identity headers behind a reverse proxy, having the reverse proxy reliably overwrite or strip the header and minimizing the sources Gitea trusts were shared as emergency measures. Immediate updating of exposed instances is also recommended.

Sources

References: “The last layer left for cyber defense in the age of AI”

The same method elsewhereSee all 30 "Impersonation" cases

This Brief sets out, from disclosed facts, what organisations in a similar position can check. It is not guidance on individual losses or procedures.

This material is a structured analysis of public information; it is not an audit, diagnosis, or recommendation for any specific organization.

Cite this Brief

Lemma Critical Team. (2026).
"Gitea: a default in the official Docker image let anyone impersonate an admin with a single HTTP header (CVE-2026-20896)".
Lemma Critical Brief No.096. Lemma / FRAME00, Inc.
https://lemma.frame00.com/critical/briefs/096-gitea-reverse-proxy-header-auth-bypass/
Read nextNext
All Briefs →
Lemma

If it can't be verified,
it doesn't enter your operation.

Lemma is a pre-execution check: logins, payments, records and publishing that look genuine are checked before they run, with cryptographic proofs the receiving side verifies without asking the issuer. Detection stays; the check sits in front of it.