Servers and applications
CVE-2021-32546
Remote Command Execution in file editing
- Severity
- High 8.8
- Published
- 31 May 2022
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 0.12.8
- Also known as
- GHSA-56j7-2pm8-rgmx
- Sources
- NVD, Project advisories (GitHub)
Description
Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote Command Execution, because that configuration can contain an option such as sshCommand, which is executed when a master branch is a remote branch (using an…
Affected software
| Software | Affected versions |
|---|---|
GogsServers and applications · cpe:a:gogs:gogs |
|
GogsServers and applications · github:gogs/gogs |
|
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2021-32546
- CVE.org https://www.cve.org/CVERecord?id=CVE-2021-32546
- GitHub Advisory Database https://github.com/advisories/GHSA-56j7-2pm8-rgmx
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmx