CVE-2026-52799: Gogs missing authorization in attachment download endpoint

CVE-2026-52799 · Severity: high · CVSS 7.5 · Published 2026-06-24

Gogs, a self-hosted Git service, contains a security flaw that allows unauthorized users to download private file attachments. By knowing or guessing a specific file identifier, an attacker can bypass security restrictions to access sensitive documents, credentials, or source code stored in private repositories. This could lead to the exposure of proprietary information or internal company data.

Technologies: gogs.io/gogs (Go), Gogs. Vendors: Go, Gogs.

Quick answers

Is CVE-2026-52799 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-52799 being exploited in the wild.
How severe is CVE-2026-52799?
High severity, with a CVSS score of 7.5, published 24 June 2026.
Which products and versions are affected?
gogs.io/gogs (Go) <= 0.14.2, SEMVER:introduced=0, SEMVER:introduced=0,fixed=0.14.3; Gogs < 0.14.3, <= 0.14.2.
Is there a fix for CVE-2026-52799?
Yes. gogs.io/gogs (Go): upgrade to 0.14.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-52799 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-52799?
Check whether you run gogs.io/gogs (Go) or Gogs at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • gogs.io/gogs (Go): upgrade to 0.14.3 or later
    go get gogs.io/gogs@v0.14.3

Technical details

A missing authorization vulnerability exists in the Gogs attachment download endpoint (`/attachments/:uuid`). The application retrieves attachment records solely by their UUID and serves the file without verifying if the requester has permissions for the parent repository, issue, or release. While unauthenticated access is most direct when `REQUIRE_SIGNIN_VIEW` is disabled, the flaw also allows any authenticated user to access attachments in repositories they are not authorized to view. Attackers can exploit this by discovering or brute-forcing attachment UUIDs to exfiltrate sensitive data. The issue is resolved in version 0.14.3.

Affected products

  • Gogs Gogs < 0.14.3

Identifiers

  • CVE-2026-52799
  • GHSA-p9f5-h3rx-j5qw
  • GO-2026-5536

Timeline

  • 2026-06-07: patched: Version 0.14.3 released
  • 2026-06-19: advisory: GitHub Security Advisory published
  • 2026-06-24: disclosed: CVE-2026-52799 published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.