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.
CVE-2020-15867
Score elevated to 9.0 because EPSS predicts 87% probability of exploitation within the next 30 days (top 0.3% of all CVEs). NVD baseline CVSS 7.2 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 87%
- Public exploit code is available (Metasploit, epss top5pct, epss high, public exploit)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.2
- EG Score
- 9.0(high)
- EG Risk
- 80(Track)EG Risk 80/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity90% × 45%Exploitation87% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 87%
- EPSS %ILE
- 100%
- KEV
- Not listed
Published
October 16, 2020
Last Modified
November 21, 2024
References (4)
- cve@mitrehttp://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html
- cve@mitrehttps://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/
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108https://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/
Data Freshness Timeline
(refreshed 6× in last 7d / 17× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-20 22:52 UTCEPSS rescore
- 2026-08-19 17:00 UTCEPSS rescore
- 2026-08-18 13:44 UTCEPSS rescore
- 2026-08-17 13:43 UTCEPSS rescore
- 2026-08-16 14:52 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-12 13:47 UTCEPSS rescore
- 2026-08-08 04:49 UTCOSV refresh
- 2026-08-06 13:43 UTCEPSS rescore
- 2026-08-03 10:32 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:50 UTCEG score recompute
- 2026-07-22 21:28 UTCEG score recompute▲ 1.80
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-13 01:08 UTCOSV refresh
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
Show 25 moreShow fewer
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 10:20 UTCOSV refresh
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-07 15:00 UTCOSV refresh
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-23 06:40 UTCEG score recompute
Publicly available exploits
(2 references)Working exploit code is in the public domain (1 Metasploit module). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Metasploitexploit/multi/http/gogs_git_hooks_rce✓ verifiedFirst seen Oct 7, 2020
Gogs Git Hooks Remote Code Execution
Open source ↗ - Nucleihttp/cves/2020/CVE-2020-15867.yamlFirst seen Jan 1, 2020
Gogs 0.5.5 - 0.12.2 - Remote Code Execution
Open source ↗
Frequently asked(5)
What is CVE-2020-15867?
When was CVE-2020-15867 disclosed?
Is CVE-2020-15867 actively exploited?
What is the CVSS score of CVE-2020-15867?
How do I remediate CVE-2020-15867?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2020-15867
Is Your Infrastructure Affected by CVE-2020-15867?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.