CVE-2020-15867 in Gogs
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 co...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gogs | Gogs | ≥ 0.5.5, ≤ 0.12.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-15867 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-178193-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-10-16 |
| Last modified | 2026-06-17 |
| Source | NVD |
Analysis AI-written, not human-reviewed
{ "executive_summary": "CVE-2020-15867 in Gogs versions 0.5.5 through 0.12.2 allows authenticated users to execute remote code via the git hook feature, potentially leading to privilege escalation.", "attack_vector_detail": "An attacker with authenticated access to the Gogs application can exploit the git hook feature to execute arbitrary code on the server. This can occur if the attacker has access to the hook feature, which might not be immediately obvious due to lack of UI warnings.", "affected_components": ["Gogs 0.5.5", "Gogs 0.5.6", "Gogs 0.5.7", "Gogs 0.5.8", "Gogs 0.5.9", "Gogs 0.6.0", "Gogs 0.6.1", "Gogs 0.6.2", "Gogs 0.6.3", "Gogs 0.6.4", "Gogs 0.7.0", "Gogs 0.7.1", "Gogs 0.7.2", "
Vulnerability details: 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 vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2020-15867?
{ "executive_summary": "CVE-2020-15867 in Gogs versions 0.5.5 through 0.12.2 allows authenticated users to execute remote code via the git hook feature, potentially leading to privilege escalation.", "attack_vector_detail": "An attacker with authenticated access to the Gogs application can exploit the git hook feature to execute arbitrary code on the server. This can occur if the attacker has access to the hook feature, which might not be immediately obvious due to lack of UI warnings.", "
What is the CVSS score for CVE-2020-15867?
CVE-2020-15867 has CVSS 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 87.4%.
Is CVE-2020-15867 actively exploited?
No confirmed active exploitation of CVE-2020-15867 as of 2026-09-25.
How do I remediate CVE-2020-15867?
Priority: MEDIUM.
What systems are affected by CVE-2020-15867?
CVE-2020-15867 affects Gogs Gogs.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gogs","product":"Gogs","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.