CVE-2026-52813

published 24 Jun 2026 · updated 26 Jun 2026

Gogs: Path Traversal in organization name results in RCE through Git hooks

10.0CriticalCVSS 10.0EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GogsGogs<0.14.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gogs, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-52813 severity on Zeptric[![CVE-2026-52813](https://zeptric.io/badge/cve/CVE-2026-52813.svg)](https://zeptric.io/cve/CVE-2026-52813)