Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Gogs versions before 0.12.8 are vulnerable to OS command injection. An authenticated user who can upload files to a repository can update a crafted config file in the repository's .git directory, which can be used to gain SSH access to the server. Installations with repository upload enabled, the default, are affected. Upgrade to Gogs 0.12.8 or later; the source lists no workaround.
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
No source has published a CVSS score for this record yet.
- CISA KEV Not listed.
- EPSS 0.022, the 82nd percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 15:05 UTC First seen by agentprime
- 31 Oct 2026, 15:05 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-56j7-2pm8-rgmx
- OSV: GHSA-56j7-2pm8-rgmx
- github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmx
- nvd.nist.gov/vuln/detail/CVE-2021-32546
- github.com/gogs/gogs/issues/6555
- github.com/gogs/gogs/pull/6986
- github.com/gogs/gogs
- github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129
- github.com/gogs/gogs/releases
- github.com/gogs/gogs/releases/tag/v0.12.8