Skip to main content
← All vulnerabilities
CVE-2026-52813GHSA-C39W-43GM-34H5GO-2026-5305

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.14.3
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • gogs gogs

    fixed in 0.14.3

  • gogs.io/gogsGo

    fixed in 0.14.3

  • gogs.io/gogsGo

    All versions

References 5

GitHub · gogs/gogs

GitHub · iqx6889/CVE-2026-52813-Gogs-RCE