CVE-2026-52799 Gogs: Missing Authorization in Attachment Download

High 7.5 Published Updated

Unauthenticated users can download attachments from private repositories if sign-in view is disabled, exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-52799?

CVE-2026-52799 is a high-severity missing authorization vulnerability in gogs, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gogs is an open source self-hosted Git service. Prior to 0.14.3, GET /attachments/:uuid returns the raw attachment file without verifying whether the requester has view permission for the associated Issue/Comment/Release or the repository. In a test environment with REQUIRE_SIGNIN_VIEW = false, we confirmed that an unauthenticated user can download attachments belonging to a private repository. This vulnerability is fixed in 0.14.3.

Weakness: CWE-862, CWE-639

Which versions are affected by CVE-2026-52799?

3 open source packages ship an affected version, including gogs.io/gogs.

PackageAffectedFixed in
gogs.io/gogs GoAll versionsNone
gogs.io/gogs GoAll versions0.14.3
gogs.io/gogs GoAll versions0.14.3

How do I fix CVE-2026-52799?

Upgrade gogs.io/gogs to 0.14.3 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-52799 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52799 exists.

Sources

Also known as GHSA-p9f5-h3rx-j5qw, GO-2026-5536.

Is CVE-2026-52799 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free