Improper access control in gogs - CVE-2026-25242

 

Improper access control in gogs - CVE-2026-25242

Published: April 27, 2026


Vulnerability identifier: #VU128092
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-25242
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
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.


How to mitigate CVE-2026-25242

Install security update from vendor's website.

Sources