Skip to content
CVE-2026-52813 - Exploits & Severity

CVE-2026-52813 - Exploits & Severity

Feedly June 24, 2026

Summary 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). Details During organization creation, internal/database/org.go calls os.MkdirAll(repox.UserPath(org.Name)) without sanitizing org.Name . Repository creation uses this name to decide where to write the Git bare repository's ( org/name.git ). By setting the org name to ../../../../tmp/test , and creating a repository under that organization, it gets written under /tmp/test on the server. An attacker can abuse this in a clever way by writing to the /data/gogs/data/tmp/local-r/1 directory, being a local worktree of the git repositories inside of Gogs. These directories are editable by Git. By creating a reposi...

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

GitHub Advisories released a security advisory .

Feedly found the first article mentioning CVE-2026-52813 . See article

Bulletin ID: GHSA-c39w-43gm-34h5

Gogs has Path Traversal in organization name that results in RCE through Git hooks

gogs.io/gogs (fixed: 0.14.3) (Go) — Gogs has Path Traversal in organization name that results in RCE through Git hooks

Bulletin ID: GHSA-c39w-43gm-34h5

Collect, analyze, and vulnerability reports faster using AI

Extracted Entities

Attack Types (1)

Companies (1)

CWE Weaknesses (1)

MITRE ATT&CK (1)

Tools (1)