← Back

Gogs

gogs

Vendor: Gogs • 49 CVEs

CVEs (49)

CVE
VENDORS
PRODUCTS
UPDATED
PUBLISHED
CVSS
1Gogs
1Gogs
Jun 17, 2026
Nov 15, 2024
N/A· v4
8.8 HIGH· v3
N/A· v2
Gogs <=0.13.0 is vulnerable to Directory Traversal via the editFilePost function of internal/route/repo/editor.go.
1Gogs
1Gogs
Jun 17, 2026
Nov 15, 2024
N/A· v4
9.8 CRITICAL· v3
N/A· v2
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 a...Show more
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.Show less
1Gogs
1Gogs
Jun 17, 2026
Jul 4, 2024
N/A· v4
7.7 HIGH· v3
N/A· v2
Gogs through 0.13.0 allows argument injection during the tagging of a new release.
1Gogs
1Gogs
Jun 17, 2026
Jul 4, 2024
N/A· v4
9.9 CRITICAL· v3
N/A· v2
Gogs through 0.13.0 allows argument injection during the previewing of changes.
1Gogs
1Gogs
Jun 17, 2026
Jul 4, 2024
N/A· v4
9.9 CRITICAL· v3
N/A· v2
Gogs through 0.13.0 allows deletion of internal files.
1Gogs
1Gogs
Jun 17, 2026
Jul 4, 2024
N/A· v4
9.9 CRITICAL· v3
N/A· v2
The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution. Authenticated attackers can exploit this by opening an SSH connection and sending a malic...Show more
The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution. Authenticated attackers can exploit this by opening an SSH connection and sending a malicious --split-string env request if the built-in SSH server is activated. Windows installations are unaffected.Show less
1Gogs
1Gogs
Jun 17, 2026
Feb 25, 2023
N/A· v4
9.8 CRITICAL· v3
N/A· v2
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11.
1Gogs
1Gogs
Jun 17, 2026
Oct 11, 2022
N/A· v4
9.0 CRITICAL· v3
N/A· v2
In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.
1Gogs
1Gogs
Jun 17, 2026
Jun 9, 2022
N/A· v4
5.4 MEDIUM· v3
3.5 LOW· v2
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...Show more
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.Show less
1Gogs
1Gogs
Jun 17, 2026
Jun 9, 2022
N/A· v4
8.1 HIGH· v3
5.5 MEDIUM· v2
Path Traversal in GitHub repository gogs/gogs prior to 0.12.9.
1Gogs
1Gogs
Jun 17, 2026
Jun 9, 2022
N/A· v4
9.1 CRITICAL· v3
6.4 MEDIUM· v2
Path Traversal in GitHub repository gogs/gogs prior to 0.12.9.
1Gogs
1Gogs
Jun 17, 2026
Jun 9, 2022
N/A· v4
9.8 CRITICAL· v3
7.5 HIGH· v2
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
1Gogs
1Gogs
Jun 17, 2026
Jun 2, 2022
N/A· v4
8.8 HIGH· v3
6.5 MEDIUM· v2
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....Show more
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).Show less
1Gogs
1Gogs
Jun 17, 2026
Jun 1, 2022
N/A· v4
6.5 MEDIUM· v3
4.3 MEDIUM· v2
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
1Gogs
1Gogs
Jun 17, 2026
May 5, 2022
N/A· v4
5.4 MEDIUM· v3
3.5 LOW· v2
Stored xss bug in GitHub repository gogs/gogs prior to 0.12.7. As the repo is public , any user can view the report and when open the attachment then xss is executed. This bug allow executed any javascript code in victim...Show more
Stored xss bug in GitHub repository gogs/gogs prior to 0.12.7. As the repo is public , any user can view the report and when open the attachment then xss is executed. This bug allow executed any javascript code in victim account .Show less
1Gogs
1Gogs
Jun 17, 2026
Mar 21, 2022
N/A· v4
8.8 HIGH· v3
6.5 MEDIUM· v2
Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.
1Gogs
1Gogs
Jun 17, 2026
Mar 11, 2022
N/A· v4
9.1 CRITICAL· v3
5.8 MEDIUM· v2
Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5.
1Gogs
1Gogs
Jun 17, 2026
Mar 11, 2022
N/A· v4
5.3 MEDIUM· v3
5.0 MEDIUM· v2
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.5.
1Gogs
1Gogs
Jun 17, 2026
Oct 16, 2020
N/A· v4
7.2 HIGH· v3
6.5 MEDIUM· v2
The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. There can be a privilege escalation if access to this hook feature is granted to a user who does not have administrative p...Show more
The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. There can be a privilege escalation if access to this hook feature is granted to a user who does not have administrative privileges. NOTE: because this is mentioned in the documentation but not in the UI, it could be considered a "Product UI does not Warn User of Unsafe Actions" issue.Show less
1Gogs
1Gogs
Jun 17, 2026
Jun 21, 2020
N/A· v4
6.5 MEDIUM· v3
4.0 MEDIUM· v2
In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a "not the owner of the email" check.