Bug 2547093 (CVE-2026-103059) - CVE-2026-103059 code.gitea.io/gitea: Gitea: Authentication bypass via case-insensitive SSH public key lookup
Summary: CVE-2026-103059 code.gitea.io/gitea: Gitea: Authentication bypass via case-in...
Keywords:
Status: NEW
Alias: CVE-2026-103059
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-06 19:45 UTC by OSIDB Bzimport
Modified: 2026-10-07 03:31 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-06 19:45:40 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.