4.9medium
Gogs: Denial of Service in repository/wiki file listing web pages
- Severity
- 4.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3qq3-668m-v9mjGO-2026-5098
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gogs gogs | < 0.14.3 | CVE List |
| gogs.io/gogs (Go) | before 0.14.3, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
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.
Details
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.
In view.go the issue occurs at line 56 while a slightly different issue occurs in wiki.go at line 174 where commits[0] is dereferenced without checking if it contains value.
It is possible to trigger issues in assigning the correct value to variable commits by using a specific string as part of the page title.
The issue is linked to the fact that file names can contain special characters such as *, ?, [, ], etc. that will be interpreted as git's pathspec instead of a simple string. So crafting a name containing an incomplete pathspec sequence will trigger this error.
PoC
As a proof of concept consider the file name "[] and how it affects repository and wiki pages.
In the following images it is shown how pages are created, the error shown in the web page right after creation and the error as logged in the console.
Figure 1: Creation of malicious file in repository
repo_error_webFigure 2: Malicious file in repository causes error 500
repo_error_consoleFigure 3: Console error caused by malicious file in repository
wiki_creationFigure 4: Creation of malicious file in wiki
wiki_error_webFigure 5: Malicious file in wiki causes error 500
wiki_error_consoleFigure 6: Console error caused by malicious file in wiki
Impact
The repository and wiki pages will not render when files named with the payload are present in the repository or in the wiki. This condition will be present as long as the malicious file is present in the repository or wiki. The issue will not cause a DoS condition when using the server via CLI.
Go Vulnerability Database
Gogs has a Denial of Service in repository/wiki file listing web pages in gogs.io/gogs.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: gogs.io/gogs before v0.14.3.
NVD (es)
Gogs es un servicio Git autoalojado de código abierto. Anteriormente a la 0.14.3, un usuario malicioso con derechos para crear un nuevo archivo en un repositorio o página wiki puede desencadenar una condición de denegación de servicio en la que las páginas que contienen el listado de archivos devolverán el error HTTP 500 y harán que la interfaz web sea inutilizable para el repositorio o la wiki. El problema está presente en los archivos internal/route/repo/wiki.go e internal/route/repo/view.go, donde las páginas intentan recuperar información de commit. Si se devuelven errores mientras se recupera la información de commit, la página devolverá un error 500 y dejará de renderizarse, lo que resultará en una denegación de servicio. Esta vulnerabilidad se ha corregido en la versión 0.14.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-64719 changed 2026-06-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3qq3-668m-v9mj changed 2026-07-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5098 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2025-64719 changed 2026-10-12 | Public domain |