Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2026-52813 EUVD-2026-39084GHSA-c39w-43gm-34h5GO-2026-5305

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

Published Jun 24, 2026 · Updated Jun 26, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
gogs gogs < 0.14.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • iqx6889/CVE-2026-52813-Gogs-RCE ★ 1 · Jul 21, 2026

    CVE-2026-52813 (Gogs Path Traversal → Git Hooks RCE) defensive writeup: root-cause & patch analysis, Sigma/SIEM detection rules, IOCs, non-intrusive version scanner. No weaponized PoC.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go gogs.io/gogs < 0.14.3 0.14.3 GHSA-c39w-43gm-34h5
Go gogs.io/gogs all versions — GO-2026-5305

Advisories 2

References