Skip to content

CVE-2026-52813 Gogs: Path Traversal in organization name results in RCE through Git hooks

CriticalCVSS 10.0 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 0 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
gogs.io/gogs(Go) < 0.14.3; All versions 0.14.3 Partially fixed
gogs = < 0.14.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
gogs = < 0.14.3 No fix listed
gogs.io/gogs(Go) < 0.14.3 0.14.3
gogs.io/gogs(Go) All versions No fix listed

References