CVE-2022-0415Gogs Unrestricted File Upload
Unrestricted Upload of File with Dangerous Type in Gogs
Published Mar 21, 2022 · Updated Oct 28, 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 66% 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.
Scores
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)
66%
Higher than 99.2% of all scored CVEs
Exploit maturity
None known
ATLAS score
33/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
Description
Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.
Affected Products
15 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 21, 2022
Last updated
Oct 28, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-0415
- advisoryubuntu.com · CVE-2022-0415
- advisoryGHSA advisory
- articlegithub.com · 0fef3c9
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 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo