Advisory record · GHSA-pm6v-2h4w-4rp2

Gogs: Overwriting critical files results in a denial of service

CVSS 8.5 HighEPSS 0.0053 · 45th percentile

Published by the GitHub Advisory Database at 16 Jun 2026, 23:40 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gogs.io/gogsGo<0.14.00.14.0
Identifiers
GHSA-pm6v-2h4w-4rp2 · CVE-2026-52797 · GO-2026-5545
Weakness (CWE)
CWE-22
Published
16 Jun 2026
Updated
21 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Gogs versions before 0.14.0 are affected. An authorized user can craft a file path in the editor's preview feature that causes git diff to write its output to an arbitrary file on the server, which can overwrite files such as the database or configuration and lead to denial of service. Upgrade to Gogs 0.14.0 or later. The source lists no other workaround.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0053, the 45th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:05 UTC First seen by agentprime
  2. 31 Oct 2026, 15:05 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.