Authorization bypass through user-controlled key in gogs - CVE-2026-52799

 

Authorization bypass through user-controlled key in gogs - CVE-2026-52799

Published: June 19, 2026


Vulnerability identifier: #VU134910
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-52799
CWE-ID: CWE-639
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 disclose sensitive information.

The vulnerability exists due to missing authorization in the attachment download endpoint when handling requests for attachment UUIDs. A remote attacker can send a request for a known attachment UUID to disclose sensitive information.

Unauthenticated exploitation requires REQUIRE_SIGNIN_VIEW to be set to false. If sign-in is required, a logged-in user without access to the target repository may still retrieve the attachment.


How to mitigate CVE-2026-52799

Install security update from vendor's website.

Sources