CVE-2026-52797 Details
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.0, as an authorized user, an intruder can dictate the value which is passed to the git diff command which, together with bypassing the filtering of the passed value, allows the user to bypass the target directory and write the result of the comparison to any arbitrary path. This vulnerability is fixed in 0.14.0.
A path traversal vulnerability has been identified in Gogs, an open-source self-hosted Git service, affecting versions through 0.13.4. This vulnerability allows an authorized user to manipulate the value passed to the 'git diff' command. By bypassing the usual filtering of this value, the user can traverse directories and write the output of the diff comparison to any arbitrary location. This exploitation can overwrite critical files, such as the database or configuration files, leading to a denial-of-service condition.
Users should update to Gogs version 0.14.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2026CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-pm6v-2h4w-4rp2 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/gogs/gogs/security/advisories/GHSA-pm6v-2h4w-4rp2 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gogs | <= 0.13.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 24, 2026 | New CVE Received | [email protected] |
Volerion