Input validation error in gogs - CVE-2024-39932
Published: December 23, 2024 / Updated: April 27, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to write to arbitrary files on the filesystem.
The vulnerability exists due to improper input validation in the changes preview feature when processing unintended Git options for diff preview. A remote user can supply crafted arguments to write to arbitrary files on the filesystem.
Exploitation can force a re-installation of the instance and allow access to and modification of other users' hosted code on the same instance.