Incorrect Authorization Affecting gitea.dev/cmd package, versions <1.26.0-rc0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (38th 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 Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITEADEVCMD-17816600
  • published7 Jul 2026
  • disclosed3 Jul 2026
  • creditUnknown

Introduced: 3 Jul 2026

NewCVE-2026-27780  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade gitea.dev/cmd to version 1.26.0-rc0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization due to improper error handling in the pre-receive process when processing input with bufio.Scanner. An attacker can bypass branch-protection checks by submitting oversized input that triggers scanner errors.

CVSS Base Scores

version 4.0
version 3.1