CVE-2022-1285 Server-Side Request Forgery (SSRF) in gogs/gogs

High 8.3 Published Updated

An attacker can exploit a Server-Side Request Forgery vulnerability in Gogs to access internal resources or bypass security controls.

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-1285?

CVE-2022-1285 is a high-severity server-side request forgery vulnerability in gogs/gogs, published on 1 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.

Weakness: CWE-918

Which versions are affected by CVE-2022-1285?

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

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

Products include Gogs Gogs.

How do I fix CVE-2022-1285?

Upgrade gogs.io/gogs to 0.12.8 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2022-1285 being exploited?

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

Sources

Also known as CLEANSTART-2024-ZP46163, GHSA-w689-557m-2cvq, GO-2022-0583.

Is CVE-2022-1285 in your software?

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

Check your SBOMs for free