All vulnerabilities

Servers and applications

GHSA-p92p-7887-3g33

gogs/gogs: Attachment UUID rebinding downloads private-repo attachments (incomplete fix of CVE-2026-52799 / GHSA-p9f5)

Severity
Medium 5.9
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Weakness
Authorization bypass through a user-controlled key (IDOR) (CWE-639)Missing authorization (CWE-862)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
Sources
Project advisories (GitHub)

Description

CVE-2026-52799 (GHSA-p9f5-h3rx-j5qw / GO-2026-5536, "Missing Authorization in Attachment Download", CVSS 7.5 High) was announced as fixed in v0.14.3. The official patch (commit d3ca23f9f33d5710472a775d6dcd3a7bb128bb05, PR #8320) added an authorization check to a single location: the download handler (GET /attachments/:uuid in cmd/gogs/internal/web/web.go). However, the write paths that bind an attachment to an issue/comment/release were left untouched. As a result, an authenticated registered user who knows the UUID of a victim's private attachment can simply bind that UUID to an issue in their own repository, which rebinds the attachment's owning repository to the attacker's repository, bypasses the patched download check, and downloads the original file. The rebinding simultaneously removes the attachment from the victim's issue (integrity impact). In short, this is an incomplete fix (residual vulnerability) of CVE-2026-52799.

From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.3

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,097,312Docker Hub, 22 Nov 2026
GitHub stars
47,981GitHub, 22 Nov 2026
Forks
5,081GitHub, 22 Nov 2026
Latest release
v0.14.4GitHub, 22 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References