Allocation of Resources Without Limits or Throttling Affecting github.com/go-gitea/gitea/services/forms package, versions <1.27.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.17% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITEAGITEASERVICESFORMS-18677745
  • published12 Aug 2026
  • disclosed21 Jul 2026
  • creditAdamKorcz

Introduced: 21 Jul 2026

CVE-2026-56657  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade github.com/go-gitea/gitea/services/forms to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the parseKeyString function. An attacker can exhaust server CPU and memory resources by submitting a specially crafted SSH key with a very large number of lines, causing the server to perform quadratic work and potentially take the instance offline.

Note: This is only exploitable if an authenticated user submits a maliciously large SSH key, as there is no input size limit enforced.

CVSS Base Scores

version 4.0
version 3.1