Vulnerabilities
49 CVEs · NVD, GitHub Advisories, CISA KEV, FIRST EPSS, GitHub PoC repos
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-25921 | Gogs is an open source self-hosted Git service. Gogs is an open source self-hosted Git service. Prior to version 0.14.2, overwritable LFS object across different repos leads to supply-chain attack, all LFS objects are vulnerable to be maliciously overwritten by malicious attackers. This issue has been patched in version 0.14.2. NVD description · AI analysis pending | 9.3 group max | <1% | PoC |
| — | |
| CVE-2026-25232 | Gogs is an open source self-hosted Git service. Gogs is an open source self-hosted Git service. Versions 0.13.4 and below have an access control bypass vulnerability which allows any repository collaborator with Write permissions to delete protected branches (including the default branch) by sending a direct POST request, completely bypassing the branch protection mechanism. This vulnerability in the DeleteBranchPost function eenables privilege escalation from Write to Admin level, allowing low-privilege users to perform dangerous operations that should be restricted to administrators only. Although Git Hook layer correctly prevents protected branch deletion via SSH push, the web interface deletion operation does not trigger Git Hooks, resulting in complete bypass of protection mechanisms. In oder to exploit this vulnerability, attackers must have write permissions to the target repository, protected branches configured to the target repository and access to the Gogs web interface. This issue has been fixed in version 0.14.1. NVD description · AI analysis pending | 7.1 group max | <1% | PoC |
| — | |
| CVE-2025-64111 | Gogs is an open source self-hosted Git service. Gogs 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. NVD description · AI analysis pending | 9.3 group max | 1% | PoC |
| — | |
| CVE-2025-8110 | Actively Exploited Path Traversal RCE in Gogs (PutContents API) CVE-2025-8110 is a path-traversal flaw (CWE-22) caused by improper symbolic-link handling in the PutContents API of the self-hosted Git service Gogs. An attacker with low-privileged access to the API can abuse symlinks so that file operations escape the intended directory, resulting in code execution on the server hosting Gogs. Because the attack works over the network with only low privileges and no user interaction, any Gogs deployment whose API is reachable — particularly internet-facing instances — is exposed. This is a zero-day: CISA added it to the Known Exploited Vulnerabilities catalog on 2026-01-12 after reports of active attacks against 700+ instances, and at the time of the KEV listing no official patch was available, though a fix was in progress in Gogs pull request #8078. EPSS assigns an 82.5% probability of exploitation within 30 days (100th percentile), and CISA's required action is to apply vendor mitigations, follow BOD 22-01 guidance for cloud services, or discontinue use if mitigations are unavailable. Do: Because no official patch was released at the time of the KEV listing, track gogs/gogs PR #8078 and upgrade to the fixed release as soon as it ships; in the interim, follow CISA's required action by applying vendor mitigations or restricting or discontinuing internet exposure of Gogs instances. Reduce attack surface by limiting low-privileged account access to the PutContents/write APIs and firewalling Gogs servers, and hunt for indicators of compromise on any internet-facing Gogs deployment given confirmed attacks against 700+ instances. | 8.7 | 82% | KEV PoC ×3 |
| moderate≈700+ instances confirmed exploited; the broader population of internet-exposed Gogs deployments is likely in the thousands to tens of thousands (estimate) | |
| CVE-2024-56731 | Gogs is an open source self-hosted Git service. Gogs is an open source self-hosted Git service. Prior to version 0.13.3, it's still possible to delete files under the .git directory and achieve remote command execution due to an insufficient patch for CVE-2024-39931. Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUN_USER in the configuration. Allowing attackers to access and alter any users' code hosted on the same instance. This issue has been patched in version 0.13.3. NVD description · AI analysis pending | 9.8 | <1% |
| — | ||
| CVE-2024-55947 +1 in the same advisory: …54148 | Path Traversal File Write in Gogs Enables SSH Access (Actively Exploited) CVE-2024-55947 is a path traversal flaw (CWE-22) in Gogs, an open source self-hosted Git service, that allows a malicious user to write a file to an arbitrary path on the server. It requires only low privileges, so any authenticated Gogs user can trigger it over the network without user interaction, and by planting a file in a sensitive location — such as the service account's SSH authorized_keys — the attacker gains SSH access to the host, effectively compromising the server (high confidentiality, integrity, and availability impact per CVSS). All Gogs deployments running versions prior to 0.13.1 are affected. Exploitation is no longer theoretical: recent reporting describes active attacks hitting 700+ instances, and CISA has flagged the flaw as actively exploited, adding it to its Known Exploited Vulnerabilities catalog. EPSS assigns a 75.2% probability of exploitation within 30 days (99th percentile), underscoring elevated risk for exposed instances. Do: Upgrade all Gogs instances to 0.13.1 or later, which fixes this flaw, and treat the upgrade as urgent given active exploitation and the KEV listing. Check your deployed version, audit the host for rogue SSH keys and unexpected file writes (especially the git service account's authorized_keys), and review account activity and logs for signs of compromise. Until patched, limit network exposure of the Gogs service and the server's SSH port, and restrict account creation to trusted users. | 8.7 | 75% | PoC |
| moderateseveral thousand internet-exposed Gogs instances, with 700+ confirmed exploited in the current campaign | |
| CVE-2022-1884 +1 in the same advisory: …44625 | A remote command execution vulnerability exists in gogs/gogs versions <=0.12.7 when deployed on a Windows server. 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. NVD description · AI analysis pending | 9.8 group max | 2% | PoC |
| — | |
| CVE-2024-39931 | Gogs through 0.13.0 allows deletion of internal files. Gogs through 0.13.0 allows deletion of internal files. NVD description · AI analysis pending | 9.9 group max | 53% |
| — | ||
| CVE-2022-2024 | OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11. OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11. NVD description · AI analysis pending | 9.8 | 98% | PoC |
| — | |
| CVE-2022-32174 | In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover. In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover. NVD description · AI analysis pending | 9.0 | 58% | PoC ×2 |
| — | |
| CVE-2022-1986 | OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9. OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9. NVD description · AI analysis pending | 9.8 group max | 4% | PoC |
| — | |
| CVE-2021-32546 | Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. 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). NVD description · AI analysis pending | 8.8 | 2% |
| — | ||
| CVE-2022-1285 | Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8. Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8. NVD description · AI analysis pending | 6.5 | 1% | PoC |
| — | |
| CVE-2022-1464 | Stored xss bug in GitHub repository gogs/gogs prior to 0.12.7. 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 . NVD description · AI analysis pending | 5.4 | <1% | PoC |
| — | |
| CVE-2022-0415 | Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6. Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6. NVD description · AI analysis pending | 8.8 | 65% | PoC |
| — | |
| CVE-2022-0871 +1 in the same advisory: …0870 | Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5. Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5. NVD description · AI analysis pending | 9.1 group max | 1% | PoC |
| — | |
| CVE-2020-15867 | The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. 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. NVD description · AI analysis pending | 7.2 | 87% | PoC ×2 |
| — | |
| CVE-2020-14958 | In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a "not the owner of the email" check. In Gogs 0.11.91, MakeEmailPrimary in models/user_mail.go lacks a "not the owner of the email" check. NVD description · AI analysis pending | 6.5 | <1% |
| — | ||
| CVE-2020-9329 | Gogs through 0.11.91 allows attackers to violate the admin-specified repo-creation policy due to an internal/db/repo.go race condition. Gogs through 0.11.91 allows attackers to violate the admin-specified repo-creation policy due to an internal/db/repo.go race condition. NVD description · AI analysis pending | 5.9 | <1% | PoC |
| — | |
| CVE-2019-14544 | routes/api/v1/api.go in Gogs 0.11.86 lacks permission checks for routes: routes/api/v1/api.go in Gogs 0.11.86 lacks permission checks for routes: deploy keys, collaborators, and hooks. NVD description · AI analysis pending | 9.8 | 2% |
| — | ||
| CVE-2018-20303 | In pkg/tool/path.go in Gogs before 0.11.82.1218, a directory traversal in the file-upload functionality can allow an attacker to create a file under data/sessio In pkg/tool/path.go in Gogs before 0.11.82.1218, a directory traversal in the file-upload functionality can allow an attacker to create a file under data/sessions on the server, a similar issue to CVE-2018-18925. NVD description · AI analysis pending | 7.5 | 3% | PoC |
| — | |
| CVE-2018-18925 | Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron. NVD description · AI analysis pending | 9.8 | 31% |
| — | ||
| CVE-2018-17031 | In Gogs 0.11.53, an attacker can use a crafted .eml file to trigger MIME type sniffing, which leads to XSS, as demonstrated by Internet Explorer, because an "X- In Gogs 0.11.53, an attacker can use a crafted .eml file to trigger MIME type sniffing, which leads to XSS, as demonstrated by Internet Explorer, because an "X-Content-Type-Options: nosniff" header is not sent. NVD description · AI analysis pending | 6.1 | <1% | PoC |
| — | |
| CVE-2018-16409 | In Gogs 0.11.53, an attacker can use migrate to send arbitrary HTTP GET requests, leading to SSRF. In Gogs 0.11.53, an attacker can use migrate to send arbitrary HTTP GET requests, leading to SSRF. NVD description · AI analysis pending | 8.6 | 1% |
| — | ||
| CVE-2018-15193 +1 in the same advisory: …15178 | A CSRF vulnerability in the admin panel in Gogs through 0.11.53 allows remote attackers to execute admin operations via a crafted issue / link. A CSRF vulnerability in the admin panel in Gogs through 0.11.53 allows remote attackers to execute admin operations via a crafted issue / link. NVD description · AI analysis pending | 8.8 group max | <1% | PoC |
| — | |
| CVE-2018-15192 | An SSRF vulnerability in webhooks in Gitea through 1.5.0-rc2 and Gogs through 0.11.53 allows remote attackers to access intranet services. An SSRF vulnerability in webhooks in Gitea through 1.5.0-rc2 and Gogs through 0.11.53 allows remote attackers to access intranet services. NVD description · AI analysis pending | 8.6 | 2% |
| — |