CVE-2026-73804
8.1 HIGHpublic exploit availablePublished 2026-10-14 · Updated 2026-10-18
AI risk analysis
- Summary
- A user-scoped token with write:user permissions can be abused to register an attacker-controlled SSH public key on the victim's account. The attacker then uses HTTP Signature authentication with the corresponding private key to bypass API token scope checks, effectively converting a scoped token into an unauthenticated session that retains the victim’s account permissions.
- Exploitability
- Exploitation requires possession of a valid user-scoped token with write:user scope and the ability to register an SSH key via the API; no special privileges beyond that are needed.
- Blast radius
- An attacker can fully impersonate the compromised user for API operations, gaining access to all repositories and data the user can access, while leaving normal account permissions and role-based access controls intact.
- Detection
- Look for API requests authenticated via HTTP Signature that are made using an SSH key registered through a user-scoped token with write:user permissions—especially if the request targets endpoints normally restricted by token scope. Monitor logs for new SSH key registrations followed immediately by high-privilege API calls signed with that key.
- Prioritized remediation
- Upgrade to Gitea 2.590 or later, which enforces token scope validation even when HTTP Signature authentication is used.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
Gitea allows a token with write:user scope to register an attacker-controlled SSH public key on the token owner's account. API requests signed with the corresponding private key authenticate as that account through HTTP Signature without API token scope information, causing route-level token scope checks to be skipped. This converts a user-scoped token into an unscoped API authentication method while retaining the account's normal role and repository permissions.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-266, CWE-863
Public exploit & PoC references
References
- https://blog.gitea.com/release-of-1.27.2/
- https://github.com/go-gitea/gitea/pull/38862
- https://github.com/go-gitea/gitea/pull/38895
- https://github.com/go-gitea/gitea/releases/tag/v1.27.2
- https://github.com/go-gitea/gitea/security/advisories/GHSA-q55v-4cmj-xh65
- https://github.com/go-gitea/gitea/security/advisories/GHSA-q55v-4cmj-xh65
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.