CVE-2022-0415 Remote Command Execution in uploading repository file in gogs/gogs

Critical 9.9 Published Updated

Attackers can execute remote commands by uploading malicious files to the Gogs Git server repository.

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-2022-0415?

CVE-2022-0415 is a critical vulnerability in gogs/gogs, published on 21 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.

Weakness: CWE-434, CWE-20

Which versions are affected by CVE-2022-0415?

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

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

Products include Gogs Gogs.

How do I fix CVE-2022-0415?

Upgrade gogs.io/gogs to 0.12.6 or later.

Is CVE-2022-0415 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-5gjh-5j4f-cpwv, GO-2022-0554, UBUNTU-CVE-2022-0415.

Is CVE-2022-0415 in your software?

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

Check your SBOMs for free