CVE-2020-15867
mediumpriority · attend · 70OT risk · highEPSS 0.874 · 100 %ileexploit · weaponizedEUUSEPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–7.2
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- exploit/multi/http/gogs_git_hooks_rceGogs Git Hooks Remote Code Executionweaponized · metasploit
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://nvd.nist.gov/vuln/detail/CVE-2020-15867cnnvd
- https://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.htmlcnnvd
- 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/cnnvd
- http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.htmlenisa_euvd
- 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/enisa_euvd
- http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entrynvd
- 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/ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan