CVE-2026-52797

published 24 Jun 2026 · updated 25 Jun 2026

Gogs: Overwriting critical files results in a denial of service

8.5HighCVSS 8.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GogsGogs<0.14.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gogs, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-52797 severity on Zeptric[![CVE-2026-52797](https://zeptric.io/badge/cve/CVE-2026-52797.svg)](https://zeptric.io/cve/CVE-2026-52797)