Inefficient Algorithmic Complexity in Gitea - CVE-2026-56657
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service.
The vulnerability exists due to uncontrolled algorithmic complexity in the SSH key parser when processing RFC 4716 (SSH2) public keys submitted to the user SSH key ingestion endpoint. A remote user can send a specially crafted key submission to cause a denial of service.
The issue can be triggered through a POST request to /api/v1/user/keys with a Bearer token, and the key is normalized before its validity is checked.