CVE-2026-52797CWE-22

Gogs: Overwriting critical files results in a denial of service

High · published June 24, 2026

CVSS v3.1
8.5
EPSS
1%
Percentile
44.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.00530 · 44.0th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-06-24T20:35Z
EPSS history
Timeline
  • 24 JUN 20:35Z
    Gogs: Overwriting critical files results in a denial of service
    cvelistv5