Improper access control in gogs - CVE-2026-25242
Published: April 27, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote attacker to upload arbitrary files to the server.
The vulnerability exists due to improper access control in /issues/attachments and /releases/attachments endpoints when handling attachment upload requests with RequireSigninView disabled. A remote attacker can send a specially crafted upload request to upload arbitrary files to the server.
CSRF protection does not prevent exploitation because a valid token can be obtained anonymously from the site.