CVE-2026-52813
Gogs is an open source self-hosted Git service. Prior to 0.14.3, …
Gogs is an open source self-hosted Git service. Prior to 0.14.3, organization names containing path traversal sequences (../) are accepted by Gogs, and repositories under them are written to paths following these path traversals. This allows storing/retrieving data for repositories at arbitrary locations on the filesystem. By creating nested structure of Git repositories, one can overwrite the other's hooks configuration to result in Remote Code Execution (RCE). This vulnerability is fixed in 0.14.3.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software 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-c39w-43gm-34h5
- github.com/gogs/gogs/pull/8334
- github.com/gogs/gogs/commit/f6acd467305943aae8403cbac81f0118dd1235d7
- github.com/gogs/gogs/releases/tag/v0.14.3
- github.com/advisories/GHSA-c39w-43gm-34h5
- nvd.nist.gov/vuln/detail/CVE-2026-52813
- nvd.nist.gov/vuln/detail/CVE-2026-52813
- cve.org/CVERecord?id=CVE-2026-52813
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.