# CVE-2022-0415: Remote Command Execution in uploading repository file in gogs/gogs

- Severity: Critical 9.9 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 65.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-21T10:45:13.000Z
- Modified: 2026-06-17T04:20:33.710Z
- Also known as: GHSA-5gjh-5j4f-cpwv, GO-2022-0554
- Weaknesses: CWE-20, CWE-434
- Assigned by: @huntrdev

## Description

Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.

(As written by CVE List.)

## Affected

- gogs gogs/gogs: from unspecified before 0.12.6
- gogs.io/gogs (Go): before 0.12.6
- gogs gogs: before 0.12.6

## Every score

- @huntrdev: CVSS:3.0 9.9 Critical `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://huntr.dev/bounties/b4928cfe-4110-462f-a180-6d5673797902> (exploit, patch, third-party-advisory, web)
- <https://github.com/gogs/gogs/commit/0fef3c9082269e9a4e817274942a5d7c50617284> (patch, third-party-advisory, web)
- <https://github.com/gogs/gogs/security/advisories/GHSA-5gjh-5j4f-cpwv> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-0415](https://www.cve.org/CVERecord?id=CVE-2022-0415), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5gjh-5j4f-cpwv](https://github.com/advisories/GHSA-5gjh-5j4f-cpwv), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0554](https://pkg.go.dev/vuln/GO-2022-0554), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-0415](https://nvd.nist.gov/vuln/detail/CVE-2022-0415), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0415 · Whole record: https://cve.day/CVE-2022-0415.json · Rebuilt by cve.day 2026-11-25T22:58:10.207Z
