CVE-2022-0415 Remote Command Execution in uploading repository file in gogs/gogs
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.
Which versions are affected by CVE-2022-0415?
3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gogs.io/gogs Go | All versions | 0.12.6 |
gogs.io/gogs Go | All versions | 0.12.6 |
gogs.io/gogs Go | All versions | 0.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.
Other vulnerabilities in gogs/gogs
Sources
Also known as GHSA-5gjh-5j4f-cpwv, GO-2022-0554, UBUNTU-CVE-2022-0415.