Arbitrary File Upload Affecting gogs.io/gogs/internal/cmd package, versions <0.14.0-rc.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.62% (45th 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 IDSNYK-GOLANG-GOGSIOGOGSINTERNALCMD-15308659
  • published19 Feb 2026
  • disclosed17 Feb 2026
  • creditUnknown

Introduced: 17 Feb 2026

CVE-2026-25242  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs/internal/cmd to version 0.14.0-rc.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary File Upload via the UploadIssueAttachment and UploadReleaseAttachment functions, over the /issues/attachments and /releases/attachments endpoints. This is only exploitable if the RequireSigninView setting is disabled, which it is by default.

CVSS Base Scores

version 4.0
version 3.1