Input validation error in gogs - CVE-2024-39931
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 internal file deletion handling when deleting .git files. A remote user can delete specially crafted internal files to execute arbitrary commands and access and alter other users' code.
Code execution occurs with the privileges of the account specified by RUN_USER in the configuration.