Advisory record · GHSA-c39w-43gm-34h5

Gogs has Path Traversal in organization name that results in RCE through Git hooks

CVSS 10.0 CriticalCriticalEPSS 0.011 · 66th percentile

Critical, because:

  • CVSS score 10.0: 9.0 or more.

How we decide what’s critical

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

PackageEcosystemAffectedFixed in
gogs.io/gogsGo<0.14.30.14.3
Identifiers
GHSA-c39w-43gm-34h5 · CVE-2026-52813 · GO-2026-5305
Weakness (CWE)
CWE-23
Published
23 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.3 accept organization names containing path traversal sequences, so repositories created under such an organization are written to arbitrary locations on the server's filesystem. An authenticated user who can create organizations, which is the default setting for self-registered users, can abuse this to overwrite a repository's hooks configuration and achieve remote code execution as the git user. Upgrade to Gogs 0.14.3 or later. The source gives no 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
10.0 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.011, the 66th 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.