CVE-2026-52813
Received Received - Intake
Path Traversal in Gogs Leads to Remote Code Execution

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
gogs gogs to 0.14.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-23 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in Gogs, an open source self-hosted Git service, in versions prior to 0.14.3. It allows organization names containing path traversal sequences (../) to be accepted, which causes repositories to be stored or retrieved at arbitrary filesystem locations. By exploiting this, an attacker can create nested Git repositories that overwrite each other's hooks configuration, potentially leading to Remote Code Execution (RCE).

Impact Analysis

This vulnerability can have severe impacts including unauthorized access and control over the system running Gogs. Because it allows Remote Code Execution without any privileges or user interaction, an attacker can execute arbitrary code remotely, potentially compromising confidentiality, integrity, and availability of the system and data.

Mitigation Strategies

The vulnerability in Gogs is fixed in version 0.14.3. To mitigate this vulnerability, you should immediately upgrade your Gogs installation to version 0.14.3 or later.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52813. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart