CVE-2025-64111: Gogs Remote Command Execution via .git/config Update

gogs.io/gogs Updated 06 Feb 2026

Summary

06/02/2026
Yes i
Critical
9.3

CVE-2025-64111: Gogs's update .git/config file allows remote command execution. Affects gogs.io/gogs versions < 0.13.4. Fixed in 0.13.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Gogs is an open-source self-hosted Git service that allows users to manage their Git repositories with ease. It provides features such as repository management, issue tracking, and a user-friendly interface. However, a critical vulnerability has been identified that allows unauthorized updates to the .git/config file, potentially leading to remote command execution.

Vulnerability Detail

The vulnerability arises from an insufficient security check in the UpdateRepoFile function within Gogs. Under certain conditions, the API router can bypass these checks, allowing an attacker to update files in the .git directory. This flaw can be exploited to execute arbitrary commands on the server, leading to severe security implications.

How To Fix

Latest published version: v0.13.3 as of 22 Oct 2026

go get gogs.io/gogs@v0.13.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.13.4

This is the first release that contains the fix.

go get gogs.io/gogs@v0.13.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can restrict access to the API router or implement additional security measures to prevent unauthorized file updates. However, the best solution is to update to the patched version.

Conclusion

The vulnerability CVE-2025-64111 in Gogs poses a significant risk due to its potential for remote command execution. Users are urged to update to the latest version to mitigate this risk. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for gogs.io/gogs →

Share this vulnerability

FAQ

CVE-2025-64111 is a vulnerability in Gogs that allows remote command execution through unauthorized updates to the .git/config file.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

Exploitation of this vulnerability can lead to remote command execution, allowing attackers to execute arbitrary commands on the server, which can compromise the entire system.

Yes, a patch is available in version 0.13.4 of Gogs. Users are strongly advised to update to this version or later.

If immediate updating is not possible, consider implementing additional security measures to restrict access to the API router as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for gogs.io/gogs.

How To Fix

Latest published version: v0.13.3 as of 22 Oct 2026

go get gogs.io/gogs@v0.13.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.13.4

This is the first release that contains the fix.

go get gogs.io/gogs@v0.13.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback