CVE ID | Published | Description | Score | Severity |
---|---|---|---|---|
A remote command execution vulnerability exists in gogs/gogs versions <=0.12.7 when deployed on a Windows server. The vulnerability arises due to improper validation of the `tree_path` parameter during file uploads. An attacker can set `tree_path=.git.` to upload a file into the .git directory, allowing them to write or rewrite the `.git/config` file. If the `core.sshCommand` is set, this can lead to remote command execution. | 10 |
Critical |
||
Gogs <=0.13.0 is vulnerable to Directory Traversal via the editFilePost function of internal/route/repo/editor.go. | 8.8 |
High |
||
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11. | 9.8 |
Critical |
||
In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover. | 9 |
Critical |
||
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9. | 9.8 |
Critical |
||
Gogs is an open source self-hosted Git service. In versions of gogs prior to 0.12.9 `DisplayName` does not filter characters input from users, which leads to an XSS vulnerability when directly displayed in the issue list. This issue has been resolved in commit 155cae1d which sanitizes `DisplayName` prior to display to the user. All users of gogs are advised to upgrade. Users unable to upgrade should check their users' display names for malicious characters. | 5.4 |
Medium |
||
Path Traversal in GitHub repository gogs/gogs prior to 0.12.9. | 8.1 |
High |
||
Path Traversal in GitHub repository gogs/gogs prior to 0.12.9. | 9.1 |
Critical |
||
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8. | 6.5 |
Medium |
||
Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote Command Execution, because that configuration can contain an option such as sshCommand, which is executed when a master branch is a remote branch (using an ssh:// URI). The remote branch can also be configured by editing the Git configuration file. One can create a new file in a new repository, using the GUI, with "\" as its name, and then rename this file to .git/config with the custom configuration content (and then save it). | 8.8 |
High |