Input validation error in gogs - CVE-2024-39930
Published: December 23, 2024 / Updated: April 27, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary commands and access and alter other users' code.
The vulnerability exists due to improper input validation in the built-in SSH server when processing the env command. A remote user can send a specially crafted command to execute arbitrary commands and access and alter other users' code.
Exploitation requires the built-in SSH server to be enabled and the user account to have at least one SSH key.