CVE-2022-0415
HighUnrestricted Upload of File with Dangerous Type in Gogs
Published Mar 28, 2022 · Updated Aug 12, 2026 · Also known as GHSA-5gjh-5j4f-cpwv, GO-2022-0554, UBUNTU-CVE-2022-0415
Key Facts
Patch immediately- CVE-2022-0415 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Gogs, golang-github-gogits-go-gogs-client (ubuntu), gogs.io/gogs and 1 more product.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 65% probability of exploitation in the next 30 days.
- Fixed versions are available, including Gogs 0.12.6, gogs.io/gogs 0.12.6, gogs/gogs 0.12.6.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
65%
Higher than 99.2% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2022-0415 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.
Affected Products
14 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GogsGogs | See advisory | 0.12.6 |
| golang-github-gogits-go-gogs-clientubuntu | See advisory | n/a |
| gogs.io/gogsgo | See advisory | 0.12.6 |
| gogs/gogs | >= unspecified | 0.12.6 |
Patched Releases
Gogs
0.12.6
gogs.io/gogs
0.12.6
gogs/gogs
0.12.6
Timeline
Publicly disclosed
Mar 28, 2022
Last updated
Aug 12, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0415.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-0415
- advisoryhttps://ubuntu.com/security/CVE-2022-0415
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-0415
FAQ
Common Questions.
Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.
Affected: Gogs; golang-github-gogits-go-gogs-client (ubuntu); gogs.io/gogs, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Gogs 0.12.6, gogs.io/gogs 0.12.6, gogs/gogs 0.12.6.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-0415 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo