sadrobot

← Back to the monthly list · Gitea →

CVE-2026-103059 Gitea · Gitea

9.1 Critical

AI summary

With Gitea's built-in SSH server enabled (START_SSH_SERVER = true), public keys were matched using a case-insensitive SQL LIKE comparison on some databases, including default SQLite. An attacker with a usable case variant of another user's RSA key could authenticate over SSH as that user. Critical (CVSS 9.1); the fix looks up keys by fingerprint.

Official 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.

Published
2026-10-06 20:17 UTC
Modified
2026-10-15 02:26 UTC
CVSS
9.1 Critical CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.49% (percentile 35)
ENISA EUVD
EUVD-2026-93906
CISA SSVC
Exploitation: none · Automatable: yes · Technical impact: total
CWE
CWE-305

CVSS vector

Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
none

References