CVE-2025-64719: Gogs Denial of Service via Unhandled Commit Errors
Gogs, a self-hosted Git service, contains a flaw that allows users with file creation permissions to crash the repository or wiki interface. When a user creates a file, the system attempts to retrieve commit history for the listing pages. If that retrieval fails, the entire page fails with an HTTP 500 error instead of handling the error gracefully. This makes the file listing unusable until the issue is resolved. The vulnerability affects Gogs versions before 0.14.3.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.9 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-20
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-06-25
NVD description (verbatim)
Gogs is an open source self-hosted Git service. Prior to 0.14.3, a malicious user with rights to create a new file on a repository or wiki page can trigger a denial of service condition in which the pages containing the listing of files will return HTTP error 500 and render the web interface unusable for the repository or wiki. The issue is present in file internal/route/repo/wiki.go and internal/route/repo/view.go where the pages try to recover commit information. If errors are returned while recovering commit information, the page will return a 500 error and stop rendering, resulting in a denial of service. This vulnerability is fixed in 0.14.3.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2025-64719 is an improper error handling vulnerability in Gogs's wiki and repository view routes. The affected code paths are internal/route/repo/wiki.go and internal/route/repo/view.go. When rendering file listings, these handlers call functions to recover commit metadata. If those functions return errors—which can be triggered by a user with repository push or wiki write permissions creating a specially crafted file—the error is not caught and handled gracefully. Instead, the page rendering halts and returns HTTP 500, effectively denying access to the affected repository or wiki view. The root cause is inadequate error boundary handling in the commit information retrieval phase.
Business impact
For organizations relying on Gogs for internal or external Git hosting, this vulnerability creates operational disruption. An authenticated user with file creation rights can render a repository or wiki temporarily inaccessible to the broader team. While the impact is localized to the affected repository's web interface (Git operations via command line remain functional), it damages team collaboration workflows and trust in self-hosted infrastructure. The low barrier to exploitation—requiring only standard user permissions—means the risk scales with team size and the number of users granted write access.
Affected systems
All Gogs versions prior to 0.14.3 are vulnerable. The vulnerability requires an authenticated user with rights to create files in a repository or wiki page. There are no vendor-supplied affected product listings in the advisory data, so verification against your Gogs deployment version is essential. Self-hosted instances are the primary concern; cloud-hosted Gogs services (if any) would depend on their patching cadence.
Exploitability
Exploitation is straightforward and requires low privilege: any user with push access to a repository or write access to a wiki can trigger the condition. No special tools, network position, or user interaction is needed beyond creating a file. The attack is reliably reproducible, though the specific file characteristics that trigger the underlying commit-retrieval error are not detailed in the advisory. The CVSS score of 4.9 reflects the availability impact and authentication requirement; the high attack complexity (AC:L) and network accessibility (AV:N) keep it in medium severity rather than high.
Remediation
Upgrade Gogs to version 0.14.3 or later. This release includes fixes to the error handling logic in wiki.go and view.go that prevent unhandled exceptions during commit information recovery. Organizations should verify compatibility with their deployment environment before upgrading, particularly those running older Go versions or with custom patches. No workarounds short of access controls are available; restricting file creation permissions to trusted users reduces immediate risk but does not eliminate the vulnerability.
Patch guidance
Apply Gogs version 0.14.3 or newer. Review release notes for any breaking changes or dependency updates. Test the upgrade in a non-production environment first, particularly if you maintain local customizations. Restart the Gogs service after updating. Verify that repository and wiki page listings load without 500 errors by accessing them through the web interface. If using containerized deployments, pull the updated image tag and redeploy.
Detection guidance
Monitor Gogs access logs for repeated HTTP 500 errors on repository or wiki file listing endpoints. These typically appear as requests to paths like /repo/[name]/wiki or /repo/[name]/src. A spike in 500 errors from authenticated users following file creation activity may indicate exploitation. Review Gogs audit logs or Git push logs for unusual file creation patterns. Verify your running Gogs version using the admin panel or by checking the binary version output. After patching, baseline normal error rates to detect post-upgrade anomalies.
Why prioritize this
Although the CVSS score is moderate (4.9), the ease of exploitation and low friction to trigger the denial of service warrant prompt attention. The vulnerability affects the core Git collaboration interface and can be triggered by any authenticated user. Organizations with large development teams or high write-access counts face greater risk of accidental or intentional disruption. The fix is straightforward and carries low risk, making this suitable for prioritization in the next maintenance window.
Risk score, explained
The CVSS 3.1 score of 4.9 (Medium) reflects a high-availability impact (A:H) but requires high privilege (PR:H) and produces no confidentiality or integrity loss. The score is accurate for a denial-of-service flaw that requires authentication and offers no data breach potential. However, context matters: in a small team or development environment with few authenticated users, the practical risk may be lower; in a large organization with hundreds of developers, the likelihood of accidental or intentional triggering increases. The medium rating appropriately reflects this bounded but real threat to system availability.
Frequently asked questions
Can this vulnerability be exploited without authentication?
No. The attacker must have push access to a repository or write access to a wiki page. This requires legitimate credentials or an account provisioned by the Gogs administrator. The impact is thus confined to insider or compromised-account scenarios.
Does upgrading to 0.14.3 cause downtime or data loss?
Upgrading should not cause data loss. Repositories and wiki content are stored in the underlying Git storage and database, which are not affected by the patch. You should plan for a brief service restart to apply the update, but no migration or backup loss is involved. Always test in a staging environment first.
If I cannot upgrade immediately, what can I do?
Restrict file creation permissions to trusted developers and monitor logs for HTTP 500 errors on repository and wiki listing pages. These are temporary mitigations only. Upgrade as soon as your maintenance window allows, as the fix is low-risk and the vulnerability remains exploitable under the current version.
Does this affect Git operations via the command line?
No. The vulnerability only affects the web interface rendering of repository and wiki file listings. Users can still clone, push, and pull repositories using Git clients on the command line while the web interface is degraded.
This analysis is provided for informational purposes to support security decision-making. We have not tested this vulnerability in a live environment and do not provide proof-of-concept code or exploitation instructions. Patch version numbers and affected software lists are accurate as of the source advisory date; verify against official vendor guidance before deploying patches. Your organization's risk depends on deployment architecture, access controls, and threat model; consult your security team for prioritization decisions specific to your environment. Source: NVD (public-domain), retrieved 2026-08-02. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2024-21944MEDIUMMemory Integrity Vulnerability in DIMM SPD Validation
- CVE-2025-5089MEDIUMArista EOS/CVX DoS via Malformed Messages
- CVE-2025-5090MEDIUMCVX CVE-2025-5090: Input Validation Flaw Leads to Agent Crashes and Denial of Service
- CVE-2025-58175MEDIUMGeoServer SSRF Vulnerability in Proxy Configuration
- CVE-2026-0018MEDIUMAndroid AccessibilityManagerService Denial of Service Vulnerability
- CVE-2026-0051MEDIUMAndroid UBSan Runtime Denial of Service Vulnerability
- CVE-2026-0070MEDIUMAndroid DevicePolicyManagerService Local Denial of Service Vulnerability
- CVE-2026-0085MEDIUMAndroid Contact Handler Denial of Service Vulnerability