Skip to content

Gogs has Path Traversal in organization name that results in RCE through Git hooks Home on GitLab Advisory Database (GLAD) / 8h 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

advisories.gitlab.com • June 24, 2026

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).

Extracted Entities

Attack Types (1)

Companies (1)

CWE Weaknesses (1)

Platforms (1)