{"id":"CVE-2020-15867","published":"2020-10-16T13:04:43Z","modified":"2024-08-04T13:30:22Z","title":"The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Gogs versions 0.5.5 through 0.12.2 contain a flaw in the git hook feature, which is documented but not exposed in the user interface. An attacker who has valid credentials can use this feature to execute code remotely, and a non-administrative user who is granted access to the hook feature can escalate privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:17:48Z"},"cvss":null,"epss":{"score":0.87416,"percentile":0.99755,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"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/","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2020-7848","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-7848","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"metasploit":[{"name":"Gogs Git Hooks Remote Code Execution","module":"exploit/multi/http/gogs_git_hooks_rce","type":"exploit","disclosureDate":"2020-10-07","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_git_hooks_rce.rb"}],"nuclei":[{"id":"CVE-2020-15867","name":"Gogs 0.5.5 - 0.12.2 - Remote Code Execution","severity":"high","path":"http/cves/2020/CVE-2020-15867.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-15867.yaml"}],"first":{"date":"2020-10-07","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_git_hooks_rce.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2020-10-07","kind":"exploit-public","label":"First public exploit: Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_git_hooks_rce.rb","provenance":"source"},{"date":"2020-10-16","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-15867","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":25.0,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.95,"detail":"percentile 0.9976"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}