Improper Handling of Case Sensitivity in Gitea - CVE-2026-103059

 

Improper Handling of Case Sensitivity in Gitea - CVE-2026-103059

Published: October 19, 2026


Vulnerability identifier: #VU156104
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-103059
CWE-ID: CWE-178
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass SSH authentication as a user with a registered RSA public key and obtain read/write access to all repositories accessible to that user.

The vulnerability exists due to case-insensitive comparison of RSA public-key text in Gitea's built-in SSH server when matching presented keys against registered keys using SQLite LIKE prefix queries. A remote attacker can retrieve a victim's public key from /{username}.keys, change the case of base64 letters in its RSA modulus until the resulting modulus is prime, and derive a working private exponent to authenticate with the resulting look-alike key and access or modify the victim's repositories.


Affected software

Gitea

How to mitigate CVE-2026-103059

Install security update from vendor's website.

Gitea - update to 28.0.0

External References

Related Security Bulletins