CVE-2026-25921 Gogs: Cross-repository LFS object overwrite via missing content hash verification

Critical 9.3 Published Updated

Attackers can overwrite LFS objects across repositories due to missing hash verification, enabling supply-chain attacks in Gogs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-25921?

CVE-2026-25921 is a critical vulnerability in gogs, published on 5 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-345

Which versions are affected by CVE-2026-25921?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoAll versionsNone
gogs.io/gogs GoAll versions0.14.2
gogs.io/gogs GoAll versions0.14.2

Products include Gogs Gogs.

How do I fix CVE-2026-25921?

Upgrade gogs.io/gogs to 0.14.2 or later.

Is CVE-2026-25921 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25921 exists.

Sources

Also known as GHSA-cj4v-437j-jq4c, GO-2026-4616.

Is CVE-2026-25921 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free