CVE-2022-0415
HIGH 8.8CVSS 3.1Unrestricted Upload of File with Dangerous Type in Gogs
Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.
- Published
- 21 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-20CWE-434
- Also known as
- GHSA-5gjh-5j4f-cpwvGO-2022-0554
- Sources
- NVDJSONOSV GHSA-5gjh-5j4f-cpwvJSONOSV GO-2022-0554JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.9 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.12.6 | 0.12.6 |
| OSV | Go | gogs.io/gogs | < 0.12.6 | 0.12.6 |
References
- https://github.com/gogs/gogs/commit/0fef3c9082269e9a4e817274942a5d7c50617284 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/b4928cfe-4110-462f-a180-6d5673797902 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/gogs/gogs/security/advisories/GHSA-5gjh-5j4f-cpwv · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-0415 · ADVISORY
- https://github.com/gogs/gogs/issues/6833 · WEB
- https://github.com/gogs/gogs/pull/6838 · WEB
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 Mar 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Mar 2022)