CVE-2026-52812
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, Git LFS storage is content-addressed by OID alone (<LFS-root>/<oid[0]>/<oid[1]>/<oid>) but per-repo authorization lives in the lfs_object table keyed (repo_id, oid). serveUpload skips re-uploading when the OID file already exists on disk and inserts a new (repo_id, oid) row pointing at it without verifying the request body hashes to the OID being claimed. Any user with write access to one repo can bind their repo to an OID owned by a private repo and download the original bytes via their own download endpoint. This vulnerability is fixed in 0.14.3.
Description as published by the source, in English.
Key facts
- Published
- 2026-06-24
- Last modified
- 2026-06-26
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.2 %
higher than 12 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| gogs.io | gogs (Go) | < 0.14.3 | Affected |
Weakness type
-
CWE-345: Insufficient Verification of Data Authenticity
The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.
-
CWE-639: Authorization Bypass Through User-Controlled Key
The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
-
CWE-862: Missing Authorization
The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1211: Exploitation for Stealth
- T1491: Defacement
- T1542.002: Component Firmware
- T1556: Modify Authentication Process
- T1557.002: ARP Cache Poisoning
- T1584.002: DNS Server
References
- https://github.com/gogs/gogs/commit/f35a767af74e05342bafc6fdda02c791816426f8
- https://github.com/gogs/gogs/pull/8333
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- https://github.com/gogs/gogs/security/advisories/GHSA-6p9m-q3jp-47h4
- https://github.com/gogs/gogs/security/advisories/GHSA-6p9m-q3jp-47h4
Related at Berigo
Articles
-
CISA reports active exploitation of a Gogs vulnerability
Same product
2026-01-10
CVE-2025-8110 in the self-hosted Git service Gogs is under active exploitation. All versions up to 0.13.3 are affected, with no patch available at th…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.