CVE-2026-25921
published 2026-03-05CVE-2026-25921: Gogs is an open source self-hosted Git service. Prior to version 0.14.2, overwritable LFS object across different repos leads to supply-chain attack, all LFS…
PriorityP353critical9.3CVSS 3.1
AVNACLPRNUINSCCNIHAL
EPSS
0.33%
24.4th percentile
Gogs is an open source self-hosted Git service. Prior to version 0.14.2, overwritable LFS object across different repos leads to supply-chain attack, all LFS objects are vulnerable to be maliciously overwritten by malicious attackers. This issue has been patched in version 0.14.2.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gogs.io | gogs | >= 0 < 0.14.2 | 0.14.2 |
| gogs | gogs | < 0.14.2 | 0.14.2 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Gogs: Cross-repository LFS object overwrite via missing content hash verification in gogs.io/gogs
osv·2026-03-10
CVE-2026-25921 Gogs: Cross-repository LFS object overwrite via missing content hash verification in gogs.io/gogs
Gogs: Cross-repository LFS object overwrite via missing content hash verification in gogs.io/gogs
Gogs: Cross-repository LFS object overwrite via missing content hash verification in gogs.io/gogs.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: gogs.io/gogs before v0.14.2.
GHSA
Gogs: Cross-repository LFS object overwrite via missing content hash verification
ghsa·2026-03-05
CVE-2026-25921 [CRITICAL] CWE-345 Gogs: Cross-repository LFS object overwrite via missing content hash verification
Gogs: Cross-repository LFS object overwrite via missing content hash verification
### Summary
Overwritable LFS object across different repos leads to supply-chain attack, all LFS objects are vulnerable to be maliciously overwritten by malicious attackers.
### Details
Gogs store all LFS objects in the same place, no isolation between different repositories. (repo id not concatenated to storage path) https://github.com/gogs/gogs/blob/7a2dffa95ac64f31c8322cb50d32694b05610144/internal/lfsutil/storage.go#L52-L58
Gogs does not verify uploaded LFS file content against its claimed SHA-256, meaning attackers can manipulate the uploaded file like injecting backdoor. https://github.com/gogs/gogs/blob/7a2dffa95ac64f31c8322cb50d32694b05610144/internal/lfsutil/storage.go#L79-L89
Here's the comment t
OSV
Gogs: Cross-repository LFS object overwrite via missing content hash verification
osv·2026-03-05
CVE-2026-25921 [CRITICAL] Gogs: Cross-repository LFS object overwrite via missing content hash verification
Gogs: Cross-repository LFS object overwrite via missing content hash verification
### Summary
Overwritable LFS object across different repos leads to supply-chain attack, all LFS objects are vulnerable to be maliciously overwritten by malicious attackers.
### Details
Gogs store all LFS objects in the same place, no isolation between different repositories. (repo id not concatenated to storage path) https://github.com/gogs/gogs/blob/7a2dffa95ac64f31c8322cb50d32694b05610144/internal/lfsutil/storage.go#L52-L58
Gogs does not verify uploaded LFS file content against its claimed SHA-256, meaning attackers can manipulate the uploaded file like injecting backdoor. https://github.com/gogs/gogs/blob/7a2dffa95ac64f31c8322cb50d32694b05610144/internal/lfsutil/storage.go#L79-L89
Here's the comment t
No detection rules found.
No public exploits indexed.
2026-03-05
Published