CVE-2025-64111
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGogs is an open source self-hosted Git service. In version 0.13.3 and prior, due to the insufficient patch for CVE-2024-56731, it's still possible to update files in the .git directory and achieve remote command execution. This issue has been patched in versions 0.13.4 and 0.14.0+dev.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGogs versions 0.13.3 and prior contain a path traversal vulnerability allowing attackers to write files to the .git directory, bypassing an incomplete fix for CVE-2024-56731. This arbitrary file write capability can be leveraged to achieve remote command execution on the server.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 0.13.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Gogs versionLog into the Gogs administrative interface and navigate to the admin dashboard or site administration page to view the running version. Alternatively, check the binary version using 'gogs --version' or inspect the version displayed on the login page footer.Affected if The displayed version is 0.13.3 or any version prior to 0.13.4 (e.g., 0.13.2, 0.13.1, 0.13.0, 0.12, etc.)
-
Confirm web interface is accessibleVerify that the Gogs web interface is reachable over HTTP/HTTPS. This vulnerability is exploited via HTTP requests to the web application.Affected if The Gogs web interface is exposed and accepts external requests (not restricted to localhost only).
-
Inspect .git repository directory for unexpected filesLocate the repository storage directory (commonly 'gogs-repositories' or similar in the Gogs data path). Within individual repository directories, examine the .git folder contents for any files that should not exist there, such as new config files, scripts, or binary files that were not created by normal Gits operations.Affected if Unexpected files or modifications are found within .git directories that were not created by standard git operations or Gits internal processes.
A user is affected if their Gogs installation shows a version lower than 0.13.4 and has its web interface accessible, as the path traversal vulnerability can be exploited via HTTP requests to write arbitrary files to .git directories.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped0.13.4
Upgrade Gogs to version 0.13.4 or 0.14.0+dev to apply the complete patch for this vulnerability.
0.13.4 or later (including 0.14.0+dev)
- 1. Back up your existing Gogs data directory (usually /home/gogs/gogs or /var/gogs)
- 2. Back up your Gogs database if using a database backend
- 3. Stop the Gogs service (e.g., systemctl stop gogs or equivalent)
- 4. Download the latest Gogs release from https://github.com/gogs/gogs/releases (version 0.13.4 or later)
- 5. Extract the new binary and replace the existing gogs binary
- 6. Ensure file permissions are correct (executable by gogs user)
- 7. Start the Gogs service (e.g., systemctl start gogs)
- 8. Verify the upgrade by logging into Gogs and checking the version in the admin panel
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,272.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-64111 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-64111 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data