PT-2026-51630 · Gogs · Gogs

CVE-2026-52812

·

Published

2026-06-23

·

Updated

2026-07-30

CVSS v4.0

7.1

High

VectorAV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Gogs versions prior to 0.14.3
Description Git LFS storage is content-addressed by OID (Object Identifier) alone, while per-repository authorization is managed in the lfs object table. The serveUpload function skips the re-upload process when an OID file already exists on disk and inserts a new (repo id, oid) row without verifying that the request body hashes to the claimed OID. This occurs because the dedupe shortcut in the Upload function returns success without performing a hash check.
Consequently, any user with write access to one repository can bind their repository to an OID owned by a private repository. This allows the attacker to download the original bytes of the private file via their own download endpoint. This issue leads to cross-tenant disclosure of any LFS object on the instance, which may include sensitive data such as certificates, keys, or PII.
Recommendations Update to version 0.14.3. As a temporary workaround, restrict write access to repositories for untrusted users to minimize the risk of unauthorized OID binding.

Exploit

Fix

Insufficient Verification of Data Authenticity

Missing Authorization

IDOR

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-52812
GHSA-6P9M-Q3JP-47H4
GO-2026-5184
OPENSUSE-SU-2026:21483-1

Affected Products

Gogs