CVE-2020-15867

HIGH NUCLEI

Gogs 0.5.5-0.12.2 - Authenticated Remote Code Execution via Git Hook Feature

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2020-15867. PoCs published by Podalirius, Christophe De La Fuente, including Metasploit module exploits/multi/http/gogs_git_hooks_rce. A Nuclei detection template is also available.

AI-analyzed exploit summary This Metasploit module exploits CVE-2020-15867 in Gogs by authenticating, creating a repository, and setting a malicious git hook to achieve remote code execution.

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.

Exploits (1)

metasploit WORKING POC EXCELLENT
by Podalirius, Christophe De La Fuente · rubypocunix
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_git_hooks_rce.rb

This Metasploit module exploits CVE-2020-15867 in Gogs by authenticating, creating a repository, and setting a malicious git hook to achieve remote code execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Gogs <= 0.12.3
Auth required
Prerequisites: Valid credentials for Gogs · Permission to create git hooks
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Gogs 0.5.5 - 0.12.2 - Remote Code Execution
HIGHVERIFIEDby theamanrawat
Shodan: cpe:"cpe:2.3:a:gogs:gogs" || http.title:"sign in - gogs"
FOFA: title="sign in - gogs"

Scores

CVSS v3 7.2
EPSS 0.8753
EPSS Percentile 99.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Details

Status published
Products (1)
gogs/gogs 0.5.5 - 0.12.2
Published Oct 16, 2020
Tracked Since Feb 18, 2026