CVE-2026-52810 Gogs: Write to readonly repositories using receive-pack + service=git-upload-pack confusion

High 7.1 Published Updated

Attackers can push to read-only repositories by exploiting a mismatch between Git smart HTTP authorization and routing logic in Gogs.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-52810?

CVE-2026-52810 is a high-severity authentication bypass vulnerability in gogs, published on 24 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Gogs is an open source self-hosted Git service. Prior to 0.14.3, Git smart HTTP authorizes POST …/git-receive-pack using the client-supplied service query string (so ?service=git-upload-pack is evaluated as read access) while routing still runs git receive-pack, allowing push where only read should be allowed. This vulnerability is fixed in 0.14.3.

Weakness: CWE-284

Which versions are affected by CVE-2026-52810?

3 open source packages ship an affected version, including gogs.io/gogs.

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

How do I fix CVE-2026-52810?

Upgrade gogs.io/gogs to 0.14.3 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-52810 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-wmfg-5p4h-5fw3, GO-2026-5712.

Is CVE-2026-52810 in your software?

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

Check your SBOMs for free