CVE-2022-0871 Missing Authorization in gogs/gogs

High 8.2 Published Updated

Attackers can access or modify repository data without proper authorization checks in the Gogs Git hosting service.

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

What is CVE-2022-0871?

CVE-2022-0871 is a high-severity missing authorization vulnerability in gogs/gogs, published on 11 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5.

Weakness: CWE-862

Which versions are affected by CVE-2022-0871?

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

PackageAffectedFixed in
gogs.io/gogs GoAll versions0.12.5
gogs.io/gogs GoAll versions0.12.5
gogs.io/gogs GoAll versions0.12.5

Products include Gogs Gogs.

How do I fix CVE-2022-0871?

Upgrade gogs.io/gogs to 0.12.5 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-0871 being exploited?

There is no known exploitation of CVE-2022-0871 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2024-BZ87721, GHSA-gw5h-h6hj-f56g, GO-2022-0369.

Is CVE-2022-0871 in your software?

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

Check your SBOMs for free