Vulnerability · Published Mar 21, 2022 · Assigned by @huntrdev
CVE-2022-0415Remote Command Execution in uploading repository file in gogs/gogs
Critical 9.9
In plain English
A critical-severity improper input validation in gogs/gogs from gogs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 65.9% (higher than 99.3% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)9.9Critical
Exploit odds (30 days)65.9%top 0.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Nuclei
Official description
Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.12.6 | GHSA-5gjh-5j4f-cpwv |
| Go | gogs.io/gogs | 0.12.6 | GO-2022-0554 |
| Ubuntu:22.04:LTS | golang-github-gogits-go-gogs-client | no fix listed | UBUNTU-CVE-2022-0415 |
| Ubuntu:24.04:LTS | golang-github-gogits-go-gogs-client | no fix listed | UBUNTU-CVE-2022-0415 |
| Ubuntu:25.10 | golang-github-gogits-go-gogs-client | no fix listed | UBUNTU-CVE-2022-0415 |
| Ubuntu:26.04:LTS | golang-github-gogits-go-gogs-client | no fix listed | UBUNTU-CVE-2022-0415 |
| Ubuntu:26.10 | golang-github-gogits-go-gogs-client | no fix listed | UBUNTU-CVE-2022-0415 |
Affected products (as reported)
Weakness: CWE-20 · Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://huntr.dev/bounties/b4928cfe-4110-462f-a180-6d5673797902 x_refsource_CONFIRM
- https://github.com/gogs/gogs/commit/0fef3c9082269e9a4e817274942a5d7c50617284 x_refsource_MISC