Command Injection Affecting gogs.io/gogs/internal/osutil package, versions <0.13.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.23% (65th 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-GOGSIOGOGSINTERNALOSUTIL-15245252
  • published6 Feb 2026
  • disclosed6 Feb 2026
  • creditROPShell

Introduced: 6 Feb 2026

CVE-2025-64111  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs/internal/osutil to version 0.13.4 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection in the UpdateRepoFile() function. An attacker can execute arbitrary system commands by updating files within the .git directory remotely via API router.

This vulnerability is a bypass for the one addressed in CVE-2024-56731.

CVSS Base Scores

version 4.0
version 3.1