CVE-2026-52813: Gogs has Path Traversal in organization name that results in RCE through Git hooks
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).
References
Code Behaviors & Features
Detect and mitigate CVE-2026-52813 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →