Vulnerabilities · 2024 · Gogs
CVE-2024-54148
Gogs vulnerability
Gogs is an open source self-hosted Git service. A malicious user is able to commit and edit a crafted symlink file to a repository to gain SSH access to the server. The vulnerability is fixed in 0.13.1.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Gogs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gogs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx · Exploit
- github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a · Patch
- github.com/gogs/gogs/pull/7857 · Patch
- github.com/gogs/gogs/issues/7582
- nvd.nist.gov/vuln/detail/CVE-2024-54148
- github.com/advisories/GHSA-r7j8-5h9c-f6fx
- nvd.nist.gov/vuln/detail/CVE-2024-54148
- cve.org/CVERecord?id=CVE-2024-54148
More vulnerabilities in Gogs products
CVE-2026-26276CVE-2026-26196CVE-2025-8110CVE-2024-56731CVE-2024-55947CVE-2024-44625CVE-2024-39933CVE-2024-39932All 35
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.