Live threats

All CVEs / Gitea

CVE-2026-103059Gitea

Unauthenticated SSH Authentication in Gitea via Case-Insensitive Public Key Com…

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Oct 6, 2026
Updated
Oct 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-305
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

Gitea versions before 28.0.0 with the built-in SSH server enabled are vulnerable to account impersonation. An attacker can construct a case variant of another user's RSA public key, derive the corresponding private key, and authenticate as that user over SSH. Key lookup was performed using case-insensitive SQL LIKE comparison on databases such as SQLite.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 28.0.0

Update Gitea to version 28.0.0 or later. SSH key lookup is now performed by fingerprint instead of content comparison.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Gitea.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
giteagitea< 28.0.0

Official sources

References

Links published by the sources. Open them with care.