Path traversal in gogs - CVE-2022-1992
Published: June 8, 2022 / Updated: April 27, 2026
gogs
gogs.io
Description
The vulnerability allows a remote user to delete and upload arbitrary files.
The vulnerability exists due to path traversal in the file editor when handling repository uploads on Windows. A remote user can supply a crafted pathname to delete and upload arbitrary files.
Only Windows installations with repository upload enabled are vulnerable.