Vulnerability advisory
CVE-2026-52797
Gogs: Overwriting critical files results in a denial of service
Also known as GHSA-pm6v-2h4w-4rp2GO-2026-5545
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 36c26c4ccc3ca0339db53eb1fa41e4e86b55163d | 36c26c4ccc3ca0339db53eb1fa41e4e86b55163d |
Also listed as affected (53)
| |
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.