PT-2026-63284 · Gitea+1 · Gitea+1

·

CVE-2026-56657

·

Published

2026-07-21

·

Updated

2026-08-26

CVSS v4.0

6.9

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Gitea (affected versions not specified)
Description An authenticated user can cause a denial of service by submitting a specially crafted RFC 4716 (SSH2) public key to the SSH key ingestion endpoint. The issue stems from a normalization function that uses an O(N²) string concatenation loop without input size limits. When a key contains a large number of short content lines, the server performs a quadratic amount of work in both time and memory allocations because Go strings are immutable, requiring a new array allocation and copy for every concatenation. This can lead to CPU and memory exhaustion, taking the instance offline.
API Endpoints: '/api/v1/user/keys' Vulnerable Parameters or Variables: key Function Names: parseKeyString(), CheckPublicKeyString(), CreateUserPublicKey()
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

DoS

Resource Exhaustion

Improper Access Control

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-56657
GHSA-4XJF-493Q-98P3
GO-2026-6042
OPENSUSE-SU-2026:21483-1

Affected Products

Gitea
Red Os