CVE-2026-52797 Gogs: Overwriting critical files results in a denial of service
HighCVSS 8.5
EPSS 0.53%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gogs.io/gogs(Go) | < 0.14.0; <= 0.13.4; All versions | 0.14.0 | Partially fixed |
| gogs | = < 0.14.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs | = < 0.14.0 | No fix listed |
| gogs.io/gogs(Go) | < 0.14.0 | 0.14.0 |
| gogs.io/gogs(Go) | All versions | No fix listed |
| gogs.io/gogs(Go) | <= 0.13.4 | No fix listed |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-pm6v-2h4w-4rp2 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com