# CVE-2020-15867: The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution.

- Severity: High 7.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/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): 87.4%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-10-16T13:04:43.000Z
- Modified: 2026-06-17T02:57:19.363Z
- Assigned by: mitre

## Description

The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. There can be a privilege escalation if access to this hook feature is granted to a user who does not have administrative privileges. NOTE: because this is mentioned in the documentation but not in the UI, it could be considered a "Product UI does not Warn User of Unsafe Actions" issue.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gogs gogs: from 0.5.5 up to 0.12.2

## Every score

- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/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://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/> (exploit, third-party-advisory)
- <http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html> (exploit, third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2020-15867](https://www.cve.org/CVERecord?id=CVE-2020-15867), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-15867](https://nvd.nist.gov/vuln/detail/CVE-2020-15867), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15867 · Whole record: https://cve.day/CVE-2020-15867.json · Rebuilt by cve.day 2026-11-25T22:57:55.183Z
