CVE-2026-103059: Gitea - Authentication Bypass
- Cve: CVE-2026-103059
- Name: Gitea - Authentication Bypass
- Description: When Gitea's built-in SSH server is enabled (`START_SSH_SERVER = true`), the presented public key was looked up with an SQL `LIKE` comparison of its encoded content, which is case-insensitive on some databases, including the default SQLite. An attacker who can construct a case variant of another user's registered RSA public key for which they can derive the private key could have that key matched to the victim's account and authenticate over SSH as that user. Keys are now looked up by fingerprint.
- Impact: Attackers can authenticate as other users over SSH, potentially gaining unauthorized access to user accounts.
- Remediation: Update to a version where keys are looked up by fingerprint instead of case-insensitive LIKE comparison.
- Vulnerability type: broken_authentication
- Vulnerability impact: broken_authentication
- Requirements: SSH server must be enabled and attacker must have a derived private key for a case variant of a victim's public key
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00391
- Epss percentile: 0.33698
- Assignee: 88ee5874-cf24-4952-aea0-31affedb7ff2
- Published at: 2026-10-06T20:17:14Z
- Age in days: 49
- Modified at: 2026-10-15T02:26:26Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-103059
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-305 | Authentication Bypass by Primary Weakness |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/go-gitea/gitea/pull/39423 | Patch, Issue Tracking |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-8pwg-hcgm-54cp | Vendor Advisory |
| https://blog.gitea.com/release-of-28.0.0/ | Release Notes |
| https://github.com/go-gitea/gitea/releases/tag/v28.0.0 | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gitea:gitea | < 28.0.0 | no | nvd | /v1/products/gitea/gitea |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| go-gitea/gitea | pull, releases, security_advisory | yes | /v1/repositories/go-gitea/gitea |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 33493
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports