Input validation error in gogs - CVE-2024-54148
Published: December 23, 2024 / Updated: April 27, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code on the server.
The vulnerability exists due to improper input validation in the repository web editor when editing a crafted symlink file while changing the file name. A remote user can commit and edit a crafted symlink file to execute arbitrary code on the server.
Exploitation requires access to a repository through the web-based file editing workflow.