OS Command Injection in gogs - CVE-2021-32546
Published: May 31, 2022 / Updated: April 27, 2026
gogs
gogs.io
Description
The vulnerability allows a remote user to execute arbitrary commands on the server.
The vulnerability exists due to command injection in repository file editing when updating a crafted config file into the repository's .git directory. A remote user can upload or update a specially crafted file to execute arbitrary commands on the server.
Only installations with repository upload enabled are vulnerable.